bot icon indicating copy to clipboard operation
bot copied to clipboard

Forbidden: 403 Forbidden (error code: 30010): Maximum number of reactions reached (20)

Open sentry[bot] opened this issue 4 years ago • 1 comments

Sentry Issue: BOT-379

Forbidden: 403 Forbidden (error code: 30010): Maximum number of reactions reached (20)
  File "discord/client.py", line 456, in _run_event
    await coro(*args, **kwargs)
  File "bot/exts/fun/duck_pond.py", line 189, in on_raw_reaction_add
    await self.locked_relay(message)
  File "bot/exts/fun/duck_pond.py", line 120, in locked_relay
    await message.add_reaction("✅")
  File "discord/message.py", line 1061, in add_reaction
    await self._state.http.add_reaction(self.channel.id, self.id, emoji)
  File "discord/http.py", line 501, in request
    raise Forbidden(response, data)

Unhandled exception in on_raw_reaction_add.

sentry[bot] avatar Aug 17 '22 10:08 sentry[bot]

Attempting to duck a message that already has the maximum number of reactions causes an error. The reaction is used to prevent the message from being sent to the duck pond multiple times, so this breaks that logic too.

The ideal solution here would probably be to store ducked messages in the site database.

wookie184 avatar Aug 17 '22 11:08 wookie184