Add a check for if value has been provided
This commit is contained in:
parent
005ac4179b
commit
0c30aca9d9
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue