Fix volume command in basic voice example
source.volume takes floating point percentages, e.g. 1.0 for 100%
This commit is contained in:
parent
8b8e9a619e
commit
8db7b5eb19
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user