Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Overwrite

Channel Overwrite Structure, used in [ChannelGuildBase] Structures

Hierarchy

Index

Constructors

constructor

Properties

_keys

_keys: BaseSet<string> = keysOverwrite

allow

allow: number = 0

channel

channel: Channel

client

client: ShardClient

deny

deny: number = 0

id

id: string = ""

type

Accessors

channelId

  • get channelId(): string
  • Returns string

guild

  • get guild(): Guild | null
  • Returns Guild | null

guildId

  • get guildId(): string
  • Returns string

isMember

  • get isMember(): boolean
  • Returns boolean

isRole

  • get isRole(): boolean
  • Returns boolean

member

  • Returns Member | null

role

  • get role(): null | Role
  • Returns null | Role

shardId

  • get shardId(): number
  • Returns number

Methods

[inspect.custom]

  • [inspect.custom](): object

_getFromSnake

  • _getFromSnake(key: string): any
  • Parameters

    • key: string

    Returns any

_setFromSnake

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

    • key: string
    • value: any

    Returns any

can

  • can(permissions: PermissionTools.PermissionChecks): boolean
  • Parameters

    • permissions: PermissionTools.PermissionChecks

    Returns boolean

delete

  • delete(): Promise<any>
  • Returns Promise<any>

difference

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

    • key: string
    • value: any

    Returns [boolean, any]

differences

edit

  • edit(options?: EditChannelOverwrite): Promise<any>
  • Parameters

    • Default value options: EditChannelOverwrite = {}

    Returns Promise<any>

merge

mergeValue

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

    • key: string
    • value: any

    Returns void

toJSON

  • toJSON(): object
  • Returns object

Generated using TypeDoc