mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 03: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){
|
if(currentRadio){
|
||||||
client.funcs.statisticsUpdate(client, currentRadio.currentGuild.guild, currentRadio);
|
client.funcs.statisticsUpdate(client, currentRadio.currentGuild.guild, currentRadio);
|
||||||
currentRadio.connection.dispatcher.destroy();
|
currentRadio.connection.dispatcher?.destroy();
|
||||||
currentRadio.voiceChannel.leave();
|
currentRadio.voiceChannel.leave();
|
||||||
const cembed = new Discord.MessageEmbed()
|
const cembed = new Discord.MessageEmbed()
|
||||||
.setTitle(client.messages.maintenanceTitle)
|
.setTitle(client.messages.maintenanceTitle)
|
||||||
|
Loading…
Reference in New Issue
Block a user