hdorer / totally-epic-quests

GNU General Public License v3.0
0 stars 0 forks source link

Some interactions take too long to reply to #4

Open hdorer opened 2 years ago

hdorer commented 2 years ago

So far I believe this has only happened with the quest mod commands

Band-aid fix would be to try/catch the interaction.reply() calls (especially since this seems to be a relatively rare occurrence) so that the bot doesn't doesn't die whenever this happens

More permanent fix would be to defer the reply, but that requires learning how to do a new thing

hdorer commented 2 years ago

Moved to medium priority because it seems to be a rare occurrence

hdorer commented 2 years ago

Band-aid fix would be to try/catch the interaction.reply() calls (especially since this seems to be a relatively rare occurrence) so that the bot doesn't doesn't die whenever this happens

This would not be as effective as I originally thought, since the catch for any error with the command still replies to the interaction. If I went this route I would have to add an additional try/catch for that which could just output to the log. But I might as well just learn how to defer the reply

hdorer commented 11 months ago

This would not be as effective as I originally thought, since the catch for any error with the command still replies to the interaction.

or I could just not attempt to reply to the interaction in that catch clause...