Upgrade discord.js
This commit is contained in:
parent
f347031571
commit
462c57c0c7
1 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ describe("UseConfirm", () => {
|
|||
// Arrange
|
||||
interaction.customId += " unclaimed";
|
||||
interaction.user.id = "userId";
|
||||
interaction.update.mockImplementation(async (opts: string | MessagePayload | InteractionUpdateOptions) => {
|
||||
(interaction.update as jest.Mock).mockImplementation(async (opts: string | MessagePayload | InteractionUpdateOptions) => {
|
||||
updatedWith = opts;
|
||||
|
||||
return mock<InteractionResponse<boolean>>();
|
||||
|
@ -133,7 +133,7 @@ describe("UseCancel", () => {
|
|||
// Arrange
|
||||
interaction.customId += " unclaimed";
|
||||
interaction.user.id = "userId";
|
||||
interaction.update.mockImplementation(async (opts: string | MessagePayload | InteractionUpdateOptions) => {
|
||||
(interaction.update as jest.Mock).mockImplementation(async (opts: string | MessagePayload | InteractionUpdateOptions) => {
|
||||
updatedWith = opts;
|
||||
|
||||
return mock<InteractionResponse<boolean>>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue