Skip to content

[Highlight]: Fix a 50007 error code when sending dm to an user.#247

Open
Evanroby wants to merge 1 commit intoflaree:masterfrom
Evanroby:hl
Open

[Highlight]: Fix a 50007 error code when sending dm to an user.#247
Evanroby wants to merge 1 commit intoflaree:masterfrom
Evanroby:hl

Conversation

@Evanroby
Copy link
Contributor

Solves #246
This PR is just wrapping the send method with try/except to avoid raising a 50007 error code by users that has blocked the bot, or has dms closed.
I have made the code send a message in the channel where user gets highlighted, so they can know their DMs are closed (most frequently). I didn't make it say that they blocked bot, since if they did block the bot, they won't really care or open the message..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant