Optional
colour?: null | stringOptional
hoist?: booleanFormat: int64
Format: int64
Optional
rank?: numberFormat: int64
deletes a role from the server
the role to delete
A promise that resolves when the role is deleted
the role to edit
data to edit the role with
Represents a role that can be edited in a server.
Optional
colour?: string | nullColour of the role, or null
if no colour is set.
Optional
hoist?: booleanWhether the role is displayed separately in the member list.
Optional
name?: stringName of the role.
Optional
permissions?: editablePermissionsPermissions to set for the role. Format: { a: allow, d: deny }
Optional
rank?: numberRank of the role, used for ordering.
Optional
remove?: (keyof API.Role & { [key: string]: unknown })[]Fields to remove from the role. Each key corresponds to a field in the Role type.
Role
Optional
colour?: null | stringOptional
hoist?: booleanFormat: int64
Format: int64
Optional
rank?: numberFormat: int64
Optional
colour?: null | stringOptional
hoist?: booleanFormat: int64
Format: int64
Optional
rank?: numberFormat: int64
Optional
colour?: null | stringOptional
hoist?: booleanFormat: int64
Format: int64
Optional
rank?: numberFormat: int64
Description
Colour used for this role
This can be any valid CSS colour