bot
bot copied to clipboard
Forbidden: 403 Forbidden (error code: 30010): Maximum number of reactions reached (20)
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.
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.