diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-07-12 22:09:56 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-07-12 22:09:56 -0400 |
| commit | 0937181902a0e79d6bdf72295be259a41794f855 (patch) | |
| tree | bba5a8427c05ae362f164a8d022913b85cef8f16 /AudioBackend.js | |
| parent | dc1961d2247bdbbcad8dfa720e3a46e004e0262d (diff) | |
| download | DLAP-0937181902a0e79d6bdf72295be259a41794f855.tar.gz DLAP-0937181902a0e79d6bdf72295be259a41794f855.tar.bz2 DLAP-0937181902a0e79d6bdf72295be259a41794f855.zip | |
Fixed stopBot function
Diffstat (limited to 'AudioBackend.js')
| -rw-r--r-- | AudioBackend.js | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
