Skip to content

Bug: deprecated function call in /blackjack #151

Description

@vb2007

Release version / last pulled commit's ID

  • v4.0.1

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)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions