Exohayvan / atsuko

Meet Astuko: A Python-powered Discord bot focused on extensibility. It utilizes dynamic cogs for effortless feature integration, includes a custom help interface, and offers a range of commands.
1 stars 0 forks source link

Auto Generated Report: 400 Bad Request (error code: 10014): Unknown Emoji #135

Open atsuko-bot[bot] opened 11 months ago

atsuko-bot[bot] commented 11 months ago

User Message: !roles Pronouns <@&1175103167952859187> 👧 Error: 400 Bad Request (error code: 10014): Unknown Emoji Traceback:

Traceback (most recent call last):
  File "/home/exohayvan/.local/lib/python3.10/site-packages/discord/ext/commands/core.py", line 229, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/exohayvan/Documents/GitHub/astuko/commands/testing/Role.py", line 54, in roles
    await message.add_reaction(emoji_role_pairs[i])
  File "/home/exohayvan/.local/lib/python3.10/site-packages/discord/message.py", line 1098, in add_reaction
    await self._state.http.add_reaction(self.channel.id, self.id, emoji)
  File "/home/exohayvan/.local/lib/python3.10/site-packages/discord/http.py", line 744, in request
    raise HTTPException(response, data)
discord.errors.HTTPException: 400 Bad Request (error code: 10014): Unknown Emoji

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/exohayvan/.local/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 1350, in invoke
    await ctx.command.invoke(ctx)
  File "/home/exohayvan/.local/lib/python3.10/site-packages/discord/ext/commands/core.py", line 1023, in invoke
    await injected(*ctx.args, **ctx.kwargs)  # type: ignore
  File "/home/exohayvan/.local/lib/python3.10/site-packages/discord/ext/commands/core.py", line 238, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 400 Bad Request (error code: 10014): Unknown Emoji

Command: roles Author: exohayvan#0 Channel: commands Python Version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] discord.py Version: 2.2.2 OS: Linux 5.15.0-88-generic

Exohayvan commented 10 months ago

Need to add a check for this.