@commands.command(name='remove', aliases=['dequeue', 'pop'])
async def remove(self, ctx, index: int):
    player = self.bot.lavalink.player_manager.get(ctx.guild.id)
    if (not player.queue):
        return (await ctx.send('Nothing queued :cd:'))
    if ((index > len(player.queue)) or (index < 1)):
        return (await ctx.send('Index has to be >=1 and <=queue size'))
    index = (index - 1)
    removed = player.queue.pop(index)
    (await ctx.send((('Removed **' + removed.title) + '** from the queue.')))
@commands.command(name='remove', aliases=['dequeue', 'pop'])
async def remove(self, ctx, index: int):
    player = self.bot.lavalink.player_manager.get(ctx.guild.id)
    if (not player.queue):
        return (await ctx.send('Nothing queued :cd:'))
    if ((index > len(player.queue)) or (index < 1)):
        return (await ctx.send('Index has to be >=1 and <=queue size'))
    index = (index - 1)
    removed = player.queue.pop(index)
    (await ctx.send((('Removed **' + removed.title) + '** from the queue.')))