This commit is contained in:
parent
4ff8d15e2c
commit
78963d6b7c
3 changed files with 117 additions and 4 deletions
|
@ -4,9 +4,14 @@ export default function GenerateCommandInteractionMock(options?: {
|
|||
subcommand?: string,
|
||||
}): CommandInteraction {
|
||||
return {
|
||||
deferReply: jest.fn(),
|
||||
editReply: jest.fn(),
|
||||
isChatInputCommand: jest.fn().mockReturnValue(true),
|
||||
options: {
|
||||
getSubcommand: jest.fn().mockReturnValue(options?.subcommand),
|
||||
},
|
||||
user: {
|
||||
id: "userId",
|
||||
},
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue