def has_permissions(ctx, **perms):
    """Copy of code from discord.py to work outside of wrappers"""
    ch = ctx.channel
    permissions = ch.permissions_for(ctx.author)

    missing = [perm for perm, value in perms.items() if getattr(permissions, perm, None) != value]

    if not missing:
        return True
    return False

    #raise commands.MissingPermissions(missing)