Skip to content

Prevent exception if a watched user sends a DM to the bot#815

Merged
scragly merged 1 commit into
masterfrom
watchchannel-dm
Mar 4, 2020
Merged

Prevent exception if a watched user sends a DM to the bot#815
scragly merged 1 commit into
masterfrom
watchchannel-dm

Conversation

@sco1
Copy link
Copy Markdown
Contributor

@sco1 sco1 commented Mar 4, 2020

The previous embed assumed that the messages would be sent on the server, where the channel would have a name and the message would have a jump URL.

For a DM, neither of these are present and an exception will be raised when attempting to construct the embed for the webhook to send.

The previous embed assumed that the messages would be sent on the server, where the channel would have a name and the message would have a jump URL. For a DM, neither of these are present and an exception will be raised when attempting to construct the embed for the webhook to send.
@sco1 sco1 requested a review from a team as a code owner March 4, 2020 02:38
@sco1 sco1 requested review from GhostofGoes and kwzrd and removed request for a team March 4, 2020 02:38
@sentry
Copy link
Copy Markdown

sentry Bot commented Mar 4, 2020

Sentry issue: BOT-22

@scragly scragly merged commit 1cd6cf6 into master Mar 4, 2020
@scragly scragly deleted the watchchannel-dm branch March 4, 2020 07:18
@MarkKoz MarkKoz added a: moderation Related to community moderation functionality: (moderation, defcon, verification) t: bug Something isn't working labels Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: moderation Related to community moderation functionality: (moderation, defcon, verification) t: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants