From 85a535956f5b6fbb035dca090123ece7fa8be8b5 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 6 Dec 2022 20:22:27 -0500 Subject: Used ChatGPT to fix certain problems; Removed more unnessesary stuff --- backend/Shutdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/Shutdown.js') 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); } -- cgit v1.2.3