mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 21:33:17 +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