Skip to content

Commit

Permalink
Update ERLC.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyUsersREC authored Dec 20, 2024
1 parent cd7f604 commit 18078ee
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cogs/ERLC.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,13 +520,10 @@ async def bans(self, ctx: commands.Context, username: typing.Optional[str], user

if len(embeds) > 10:
pages = []
for i in range(0, (len(embeds) // 10)+1):
pages.append(CustomPage(embeds=embeds[i*10:(i*10)+9], identifier=str(i)))
for i in range(0, (len(embeds) // 5)+1):
pages.append(CustomPage(embeds=embeds[i*5:(i*5)+4], identifier=str(i)))
paginator = SelectPagination(ctx.author.id, pages)
try:
await ctx.send(embeds=pages[0].embeds, view=paginator.get_current_view())
except discord.HTTPException:
pass
await ctx.send(embeds=pages[0].embeds, view=paginator.get_current_view())
return
await ctx.send(embeds=embeds)

Expand Down

0 comments on commit 18078ee

Please sign in to comment.