diff --git a/package.json b/package.json index cf5c0d8..240f783 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "dependencies": { "@crowdin/ota-client": "^0.7.0", - "@discordjs/builders": "^0.12.0", + "@discordjs/builders": "^0.13.0", "@discordjs/rest": "^0.4.0", "axios": "^0.26.0", "chance": "^1.1.8", diff --git a/src/plugins/counters/modules/view/index.ts b/src/plugins/counters/modules/view/index.ts index e7635c2..66f46c9 100644 --- a/src/plugins/counters/modules/view/index.ts +++ b/src/plugins/counters/modules/view/index.ts @@ -25,7 +25,7 @@ export default { `The channel that contains the counter you want to view` ) .setRequired(true) - .addChannelType(ChannelType.GuildText as number) + .addChannelTypes(ChannelType.GuildText) ); }, execute: async (interaction: CommandInteraction) => { diff --git a/src/plugins/manage/groups/counters/modules/create/index.ts b/src/plugins/manage/groups/counters/modules/create/index.ts index 32c83fb..495f57a 100644 --- a/src/plugins/manage/groups/counters/modules/create/index.ts +++ b/src/plugins/manage/groups/counters/modules/create/index.ts @@ -28,7 +28,7 @@ export default { .setName("channel") .setDescription("The channel to send the counter to.") .setRequired(true) - .addChannelType(ChannelType.GuildText as number) + .addChannelTypes(ChannelType.GuildText) ) .addStringOption((option) => option diff --git a/src/plugins/manage/groups/counters/modules/delete/index.ts b/src/plugins/manage/groups/counters/modules/delete/index.ts index 67bd222..0d8f1d4 100644 --- a/src/plugins/manage/groups/counters/modules/delete/index.ts +++ b/src/plugins/manage/groups/counters/modules/delete/index.ts @@ -28,7 +28,7 @@ export default { .setName("channel") .setDescription("The channel to delete the counter from.") .setRequired(true) - .addChannelType(ChannelType.GuildText as number) + .addChannelTypes(ChannelType.GuildText) ); }, execute: async (interaction: CommandInteraction) => { diff --git a/src/plugins/reputation/modules/give.ts b/src/plugins/reputation/modules/give.ts index 4da08db..13f2162 100644 --- a/src/plugins/reputation/modules/give.ts +++ b/src/plugins/reputation/modules/give.ts @@ -36,8 +36,13 @@ export default { .setName("type") .setDescription("What type of reputation you want to repute") .setRequired(true) - .addChoice("Positive", "positive") - .addChoice("Negative", "negative") + .addChoices( + { name: "Positive", value: "positive" }, + { + name: "Negative", + value: "negative", + } + ) ); }, execute: async (interaction: CommandInteraction) => { diff --git a/src/plugins/settings/guild/modules/audits.ts b/src/plugins/settings/guild/modules/audits.ts index f04ff97..d9d789c 100644 --- a/src/plugins/settings/guild/modules/audits.ts +++ b/src/plugins/settings/guild/modules/audits.ts @@ -25,7 +25,7 @@ export default { option .setName("channel") .setDescription("Channel for audit messages.") - .addChannelType(ChannelType.GuildText as number) + .addChannelTypes(ChannelType.GuildText) ); }, execute: async (interaction: CommandInteraction) => { diff --git a/src/plugins/settings/guild/modules/welcome.ts b/src/plugins/settings/guild/modules/welcome.ts index d45b642..c8c8325 100644 --- a/src/plugins/settings/guild/modules/welcome.ts +++ b/src/plugins/settings/guild/modules/welcome.ts @@ -25,14 +25,16 @@ export default { option .setName("join-channel") .setDescription("Channel for join messages.") - .addChannelType(ChannelType.GuildText as number) + .addChannelTypes(ChannelType.GuildText) ) + .addChannelOption((option) => option .setName("leave-channel") .setDescription("Channel for leave messages.") - .addChannelType(ChannelType.GuildText as number) + .addChannelTypes(ChannelType.GuildText) ) + .addStringOption((option) => option .setName("leave-message")