Compare commits

...

1 Commits

  1. 4
      src/commands/list.ts

@ -24,6 +24,8 @@ class List extends Command {
return; return;
} }
await interaction.deferReply();
const maxNameLength = players.reduce((max: number, next: Player) => Math.max(max, next.toString().length), 0); const maxNameLength = players.reduce((max: number, next: Player) => Math.max(max, next.toString().length), 0);
const maxProgressDigits = players.reduce((max, next) => Math.max(max, Math.abs(next.getProgress()).toString().length), 0); const maxProgressDigits = players.reduce((max, next) => Math.max(max, Math.abs(next.getProgress()).toString().length), 0);
@ -58,7 +60,7 @@ class List extends Command {
]) ])
.setThumbnail(iconURL); .setThumbnail(iconURL);
await interaction.reply({embeds: [embed]}); await interaction.editReply({embeds: [embed]});
} }
} }

Loading…
Cancel
Save