reply and provide id

This commit is contained in:
Baipyrus 2024-02-16 17:37:53 +01:00
parent b99db199d7
commit 5c4192eb4b

View File

@ -14,9 +14,11 @@ const createSelfRoles = async (interaction) => {
const text = options.getString('text'); const text = options.getString('text');
const id = (await channel.send(text)).id; const id = (await channel.send(text)).id;
// Reply and delete to acknowledge command // Reply successfully to acknowledge command
await interaction.deferReply(); await interaction.reply({
await interaction.deleteReply(); content: `Successfully sent message! Add roles to it with reference ID '${id}'.`,
ephemeral: true
});
return id; return id;
}; };