Skip to content

Commit

Permalink
[Help] Prevent spamming when a user blocks the bot (#2790)
Browse files Browse the repository at this point in the history
Currently the bot sends an error message for each page of help, this should make it only send once.
  • Loading branch information
MeatyChunks authored and Michael H committed Jun 22, 2019
1 parent e854716 commit 3c66c60
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 3c66c60

Please sign in to comment.