From 5b703187ce5e8adbf5fa71ba26c0b8db11cb3957 Mon Sep 17 00:00:00 2001 From: Benjamin Kraft Date: Mon, 10 Jun 2024 08:45:57 +0200 Subject: [PATCH] list is deferred to maybe get rid of crash --- src/commands/list.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/list.ts b/src/commands/list.ts index 20a9115..cfb5b25 100644 --- a/src/commands/list.ts +++ b/src/commands/list.ts @@ -24,6 +24,8 @@ class List extends Command { return; } + await interaction.deferReply(); + 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); @@ -58,7 +60,7 @@ class List extends Command { ]) .setThumbnail(iconURL); - await interaction.reply({embeds: [embed]}); + await interaction.editReply({embeds: [embed]}); } }