torikushiii / hoyolab-auto

Auto check-in and others for any Hoyoverse games
https://ko-fi.com/torikushiii
GNU Affero General Public License v3.0
56 stars 12 forks source link

Command Execution Failed (Discord slash commands) #25

Closed djdoolky76 closed 2 weeks ago

djdoolky76 commented 2 weeks ago

I'm getting command execution failed when I'm trying to execute /note command in Discord; however, the script keeps running, and I have the same error on the bot reply as well

image

Logs:

  message: 'Command execution failed',
  data: {
    command: 'notes',
    invocation: 'notes',
    platform: 1,
    args: [ 'starrail' ],
    error: Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
        at ChatInputCommandInteraction.reply (/root/hoyolab-auto/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:104:46)
        at Command.notes [as code] (/root/hoyolab-auto/commands/notes/index.js:188:23)
        at async Command.checkAndRun (/root/hoyolab-auto/classes/command.js:202:16)
        at async DiscordController.handleCommand (/root/hoyolab-auto/platforms/discord.js:182:21)
        at async Client.<anonymous> (/root/hoyolab-auto/platforms/discord.js:109:4) {
      code: 'InteractionAlreadyReplied'
    }
  }
}
torikushiii commented 2 weeks ago

thats my fault, didn't test it with more than 1 account, issue should be fixed at the latest commit

djdoolky76 commented 2 weeks ago

thats my fault, didn't test it with more than 1 account, issue should be fixed at the latest commit

it's all working great now. Thank you 🎉