Options
All
  • Public
  • Public/Protected
  • All
Menu

Guild Role Structure, used in [Guild]

Hierarchy

Index

Constructors

constructor

Properties

Readonly _keys

_keys: BaseSet<string> = ...

Readonly _keysMerge

_keysMerge: BaseSet<string> = ...

Readonly client

client: ShardClient

color

color: number = 0

guildId

guildId: string = ''

hoist

hoist: boolean = false

id

id: string = ''

managed

managed: boolean = false

mentionable

mentionable: boolean = false

name

name: string = ''

permissions

permissions: bigint = ...

position

position: number = 0

tags

tags: null | { bot_id: string; integration_id?: string; premium_subscriber?: null } = null

Accessors

botId

  • get botId(): null | string

createdAt

  • get createdAt(): Date

createdAtUnix

  • get createdAtUnix(): number

guild

  • get guild(): null | Guild

integrationId

  • get integrationId(): null | string

isBoosterRole

  • get isBoosterRole(): boolean

isClone

  • get isClone(): boolean

isDefault

  • get isDefault(): boolean

members

mention

  • get mention(): string

shardId

  • get shardId(): number

Methods

[custom]

  • [custom](): object

_getFromSnake

  • _getFromSnake(key: string): any

_setFromSnake

  • _setFromSnake(key: string, value: any): any

can

  • can(permissions: PermissionChecks, __namedParameters?: { ignoreAdministrator?: boolean }): boolean

clone

delete

  • delete(options?: DeleteGuildRole): Promise<any>

difference

  • difference(key: string, value: any): [boolean, any]

differences

differencesBetween

  • differencesBetween(structure: Structure): null | object

edit

  • edit(options: EditGuildRole): Promise<Role>

editPosition

  • editPosition(position: number, options?: EditGuildRolePositionsExtra): Promise<BaseCollection<string, Role>>

hasDifference

  • hasDifference(key: string, value: any): boolean

hasDifferences

hasDifferencesBetween

  • hasDifferencesBetween(structure: Structure): boolean

merge

mergeValue

  • mergeValue(key: string, value: any): void

permissionsIn

toJSON

  • toJSON(): object

toString

  • toString(): string

Generated using TypeDoc