Skip to content

Commit 0acfc2c

Browse files
committed
Remove the blocked embed
1 parent 3bb76e8 commit 0acfc2c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

bot.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -386,15 +386,7 @@ async def process_modmail(self, message):
386386
except (discord.HTTPException, discord.InvalidArgument):
387387
pass
388388

389-
blocked_em = discord.Embed(
390-
title='Message not sent!',
391-
color=discord.Color.red(),
392-
description='You have been blocked from using Modmail.'
393-
)
394-
395-
if str(message.author.id) in self.blocked_users:
396-
await message.author.send(embed=blocked_em)
397-
else:
389+
if str(message.author.id) not in self.blocked_users:
398390
thread = await self.threads.find_or_create(message.author)
399391
await thread.send(message)
400392

0 commit comments

Comments
 (0)