Handle Crash on DiscordAPIError[50001]: Missing Access
The scenario that causes this crash is the bot tries sending a message to a channel it doesn't have access to. Now I can solve this issue by checking it has permissions before hand or catching directly on the send, but my question is, is there a way to keep the bot from crashing if I miss a check at some other point? I do have an error.ts listener set up but doesn't seem to be making a difference.
error.ts
1 Reply
Solution
I figured it out so nvm it's because I wasn't awaiting on my send calls