From 8db7b5eb19fb2a9ad52e291719abf67ba040ac0f Mon Sep 17 00:00:00 2001 From: Geroyuni Date: Sat, 9 Mar 2019 15:59:32 -0300 Subject: [PATCH] Fix volume command in basic voice example source.volume takes floating point percentages, e.g. 1.0 for 100% --- examples/basic_voice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/basic_voice.py b/examples/basic_voice.py index 048f5cf00..42cea2c87 100644 --- a/examples/basic_voice.py +++ b/examples/basic_voice.py @@ -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()