1
0
Fork 0
mirror of synced 2024-05-20 12:32:26 +12:00

Add a check for if value has been provided

This commit is contained in:
Phxntxm 2017-05-05 15:55:29 -05:00
parent 005ac4179b
commit 0c30aca9d9

View file

@ -362,7 +362,8 @@ class Music:
"""Sets the volume of the currently playing song."""
state = self.voice_states.get(ctx.message.guild.id)
value = value / 100
if value:
value = value / 100
if state is None or state.voice is None:
await ctx.send("I need to be in a channel before my volume can be set")
elif value is None: