From 5c4192eb4bd61c47ea6d0ef0803c129eb167c09a Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 16 Feb 2024 17:37:53 +0100 Subject: [PATCH] reply and provide id --- commands/admin/self_roles/slash.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/commands/admin/self_roles/slash.js b/commands/admin/self_roles/slash.js index 3226bd3..2821f51 100644 --- a/commands/admin/self_roles/slash.js +++ b/commands/admin/self_roles/slash.js @@ -14,9 +14,11 @@ const createSelfRoles = async (interaction) => { const text = options.getString('text'); const id = (await channel.send(text)).id; - // Reply and delete to acknowledge command - await interaction.deferReply(); - await interaction.deleteReply(); + // Reply successfully to acknowledge command + await interaction.reply({ + content: `Successfully sent message! Add roles to it with reference ID '${id}'.`, + ephemeral: true + }); return id; };