switch statement not triggering in catch function
Hi,
I'm trying to handle errors when trying to fetch a message but it just doesn't run the switch statement.
Does someone have an idea why?
5 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Can you add a log in each case?
I didn't think about that. It actually logs. But why doesn't it reply?
It doesn’t happen often that you reply in time after making an api call
You should deferReply beforehand, then editReply when ur ready to respond
You can check if this is the issue by catching the reply calls
When I do
It doesn't do anything
The slash command interaction from the user