acknowledge command with reply
This commit is contained in:
parent
d0ec7fbb6c
commit
d212ca398a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user