Fix volume command in basic voice example

source.volume takes floating point percentages, e.g. 1.0 for 100%
This commit is contained in:
Geroyuni 2019-03-09 15:59:32 -03:00 committed by Rapptz
parent 8b8e9a619e
commit 8db7b5eb19

View File

@ -101,7 +101,7 @@ class Music(commands.Cog):
if ctx.voice_client is None:
return await ctx.send("Not connected to a voice channel.")
ctx.voice_client.source.volume = volume
ctx.voice_client.source.volume = volume / 100
await ctx.send("Changed volume to {}%".format(volume))
@commands.command()