aboutsummaryrefslogtreecommitdiff
path: root/minecrafttrivia/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'minecrafttrivia/utils.py')
-rw-r--r--minecrafttrivia/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/minecrafttrivia/utils.py b/minecrafttrivia/utils.py
index 8bb4730..89f650d 100644
--- a/minecrafttrivia/utils.py
+++ b/minecrafttrivia/utils.py
@@ -17,7 +17,7 @@ async def get_participants(reactions: typing.List[discord.Reaction]) -> typing.L
def format_leaderboard(points: typing.List[typing.Tuple[int, typing.Tuple[typing.Union[discord.User, int], int]]]) -> str:
- return "\n".join(f"**{rank + 1}.** {user.mention if hasattr(user, 'mention') else '<@' + str(user) + '>'} - {points}" for rank, (user, points) in points)
+ return "\n".join(f"**{rank + 1}.** {user.mention if hasattr(user, 'mention') else '<@' + str(user) + '>'} - {points}" for rank, (user, points) in points[:20])
_T = typing.TypeVar("_T", discord.User, int)