Skip to content

Commit 6a7a604

Browse files
committed
Fix a blocked bug
1 parent 2c04622 commit 6a7a604

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cogs/modmail.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -906,22 +906,21 @@ async def blocked(self, ctx):
906906
pass
907907

908908
if users:
909-
embed = embeds[-1]
909+
embed = embeds[0]
910910

911911
for mention, reason in users:
912912
line = mention + f" - `{reason or 'No reason provided'}`\n"
913913
if len(embed.description) + len(line) > 2048:
914-
embeds.append(
915-
discord.Embed(
914+
embed = discord.Embed(
916915
title="Blocked Users (Continued)",
917916
color=self.bot.main_color,
918917
description=line,
919918
)
920-
)
919+
embeds.append(embed)
921920
else:
922921
embed.description += line
923922
else:
924-
embeds[-1].description = "Currently there are no blocked users."
923+
embeds[0].description = "Currently there are no blocked users."
925924

926925
session = EmbedPaginatorSession(ctx, *embeds)
927926
await session.run()

0 commit comments

Comments
 (0)