Changed the orders of the errors for logical preference
This commit is contained in:
parent
34fae41208
commit
694c848517
|
@ -366,13 +366,13 @@ class Music:
|
|||
|
||||
state = self.voice_states.get(ctx.message.guild.id)
|
||||
source = state.voice.source
|
||||
if value is None or not state.playing:
|
||||
if source is None:
|
||||
await ctx.send("Not playing anything right now, please set volume after playing something")
|
||||
elif value is None or not state.playing:
|
||||
volume = source.volume
|
||||
await ctx.send("Current volume is {}".format(volume))
|
||||
elif value > 200:
|
||||
await ctx.send("Sorry but the max volume is 200")
|
||||
elif source is None:
|
||||
await ctx.send("Not playing anything right now, please set volume after playing something")
|
||||
elif state.playing:
|
||||
source.volume = value / 100
|
||||
await ctx.send('Set the volume to {:.0%}'.format(source.volume))
|
||||
|
|
Loading…
Reference in a new issue