1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-17 04:26:00 +00:00

Debug channel conflict resolved

This commit is contained in:
MatteZ02
2020-04-06 00:20:34 +03:00
parent a06f616a98
commit a47ffd1012
16 changed files with 314 additions and 560 deletions

View File

@ -17,7 +17,7 @@ module.exports = {
msg.channel.send(`${client.messages.joined} ${voiceChannel.name}!`);
} catch (error) {
client.queue.delete(msg.guild.id);
client.channels.get(client.config.debug_channel).send(client.messages.errorConnecting + error);
client.users.cache.get(client.config.devId).send(client.messages.errorConnecting + error);
return msg.channel.send(client.messages.error);
}
}

View File

@ -16,7 +16,7 @@ module.exports = {
msg.channel.send(message);
} else {
queue.songLooping = false;
msg.channel.send(message);
msg.channel.send(client.messages.noLoopingSong);
}
}
}

View File

@ -11,7 +11,6 @@ module.exports = {
category: 'music',
async execute(msg, args, client, Discord, command) {
const searchString = args.slice(1).join(" ");
const url = args[1] ? args[1].replace(/<(.+)>/g, "$1") : "";
const queue = client.queue.get(msg.guild.id);
const voiceChannel = msg.member.voice.channel;
if (!queue) {

View File

@ -35,7 +35,7 @@ module.exports = {
.setDescription(error.stack.replace(/at /g, '**at **'))
.setColor(client.config.embedColor);
client.fetchUser(client.config.devId).then(user => user.send(embed)).catch(console.error);
client.channels.get(client.config.debug_channel).send(embed);
client.users.cache.get(client.config.devId).send(embed);
}
} else {
return msg.channel.send(embed);

View File

@ -42,9 +42,9 @@ function vote(queue, msg, client) {
queue.voters = [];
queue.votes = 0;
queue.votesNeeded = null;
return skipSong(queue, msg);
return skipSong(queue, msg, client);
} else return msg.channel.send(`${client.messages.notEnoughVotes} ${queue.votes} / ${queue.votesNeeded}!`);
} else {
return skipSong(queue, msg);
return skipSong(queue, msg, client);
}
};