Closed Alfred-PictoCube closed 1 year ago
Thanks for sharing the error. While this isn't directly caused by my cog, I should include user-friendly error handling for scenarios like this when Discord responds with errors. It appears the birthday role was deleted in the server, so you could temporarily fix this by making a new one and setting the cog to use it, or unloading the cog. I'll send another message here when I release an update to handle this better.
Thanks!
Actually I can't read the error properly! That's a warning from here so there is an element of handling by my own code.
This is unlikely to happen. There is already a check that the role exists, however this uses a cached guild object. I guess you were just unlucky. I will consider fetching an updated guild object from Discord but this won't necessarily scale well. I'll have to take a look at rate limits but unfortunately, I think this is highly unlikely and does not justify fetching the guild object from Discord. Core Red and nearly all cogs are coded to trust the cache. The cached guild object should by updated automatically by discord.py.
What cog is this bug report for?
Birthday
What versions are you running?
Describe the bug
When launching the bot, it keeps floodinfg the shell with the following errors, even if using simple commands like "bdset msgwithoutyear Happy birthday {mention}!"
If there's an error, paste it here