Suppress 403 error when sending DEFCON reject DM#1711
Conversation
403 occurs if the user has DMs disabled. Fixes BOT-137
|
Wouldn't it require to handle discord.HTTPException? Or I totally misunderstood you |
If you were instead referring to replacing the general |
wookie184
left a comment
There was a problem hiding this comment.
I can't think of any other reason the bot should get a Forbidden error here. lgtm
|
Just for my understanding, the issue here is that |
The issue being fixed is 403 Forbidden errors being logged as exceptions and creating issues on Sentry. |
Sentry Issue: BOT-37
403 occurs if the user has DMs disabled. The specific code is 50007, but I don't think 403 would be raised for any other reason here, so I didn't check the code explicitly. If someone has more insight on this, please comment.