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

Currently the bot sends an error message for each page of help, this should make it only send once.
This commit is contained in:
MeatyChunks 2019-06-22 06:41:11 +01:00 committed by Michael H
parent e854716236
commit 3c66c602f6

View File

@ -538,7 +538,7 @@ class RedHelpFormatter:
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."
@ -549,7 +549,7 @@ class RedHelpFormatter:
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."