CodecademyCommunity / codecademy-discord-bot

Custom moderation bot for the official Codecademy Community Discord server.
https://codecademycommunity.github.io/
MIT License
11 stars 1 forks source link

Update Discord.js dependencies #323

Closed aedwardg closed 2 years ago

aedwardg commented 2 years ago

What issue is this solving?

No official issue, but recommended in the dev server here: https://discord.com/channels/810930683732033597/810930684171780117/981746378424328252

Description

Updates Discord.js and related dependencies.

Any helpful knowledge/context for the reviewer?

Please make sure you've attempted to meet the following coding standards

mikejoh12 commented 2 years ago

The update to builders apparently removed the addChoice method so it is throwing an "addChoice is not a function" error now when running the the bot or deploying the slash-commands.

The method was replaced by addChoices: https://discordjs.guide/interactions/slash-commands.html#choices https://discord.js.org/#/docs/builders/main/class/SlashCommandStringOption?scrollTo=addChoices

aedwardg commented 2 years ago

Well that's annoying. I figured there would be no breaking changes since these were all minor version upgrades. I'll make the necessary changes and ping on discord when it's ready for re-review