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
|
// Save channel data
|
||||||
step = 'save';
|
step = 'save';
|
||||||
await VoiceChannel.create({ id: channel.id });
|
await VoiceChannel.create({ id: channel.id });
|
||||||
|
|
||||||
|
// Reply success to acknowledge command
|
||||||
|
await interaction.reply({
|
||||||
|
content: `Successfully created channel!`,
|
||||||
|
ephemeral: true
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'register': {
|
case 'register': {
|
||||||
|
@ -59,6 +65,12 @@ export async function execute(interaction) {
|
||||||
// Save channel data
|
// Save channel data
|
||||||
step = 'save';
|
step = 'save';
|
||||||
await VoiceChannel.create({ id });
|
await VoiceChannel.create({ id });
|
||||||
|
|
||||||
|
// Reply success to acknowledge command
|
||||||
|
await interaction.reply({
|
||||||
|
content: `Successfully registered channel!`,
|
||||||
|
ephemeral: true
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user