1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Added a silent exception for playing music and not having permissions to send messages, as this seems to happen commonly based on error logs

This commit is contained in:
Phxntxm 2016-08-27 22:32:11 -05:00
parent ceddb2b7c8
commit ef1608b482

View file

@ -289,13 +289,16 @@ class Music:
return
except IndexError:
fmt = "Sorry, but there's no result with that search time! Try something else"
await self.bot.say(fmt)
await self.bot.send_message(ctx.message.channel, fmt)
return
# Now we can create a VoiceEntry and queue it
entry = VoiceEntry(ctx.message, player)
await state.songs.put(entry)
await self.bot.say('Enqueued ' + str(entry))
try:
await self.bot.say('Enqueued ' + str(entry))
except discord.Forbidden:
pass
@commands.command(pass_context=True, no_pm=True)
@checks.custom_perms(kick_members=True)