From 025a4e5175f4389af4e0855f5e0a49228cfef18a Mon Sep 17 00:00:00 2001 From: Ecolipsy Date: Fri, 3 Dec 2021 12:43:57 +0100 Subject: [PATCH] Make so it no say interaction failed --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 375411f..81a02ee 100644 --- a/index.js +++ b/index.js @@ -240,6 +240,7 @@ client.on("interactionCreate", (int) => { } } else if(int.isButton()){ if(int.customId.startsWith("cat")){ + int.update(int); const row = new dc.MessageActionRow(); const btn = new dc.MessageButton(); btn.setCustomId("cat-" + Math.round(Math.random()*99999)); @@ -250,6 +251,7 @@ client.on("interactionCreate", (int) => { int.message.edit({embeds: [{title: "Meow", image: {url: res.data[0].url}, color: "#ec76fd"}], components: [row]}); }); } else if(int.customId.startsWith("fox")){ + int.update(int); const row = new dc.MessageActionRow(); const btn = new dc.MessageButton(); btn.setCustomId("fox-" + Math.round(Math.random()*99999));