Changed say to send_message, as for some reason the channel was not being resolved automatically
This commit is contained in:
parent
3357e5a9f0
commit
d729decf14
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class Music:
|
||||||
try:
|
try:
|
||||||
player = await state.voice.create_ytdl_player(song, ytdl_options=state.opts, after=state.toggle_next)
|
player = await state.voice.create_ytdl_player(song, ytdl_options=state.opts, after=state.toggle_next)
|
||||||
except youtube_dl.DownloadError:
|
except youtube_dl.DownloadError:
|
||||||
await self.bot.say("Sorry, that's not a supported URL!")
|
await self.bot.send_message(ctx.message.channel,"Sorry, that's not a supported URL!")
|
||||||
return
|
return
|
||||||
player.volume = 0.6
|
player.volume = 0.6
|
||||||
entry = VoiceEntry(ctx.message, player)
|
entry = VoiceEntry(ctx.message, player)
|
||||||
|
|
Loading…
Reference in a new issue