aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2022-08-18 14:42:09 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2022-08-18 14:42:09 +0000
commit07dabb5c3bec0f6d0ee9ae848ae7151f39de46c6 (patch)
tree4ea3f384623e5f06b06c421a54c7b496033b434b
parent357b50eea4d323662ae20aa8c0577936b80d8398 (diff)
downloadspeedrunbot-slash-07dabb5c3bec0f6d0ee9ae848ae7151f39de46c6.tar
speedrunbot-slash-07dabb5c3bec0f6d0ee9ae848ae7151f39de46c6.tar.gz
speedrunbot-slash-07dabb5c3bec0f6d0ee9ae848ae7151f39de46c6.tar.bz2
speedrunbot-slash-07dabb5c3bec0f6d0ee9ae848ae7151f39de46c6.tar.lz
speedrunbot-slash-07dabb5c3bec0f6d0ee9ae848ae7151f39de46c6.tar.xz
speedrunbot-slash-07dabb5c3bec0f6d0ee9ae848ae7151f39de46c6.tar.zst
speedrunbot-slash-07dabb5c3bec0f6d0ee9ae848ae7151f39de46c6.zip
Send, don't respond, to a cancel button press
-rw-r--r--src/srcom/slash_commands.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/srcom/slash_commands.tsx b/src/srcom/slash_commands.tsx
index 7c6a710..69d1878 100644
--- a/src/srcom/slash_commands.tsx
+++ b/src/srcom/slash_commands.tsx
@@ -438,7 +438,7 @@ export class SpeedrunCom extends ApplicationCommandsModule {
): Promise<void> {
const task = runningTasks.get(i.customID)!;
if (!task) {
- await i.respond({
+ await i.send({
content: "Sorry, but I couldn't find the running task to cancel.",
ephemeral: true,
});