freeCodeCampGuam / FCCG-Cogs

3 stars 4 forks source link

[roleboard] Custom Server Emojis does not work #47

Open jasperdanan opened 6 years ago

jasperdanan commented 6 years ago

Traceback Error:

Exception in command 'rolecall add'
Traceback (most recent call last):
  File "/home/pi/red-discordbot/cogs/rolecall.py", line 170, in rolecall_add
    await self.post_role(entry)
  File "/home/pi/red-discordbot/cogs/rolecall.py", line 203, in post_role
    await self.bot.add_reaction(msg, entry.emoji)
  File "lib/discord/client.py", line 955, in add_reaction
    yield from self.http.add_reaction(message.id, message.channel.id, emoji)
  File "lib/discord/http.py", line 200, in request
    raise HTTPException(r, data)
discord.errors.HTTPException: BAD REQUEST (status code: 400): Unknown Emoji

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "lib/discord/ext/commands/core.py", line 50, in wrapped
    ret = yield from coro(*args, **kwargs)
  File "/home/pi/red-discordbot/cogs/rolecall.py", line 172, in rolecall_add
    msg = await self.post_entry(entry)
  File "/home/pi/red-discordbot/cogs/rolecall.py", line 196, in post_entry
    await self.bot.add_reaction(msg, entry.emoji)
  File "lib/discord/client.py", line 955, in add_reaction
    yield from self.http.add_reaction(message.id, message.channel.id, emoji)
  File "lib/discord/http.py", line 200, in request
    raise HTTPException(r, data)
discord.errors.HTTPException: BAD REQUEST (status code: 400): Unknown Emoji

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

Traceback (most recent call last):
  File "lib/discord/ext/commands/bot.py", line 846, in process_commands
    yield from command.invoke(ctx)
  File "lib/discord/ext/commands/core.py", line 634, in invoke
    yield from ctx.invoked_subcommand.invoke(ctx)
  File "lib/discord/ext/commands/core.py", line 374, in invoke
    yield from injected(*ctx.args, **ctx.kwargs)
  File "lib/discord/ext/commands/core.py", line 54, in wrapped
    raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: BAD REQUEST (status code: 400): Unknown Emoji