File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -906,22 +906,21 @@ async def blocked(self, ctx):
906
906
pass
907
907
908
908
if users :
909
- embed = embeds [- 1 ]
909
+ embed = embeds [0 ]
910
910
911
911
for mention , reason in users :
912
912
line = mention + f" - `{ reason or 'No reason provided' } `\n "
913
913
if len (embed .description ) + len (line ) > 2048 :
914
- embeds .append (
915
- discord .Embed (
914
+ embed = discord .Embed (
916
915
title = "Blocked Users (Continued)" ,
917
916
color = self .bot .main_color ,
918
917
description = line ,
919
918
)
920
- )
919
+ embeds . append ( embed )
921
920
else :
922
921
embed .description += line
923
922
else :
924
- embeds [- 1 ].description = "Currently there are no blocked users."
923
+ embeds [0 ].description = "Currently there are no blocked users."
925
924
926
925
session = EmbedPaginatorSession (ctx , * embeds )
927
926
await session .run ()
You can’t perform that action at this time.
0 commit comments