revbot.js
    Preparing search index...

    Type Alias editableRole

    Represents a role that can be edited in a server.

    type editableRole = {
        colour?: string | null;
        hoist?: boolean;
        name?: string;
        permissions?: editablePermissions;
        rank?: number;
        remove?: (keyof API.Role & { [key: string]: unknown })[];
    }
    Index

    Properties

    colour?: string | null

    Colour of the role, or null if no colour is set.

    hoist?: boolean

    Whether the role is displayed separately in the member list.

    name?: string

    Name of the role.

    permissions?: editablePermissions

    Permissions to set for the role. Format: { a: allow, d: deny }

    rank?: number

    Rank of the role, used for ordering.

    remove?: (keyof API.Role & { [key: string]: unknown })[]

    Fields to remove from the role. Each key corresponds to a field in the Role type.