mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 18:56:00 +00:00
Update 3.5
This commit is contained in:
6
src/events/clientEvents/guildDelete.js
Normal file
6
src/events/clientEvents/guildDelete.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
name: "guildcreate",
|
||||
async execute(client, guild) {
|
||||
delete client.global.db.guilds[guild.id];
|
||||
},
|
||||
};
|
@ -19,9 +19,13 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
if (oldState.channel.members.size === 1 && oldState.channel === queue.voiceChannel || change) {
|
||||
queue.textChannel.send(client.messages.leftAlonePaused);
|
||||
queue.paused = true;
|
||||
queue.connection.dispatcher.pause(true);
|
||||
setTimeout(() => {
|
||||
if (!queue || !queue.connection.dispatcher || queue.connection.dispatcher === null) return;
|
||||
if (queue.voiceChannel.members.size === 1) {
|
||||
queue.textChannel.send(client.messages.leftAlone);
|
||||
queue.songs = [];
|
||||
queue.looping = false;
|
||||
queue.endReason = "Timeout";
|
||||
|
Reference in New Issue
Block a user