From 07dabb5c3bec0f6d0ee9ae848ae7151f39de46c6 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <lucafulger@gmail.com>
Date: Thu, 18 Aug 2022 16:42:09 +0200
Subject: Send, don't respond, to a cancel button press

---
 src/srcom/slash_commands.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/srcom/slash_commands.tsx')

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,
 			});
-- 
cgit v1.2.3

