Skip to content

Commit

Permalink
Fix tests for discord.js 14.16 [skip build]
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlul committed Sep 2, 2024
1 parent 2a70dd0 commit 2d9df79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/events/messageCreate.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ describe("Direct message submissions", function () {
const send = this.spy();
const fetchStub = this.stub(mockBotClient.channels, "fetch").resolves({
isTextBased: () => true,
isDMBased: () => false,
send
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any);
Expand Down Expand Up @@ -197,6 +198,7 @@ describe("Direct message submissions", function () {
const send = this.spy();
const fetchStub = this.stub(mockBotClient.channels, "fetch").resolves({
isTextBased: () => true,
isDMBased: () => false,
send
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any);
Expand Down

0 comments on commit 2d9df79

Please sign in to comment.