generated from Baipyrus/DiscordJS-Template
reply and provide id
This commit is contained in:
parent
b99db199d7
commit
5c4192eb4b
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user