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

Rex drawing a duel crashes the bot #99

Open
mmerfort opened this issue Feb 15, 2022 · 0 comments
Open

Rex drawing a duel crashes the bot #99

mmerfort opened this issue Feb 15, 2022 · 0 comments

Comments

@mmerfort
Copy link
Contributor

mmerfort commented Feb 15, 2022

The bot cannot time out certain users which leads to a crash.
We should add some kind of fail-safe to ensure that this does not happen.

/home/discordbot/DiscordBot/node_modules/discord.js/src/rest/RequestHandler.js:350
      throw new DiscordAPIError(data, res.status, request);
            ^
DiscordAPIError: Missing Permissions
    at RequestHandler.execute (/home/discordbot/DiscordBot/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/home/discordbot/DiscordBot/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
    at async GuildMemberManager.edit (/home/discordbot/DiscordBot/node_modules/discord.js/src/managers/GuildMemberManager.js:279:15) {
  method: 'patch',
  path: '/guilds/103678524375699456/members/89926310410850304',
  code: 50013,
  httpStatus: 403,
  requestData: {
    json: {
      communicationDisabledUntil: 1644968087094,
      communication_disabled_until: '2022-02-15T23:34:47.094Z'
    },
    files: []
  }
}
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