From c570d9aa2c69c24b0845b122999b1c765386d73e Mon Sep 17 00:00:00 2001 From: Ecolipsy Date: Thu, 2 Dec 2021 20:59:51 +0100 Subject: [PATCH] Fix --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index df35c1e..e720700 100644 --- a/index.js +++ b/index.js @@ -139,11 +139,10 @@ client.on("interactionCreate", (int) => { if(!allowed.includes(int.user.id)) return int.reply({content: "You don't have permissions to use this command.", ephemeral: true}); var channel = int.options.getChannel("channel") || int.channel; var message = int.options.getString("message"); - int.deferReply(); channel.send(message).then(msg => { - int.editReply({content: "Successfully sent message.", ephemeral: true}); + int.reply({content: "Successfully sent message.", ephemeral: true}); }).catch(e => { - int.editReply({content: "An error has occured, check console."}); + int.reply({content: "An error has occured, check console."}); console.log(e); }); }