From 3c66c602f6a92e74ec214fbedaf0a500d6009ce9 Mon Sep 17 00:00:00 2001 From: MeatyChunks <6160351+MeatyChunks@users.noreply.github.com> Date: Sat, 22 Jun 2019 06:41:11 +0100 Subject: [PATCH] [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. --- redbot/core/commands/help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redbot/core/commands/help.py b/redbot/core/commands/help.py index bff76c29225..615cd8e0350 100644 --- a/redbot/core/commands/help.py +++ b/redbot/core/commands/help.py @@ -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." @@ -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."