Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] Prevent spamming when a user blocks the bot #2790

Merged
merged 1 commit into from Jun 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions redbot/core/commands/help.py
Expand Up @@ -538,7 +538,7 @@ async def send_pages(
try:
await destination.send(embed=page)
except discord.Forbidden:
await ctx.send(
return await ctx.send(
T_(
"I couldn't send the help message to you in DM. "
"Either you blocked me or you disabled DMs in this server."
Expand All @@ -549,7 +549,7 @@ async def send_pages(
try:
await destination.send(page)
except discord.Forbidden:
await ctx.send(
return await ctx.send(
T_(
"I couldn't send the help message to you in DM. "
"Either you blocked me or you disabled DMs in this server."
Expand Down