Release version / last pulled commit's ID
Description
Probably after some package updates, Discord.js deprecated a function and now the bot throws a warning every time someone runs the /blackjack command.
Actual behavior
- Discord.js throws a deprecation warning
Expected behavior
- The command should execute without warnings
- Possible fix:
- The
/purge command's "Delete message" button isn't throwing such warning
- Importing the logic from
/purge might help
Screenshots / logs
(node:21528) Warning: Supplying "fetchReply" for interaction response options is deprecated. Utilize "withResponse" instead or fetch the response after using the method.
at ChatInputCommandInteraction.reply (/home/vb2007/code/discordbot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:177:19)
at Object.execute (file:///home/vb2007/code/discordbot/src/commands/economy/blackjack.js:145:40)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Client.<anonymous> (file:///home/vb2007/code/discordbot/src/index.js:188:5)
Release version / last pulled commit's ID
v4.0.1Description
Probably after some package updates, Discord.js deprecated a function and now the bot throws a warning every time someone runs the
/blackjackcommand.Actual behavior
Expected behavior
/purgecommand's "Delete message" button isn't throwing such warning/purgemight helpScreenshots / logs