@commands.command(name='equalizer', aliases=['eq'])
async def equalizer(self, ctx, *args):
    'Equalizer'
    player = self.bot.lavalink.player_manager.get(ctx.guild.id)
    if (len(args) == 0):
        (await ctx.send('Specify `band gain` or `preset` to change frequencies :control_knobs:'))
    elif (len(args) == 1):
        presets = {'reset': 'Default', 'bassboost': [0.08, 0.12, 0.2, 0.18, 0.15, 0.1, 0.05, 0.0, 0.02, (- 0.04), (- 0.06), (- 0.08), (- 0.1), (- 0.12), (- 0.14)], 'jazz': [(- 0.13), (- 0.11), (- 0.1), (- 0.1), 0.14, 0.2, (- 0.18), 0.0, 0.24, 0.22, 0.2, 0.0, 0.0, 0.0, 0.0], 'pop': [(- 0.02), (- 0.01), 0.08, 0.1, 0.15, 0.1, 0.03, (- 0.02), (- 0.035), (- 0.05), (- 0.05), (- 0.05), (- 0.05), (- 0.05), (- 0.05)], 'treble': [(- 0.1), (- 0.12), (- 0.12), (- 0.12), (- 0.08), (- 0.04), 0.0, 0.3, 0.34, 0.4, 0.35, 0.3, 0.3, 0.3, 0.3]}
        preset = args[0].lower()
        if (preset in ['reset', 'default']):
            (await player.reset_equalizer())
        elif (preset in presets):
            gain_list = enumerate(presets[preset])
            (await player.set_gains(*gain_list))
        elif (preset == '--list'):
            em = discord.Embed(title=':control_knobs: EQ presets:', color=discord.Color(16740095), description='\n'.join(presets.keys()))
            return (await ctx.send(embed=em))
        else:
            return (await ctx.send('Invalid preset specified :control_knobs:\nType `~eq --list` for all presets'))
    elif (len(args) == 2):
        try:
            band = int(args[0])
            gain = float(args[1])
            (await player.set_gain(band, gain))
        except ValueError:
            return (await ctx.send('Specify valid `band gain` values :control_knobs:'))
    else:
        return (await ctx.send('Specify `band gain` or `preset` :control_knobs:'))
    eq_frequencies = [f'`{gain}`' for gain in player.equalizer]
    (await ctx.send((':level_slider: Current Values:\n' + ' '.join(eq_frequencies))))
Equalizer
@commands.command(name='equalizer', aliases=['eq'])
async def equalizer(self, ctx, *args):
    
    player = self.bot.lavalink.player_manager.get(ctx.guild.id)
    if (len(args) == 0):
        (await ctx.send('Specify `band gain` or `preset` to change frequencies :control_knobs:'))
    elif (len(args) == 1):
        presets = {'reset': 'Default', 'bassboost': [0.08, 0.12, 0.2, 0.18, 0.15, 0.1, 0.05, 0.0, 0.02, (- 0.04), (- 0.06), (- 0.08), (- 0.1), (- 0.12), (- 0.14)], 'jazz': [(- 0.13), (- 0.11), (- 0.1), (- 0.1), 0.14, 0.2, (- 0.18), 0.0, 0.24, 0.22, 0.2, 0.0, 0.0, 0.0, 0.0], 'pop': [(- 0.02), (- 0.01), 0.08, 0.1, 0.15, 0.1, 0.03, (- 0.02), (- 0.035), (- 0.05), (- 0.05), (- 0.05), (- 0.05), (- 0.05), (- 0.05)], 'treble': [(- 0.1), (- 0.12), (- 0.12), (- 0.12), (- 0.08), (- 0.04), 0.0, 0.3, 0.34, 0.4, 0.35, 0.3, 0.3, 0.3, 0.3]}
        preset = args[0].lower()
        if (preset in ['reset', 'default']):
            (await player.reset_equalizer())
        elif (preset in presets):
            gain_list = enumerate(presets[preset])
            (await player.set_gains(*gain_list))
        elif (preset == '--list'):
            em = discord.Embed(title=':control_knobs: EQ presets:', color=discord.Color(16740095), description='\n'.join(presets.keys()))
            return (await ctx.send(embed=em))
        else:
            return (await ctx.send('Invalid preset specified :control_knobs:\nType `~eq --list` for all presets'))
    elif (len(args) == 2):
        try:
            band = int(args[0])
            gain = float(args[1])
            (await player.set_gain(band, gain))
        except ValueError:
            return (await ctx.send('Specify valid `band gain` values :control_knobs:'))
    else:
        return (await ctx.send('Specify `band gain` or `preset` :control_knobs:'))
    eq_frequencies = [f'`{gain}`' for gain in player.equalizer]
    (await ctx.send((':level_slider: Current Values:\n' + ' '.join(eq_frequencies))))