aboutsummaryrefslogtreecommitdiff
path: root/examples/basic_voice.py
diff options
context:
space:
mode:
authorGeroyuni <[email protected]>2019-03-09 15:59:32 -0300
committerRapptz <[email protected]>2019-03-09 17:00:28 -0500
commit8db7b5eb19fb2a9ad52e291719abf67ba040ac0f (patch)
tree3fb1325957a63fa07332ac83922e1da3f1a4399f /examples/basic_voice.py
parentMoved http.close to before _closed.set (diff)
downloaddiscord.py-8db7b5eb19fb2a9ad52e291719abf67ba040ac0f.tar.xz
discord.py-8db7b5eb19fb2a9ad52e291719abf67ba040ac0f.zip
Fix volume command in basic voice example
source.volume takes floating point percentages, e.g. 1.0 for 100%
Diffstat (limited to 'examples/basic_voice.py')
-rw-r--r--examples/basic_voice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/basic_voice.py b/examples/basic_voice.py
index 048f5cf0..42cea2c8 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()