Interface CreateRoleOptions

interface CreateRoleOptions {
    color?: number;
    hoist?: boolean;
    icon?: null | string | Buffer;
    mentionable?: boolean;
    name?: string;
    permissions?: string;
    reason?: string;
    unicodeEmoji?: null | string;
}

Hierarchy (view full)

Properties

color?: number

The color of the role.

hoist?: boolean

If the role should be hoisted.

icon?: null | string | Buffer

The icon for the role (buffer, or full data url). Requires the ROLE_ICONS feature.

mentionable?: boolean

If the role should be mentionable.

name?: string

The name of the role.

permissions?: string

The permissions of the role.

reason?: string

The reason for creating the role.

unicodeEmoji?: null | string

The unicode emoji for the role. Requires the ROLE_ICONS feature.