Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replying to a non-existent message results in DiscordAPIError #64

Closed
sentry-io bot opened this issue Apr 16, 2021 · 1 comment
Closed

Replying to a non-existent message results in DiscordAPIError #64

sentry-io bot opened this issue Apr 16, 2021 · 1 comment
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 16, 2021

Sentry Issue: FIRE-3HK

DiscordAPIError: Invalid Form Body
message_reference: Unknown message
  File "/home/geek/Fire/lib/rest/RequestHandler.ts", line 282, in RequestHandler.execute
    throw new DiscordAPIError(
  ?, in runMicrotasks
  File "/home/geek/Fire/lib/rest/RequestHandler.ts", line 54, in RequestHandler.push
    return await this.execute(request);
  File "/home/geek/Fire/src/commands/Moderation/unmute.ts", line 56, in Unmute.exec
    return await message.error(`UNMUTE_FAILED_${unmuted.toUpperCase()}`);
  File "/home/geek/Fire/lib/util/commandhandler.ts", line 42, in CommandHandler.runCommand
    const ret = await command.exec(message, args);
...
(3 additional frame(s) were not displayed)

Cannot be fixed fully until discordjs/discord.js#5298 is merged, but a hotfix will be made to catch the error and send normally, unfortunately requiring two requests to send one message.

@GamingGeek
Copy link
Member

discordjs/discord.js#5298 has been merged, working on this now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant