Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Members

Members Collection

Hierarchy

Index

Constructors

constructor

Properties

client

client: ShardClient

enabled

enabled: boolean

key

key: string = DetritusKeys[DiscordKeys.MEMBERS]

length

length: number

options

options: BaseCollectionOptions

Accessors

[Symbol.toStringTag]

  • get [Symbol.toStringTag](): string

guilds

size

  • get size(): number

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<[string, Member]>

clear

  • clear(): void

delete

  • delete(guildId: string | null | undefined, key: string): boolean
  • Parameters

    • guildId: string | null | undefined
    • key: string

    Returns boolean

entries

  • entries(): IterableIterator<[string, Member]>
  • Returns IterableIterator<[string, Member]>

every

  • every(func: function): boolean
  • Parameters

    • func: function
        • (v: Member, k: string): boolean
        • Parameters

          Returns boolean

    Returns boolean

filter

  • filter(func: function): Array<Member>
  • Parameters

    • func: function
        • (v: Member, k: string): boolean
        • Parameters

          Returns boolean

    Returns Array<Member>

find

  • find(func: function): Member | undefined
  • Parameters

    • func: function
        • (v: Member, k: string): boolean
        • Parameters

          Returns boolean

    Returns Member | undefined

first

  • Returns Member | undefined

forEach

  • forEach(func: function, thisArg?: any): void
  • Parameters

    • func: function
        • Parameters

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get(guildId: string | null | undefined, key: string): Member | undefined

has

  • has(guildId: string | null | undefined, key: string): boolean
  • Parameters

    • guildId: string | null | undefined
    • key: string

    Returns boolean

insert

  • insert(member: Member): void
  • Parameters

    Returns void

join

  • join(separator?: undefined | string): string
  • Parameters

    • Optional separator: undefined | string

    Returns string

keys

  • keys(): IterableIterator<string>
  • Returns IterableIterator<string>

map

  • map(func: function): Array<any>
  • Parameters

    • func: function
        • Parameters

          Returns any

    Returns Array<any>

reduce

  • reduce(func: function, initialValue?: any): any
  • Parameters

    • func: function
        • (intial: any, v: Member): any
        • Parameters

          Returns any

    • Optional initialValue: any

    Returns any

set

  • set(guildId: string, key: string, value: Member): this

setEnabled

  • setEnabled(value: boolean): void

some

  • some(func: function): boolean
  • Parameters

    • func: function
        • (v: Member, k: string): boolean
        • Parameters

          Returns boolean

    Returns boolean

sort

  • sort(func?: undefined | function): Array<Member>
  • Parameters

    • Optional func: undefined | function

    Returns Array<Member>

toArray

  • Returns Array<Member>

toJSON

  • Returns Array<Member>

toString

  • toString(): string
  • Returns string

values

  • values(): IterableIterator<Member>

Generated using TypeDoc