aboutsummaryrefslogtreecommitdiff
path: root/backend/Shutdown.js
diff options
context:
space:
mode:
Diffstat (limited to 'backend/Shutdown.js')
-rw-r--r--backend/Shutdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/Shutdown.js b/backend/Shutdown.js
index e1c1d26..fb89505 100644
--- a/backend/Shutdown.js
+++ b/backend/Shutdown.js
@@ -55,6 +55,6 @@ export async function stopBot(bot, interaction) {
console.log(`Powering off ${bot.user.username}...`);
await destroyAudio(interaction);
- bot.destroy();
+ await bot.destroy();
return process.exit(0);
}