acknowledge command with reply

This commit is contained in:
Baipyrus 2024-02-07 19:34:18 +01:00
parent d0ec7fbb6c
commit d212ca398a

View File

@ -46,6 +46,12 @@ export async function execute(interaction) {
// Save channel data
step = 'save';
await VoiceChannel.create({ id: channel.id });
// Reply success to acknowledge command
await interaction.reply({
content: `Successfully created channel!`,
ephemeral: true
});
break;
}
case 'register': {
@ -59,6 +65,12 @@ export async function execute(interaction) {
// Save channel data
step = 'save';
await VoiceChannel.create({ id });
// Reply success to acknowledge command
await interaction.reply({
content: `Successfully registered channel!`,
ephemeral: true
});
break;
}
}