diff options
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); |
