Skip to content

Commit fa8b67a

Browse files
committed
fix: /top
now it only gets the top 10
1 parent 5e87aac commit fa8b67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ const commands: Record<string, Command> = {
286286
}, interaction);
287287

288288
// Add a field for each user with a mention
289-
leaderboard.leaderboard.forEach((entry: { id: string; xp: number; }, index: number) => {
289+
leaderboard.leaderboard.slice(0, 10).forEach((entry: { id: string; xp: number; }, index: number) => {
290290
leaderboardEmbed.addFields([
291291
{
292292
name: `${index + 1}.`,

0 commit comments

Comments
 (0)