From 9e2ad127b6ae916dd976916d220efaac55f2a646 Mon Sep 17 00:00:00 2001 From: suhas Date: Tue, 14 Mar 2023 21:01:30 -0500 Subject: [PATCH] fin --- src/commands/leaderboard.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commands/leaderboard.ts b/src/commands/leaderboard.ts index 01749b1..3cde65d 100644 --- a/src/commands/leaderboard.ts +++ b/src/commands/leaderboard.ts @@ -18,9 +18,8 @@ export default class LeaderboardCommand extends SlashCommand { }) let st = '' for (const u of users) { - const uu = await this.client.users.fetch(u.id) - st += `${uu.username}#${uu.discriminator} - ${u.messages} message(s)\n` + st += `<@${u.id}> - ${u.messages} message(s)\n` } - return st + ctx.send(st, {allowedMentions: {everyone: false, roles: false, users: false}}) } }