Skip to content

Commit

Permalink
update discord.js (a pain as per usual)
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed May 16, 2024
1 parent 545b70a commit a70f737
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 85 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prettier": "prettier \"{,!(node_modules)/**/}*.ts\" --config .prettierrc --write"
},
"devDependencies": {
"@types/node": "^20.12.11",
"@types/node": "^20.12.12",
"nodemon": "^3.1.0",
"prettier": "^3.2.5"
},
Expand All @@ -18,7 +18,7 @@
"@octokit/rest": "^20.1.1",
"axios": "^1.6.8",
"chalk": "^4.1.2",
"discord.js": "^14.14.1",
"discord.js": "^14.15.2",
"gif-encoder-2": "^1.0.5",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0"
Expand Down
153 changes: 72 additions & 81 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/interfaces/interactions.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
SlashCommandSubcommandsOnlyBuilder,
SlashCommandBuilder,
Collection,
CacheType,
SlashCommandOptionsOnlyBuilder,
} from "discord.js";
import {
Client,
Expand All @@ -28,7 +28,7 @@ export type SlashCommandI = (interaction: ChatInputCommandInteraction) => Promis

export type SyncSlashCommandBuilder =
| SlashCommandSubcommandsOnlyBuilder
| Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">;
| SlashCommandOptionsOnlyBuilder;

/** Used for generating dynamic properties (e.g. /missing version list) */
export type AsyncSlashCommandBuilder = (client: Client) => Promise<SyncSlashCommandBuilder>;

0 comments on commit a70f737

Please sign in to comment.