Handle API errors more gracefully, fixed sharpen, restrict screenshot to the bot owner

This commit is contained in:
TheEssem 2020-12-14 10:58:31 -06:00
parent 9c496a4984
commit 78ae47dbbb
4 changed files with 20 additions and 6 deletions

View file

@ -58,7 +58,7 @@ exports.play = async (sound, message, music = false) => {
const oldQueue = this.queues.get(voiceChannel.guild.id);
if (tracks.length === 0) return `${message.author.mention}, I couldn't find that song!`;
if (music) {
this.queues.set(voiceChannel.guild.id, oldQueue ? [...oldQueue, tracks[0].track] : [tracks[0].track]);
this.queues.set(voiceChannel.guild.id, oldQueue ? [...oldQueue, tracks[0].track] : [tracks[0].track]);
}
let connection;
if (player) {