diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-03-29 20:41:38 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-03-29 20:41:38 -0400 |
| commit | fd89e36490da711ba611c1f7c8dda93a3de054f0 (patch) | |
| tree | e8c1114add718665c75bb90e7af90a9f38101815 /commands/stop.js | |
| parent | 84b7017c7016aea12339ec4a3ef2ba1bf0fb3872 (diff) | |
| download | DLAP-fd89e36490da711ba611c1f7c8dda93a3de054f0.tar.gz DLAP-fd89e36490da711ba611c1f7c8dda93a3de054f0.tar.bz2 DLAP-fd89e36490da711ba611c1f7c8dda93a3de054f0.zip | |
New command; Every Discord interation is async
Diffstat (limited to 'commands/stop.js')
| -rw-r--r-- | commands/stop.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/stop.js b/commands/stop.js index f1bd8eb..c753a1b 100644 --- a/commands/stop.js +++ b/commands/stop.js @@ -29,7 +29,7 @@ export default { .setDescription('Powers off the bot'), async execute(interaction, bot) { if (![config.botOwner].includes(interaction.user.id)) return await interaction.reply({ content: "You do not have permissions to execute this command.", ephemeral: true }); - await interaction.reply('Powering off...') - await stopBot(bot, interaction); + await interaction.reply({ content: 'Powering off...', ephemeral: true}) + return await stopBot(bot, interaction); }, };
\ No newline at end of file |
