Compare commits
1 commit
6996563561
...
97a36c0f24
Author | SHA1 | Date | |
---|---|---|---|
97a36c0f24 |
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ export default class AllBalance extends Command {
|
||||||
public override async execute(interaction: CommandInteraction) {
|
public override async execute(interaction: CommandInteraction) {
|
||||||
const users = await User.FetchAll(User);
|
const users = await User.FetchAll(User);
|
||||||
|
|
||||||
const filteredUsers = users.filter(x => x.Currency > 0);
|
const filteredUsers = users.filter(x => x.Currency > 0)
|
||||||
|
.sort((a, b) => b.Currency - a.Currency);
|
||||||
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setColor(EmbedColours.Ok)
|
.setColor(EmbedColours.Ok)
|
||||||
|
|
Loading…
Reference in a new issue