We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f828a7f + df06d2f commit 14bf8f8Copy full SHA for 14bf8f8
src/modules/rep.ts
@@ -165,11 +165,14 @@ export class RepModule extends Module {
165
.select(['give.to', 'COUNT(*)'])
166
.groupBy('give.to')
167
.orderBy('COUNT(*)', 'DESC')
168
- .limit(10)
169
- .getRawMany()) as { toId: string; count: string }[]).map(x => ({
170
- id: x.toId,
171
- count: parseInt(x.count, 10),
172
- }));
+ .limit(11)
+ .getRawMany()) as { toId: string; count: string }[])
+ .filter(x => x.toId !== this.client.user?.id)
+ .slice(0, 10)
+ .map(x => ({
173
+ id: x.toId,
174
+ count: parseInt(x.count, 10),
175
+ }));
176
const embed = new MessageEmbed()
177
.setColor(TS_BLUE)
178
.setTitle('Top 10 Reputation')
0 commit comments