21 lines
550 B
TypeScript
21 lines
550 B
TypeScript
|
import { ButtonInteraction } from "../../__types__/discord.js";
|
||
|
|
||
|
export default function GenerateButtonInteractionMock(): ButtonInteraction {
|
||
|
return {
|
||
|
guild: {},
|
||
|
guildId: "guildId",
|
||
|
channel: {
|
||
|
isSendable: jest.fn().mockReturnValue(true),
|
||
|
send: jest.fn(),
|
||
|
},
|
||
|
deferUpdate: jest.fn(),
|
||
|
editReply: jest.fn(),
|
||
|
message: {
|
||
|
createdAt: new Date(1000 * 60 * 27),
|
||
|
},
|
||
|
user: {
|
||
|
id: "userId",
|
||
|
},
|
||
|
customId: "customId",
|
||
|
};
|
||
|
}
|