mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:00:18 +00:00
DIspatcher nullable in maintenance command
This commit is contained in:
parent
84a780723e
commit
490b2f1792
@ -27,7 +27,7 @@ module.exports = {
|
||||
|
||||
if(currentRadio){
|
||||
client.funcs.statisticsUpdate(client, currentRadio.currentGuild.guild, currentRadio);
|
||||
currentRadio.connection.dispatcher.destroy();
|
||||
currentRadio.connection.dispatcher?.destroy();
|
||||
currentRadio.voiceChannel.leave();
|
||||
const cembed = new Discord.MessageEmbed()
|
||||
.setTitle(client.messages.maintenanceTitle)
|
||||
|
Loading…
Reference in New Issue
Block a user