Skip to content

Commit

Permalink
Pagination Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoz committed Apr 8, 2024
1 parent bc72fce commit 9b9d64a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/economy/shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def generate_shop_embed(self):
embed.add_field(
name=item_name,
value=f"{item_info['description']}\n"
f"**Price:** {item_info['price']} {self.currency}",
f"**Price:** {item_info['price']} {self.currency}",
inline=False,
)
embed.set_footer(
Expand All @@ -47,7 +47,7 @@ async def previous_button_callback(self, button, interaction):

@nextcord.ui.button(label="Next", style=nextcord.ButtonStyle.blurple)
async def next_button_callback(self, button, interaction):
if (self.current_page + 1) * 9 < len(self.shop_items):
if (self.current_page + 1) * 5 < len(self.shop_items):
self.current_page += 1
await self.update_shop_message(interaction)

Expand Down

0 comments on commit 9b9d64a

Please sign in to comment.