Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit e679d4f

Browse files
committed
how'd i never notice that's missing
1 parent c0521d4 commit e679d4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/leaderboard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const cannotBeFetchedTimestamp: { [id: string]: number } = new Proxy({}, {
3535

3636
function makeLeaderboardEmbed(fullStats: Stats[], page: number, author: string, guild: Guild, markMissing: boolean) {
3737
const getText = (i: number) => emotes[i + page * 10] || `${i + page * 10 + 1}.`;
38-
const stats = fullStats.slice(page * 10, page * 10 + 9);
38+
const stats = fullStats.slice(page * 10, page * 10 + 10);
3939
const yourStats = fullStats.find(s => s.id === author);
4040
const yourStatsIndex = fullStats.indexOf(yourStats);
4141

@@ -94,7 +94,7 @@ export const cmd = {
9494

9595
stillMissingMembers.forEach(({ id }) => {
9696
if (cannotBeFetchedTimestamp[id] + retryFetchAfter < Date.now())
97-
queue.push(() => client.rest.users.get(id));
97+
queue.push(() => client.rest.users.get(id).catch(() => {}));
9898
});
9999
}
100100
queue.push(

0 commit comments

Comments
 (0)