From 0937181902a0e79d6bdf72295be259a41794f855 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 12 Jul 2022 22:09:56 -0400 Subject: Fixed stopBot function --- AudioBackend.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'AudioBackend.js') diff --git a/AudioBackend.js b/AudioBackend.js index 43e7b2f..354f26d 100644 --- a/AudioBackend.js +++ b/AudioBackend.js @@ -177,9 +177,9 @@ export async function stopBot(bot, interaction) { .setAuthor({ name: bot.user.username, iconURL: bot.user.avatarURL() }) .setDescription(`That's all folks! Powering down ${bot.user.username}...`) .setColor('#0066ff'); - const statusChannel = bot.channels.cache.get(config.statusChannel); - if (!statusChannel) return console.error('The status channel does not exist! Skipping.'); - await statusChannel.send({ embeds: [statusEmbed] }); + const channel = bot.channels.cache.get(statusChannel); + if (!channel) return console.error('The status channel does not exist! Skipping.'); + await channel.send({ embeds: [statusEmbed] }); console.log(`Powering off ${bot.user.username}...`); await destroyAudio(interaction); -- cgit v1.2.3