Interface PATCHGuildRoleBody

interface PATCHGuildRoleBody {
    colors: number[];
    isDisplayedSeparately?: boolean;
    isMentionable?: boolean;
    isSelfAssignable?: boolean;
    name?: string;
    permissions: Permissions[];
    priority?: number;
}

Properties

colors: number[]

An array of integer values corresponding to the decimal RGB representation for a color. The first color is solid, and a second color indicates a gradient (min items 0; max items 2)

isDisplayedSeparately?: boolean

If set, the role will be displayed separately in the channel member list (default false)

isMentionable?: boolean

If set, this role can be mentioned (default false)

isSelfAssignable?: boolean

If set, this roll will be self assigned (default false)

name?: string

The role's name

permissions: Permissions[]

Permissions must be a collection of valid permissions as defined in the Enums/Permissions section of Guilded API documentation website

priority?: number

The priority the role will be in relation to other roles in the server. The higher the value, the more precedence the role has over lower priority roles, and the higher up it will be displayed in the UI. Values can be zero or negative (min 1)