Update stop command

This commit is contained in:
Christer Warén 2021-09-09 18:52:25 +03:00
parent fb257d1c30
commit 9e2be295c3

View File

@ -5,8 +5,8 @@ module.exports = {
description: 'Stop radio',
category: 'radio',
async execute(interaction, client, command) {
const radio = client.radio.get(interaction.guild.id);
if (client.funcs.check(client, interaction, command)) {
const radio = client.radio.get(interaction.guild.id);
client.funcs.statisticsUpdate(client, interaction.guild, radio);
radio.connection?.destroy();
radio.audioPlayer?.stop();