Hierarchy

  • Client
    • default

Constructors

  • Parameters

    • Optional options: ClientOptions

    Returns default

Properties

config: DiscordBotConfig
type: string = 'generic'
discordBotsDbGateway: DiscordBotsDbGateway
dmChannelsDbGateway: DmChannelsDbGateway
guildCommands: Map<string, Command> = ...
dmCommands: Map<string, Command> = ...
isConfigured: boolean = false
status: DiscordBotStatus = 'disconnected'
botInstanceId: SUUID = ...
messageProcessingVerifier: MessageVerificationScheduler
channels: ChannelManager
emojis: GuildEmojiManager
guilds: GuildManager
readyAt: null | Date
readyTimestamp: null | number
shard: null | ShardClientUtil
token: null | string
uptime: null | number
user: null | ClientUser
users: UserManager
voice: null | ClientVoiceManager
ws: WebSocketManager
options: ClientOptions
errorMonitor: typeof errorMonitor

This symbol shall be used to install a listener for only monitoring 'error' events. Listeners installed using this symbol are called before the regular 'error' listeners are called.

Installing a listener using this symbol does not change the behavior once an 'error' event is emitted, therefore the process will still crash if no regular 'error' listener is installed.

captureRejectionSymbol: typeof captureRejectionSymbol
captureRejections: boolean

Sets or gets the default captureRejection value for all emitters.

defaultMaxListeners: number

Methods

  • Parameters

    • status: DiscordBotStatus

    Returns Promise<void>

  • Parameters

    • Optional listenerId: null | SUUID

    Returns Promise<boolean>

  • Parameters

    • messageId: string
    • listenerId: null | SUUID

    Returns Promise<void>

  • Returns Promise<ClientApplication>

  • Parameters

    • guild: GuildResolvable

    Returns Promise<GuildPreview>

  • Parameters

    • invite: string

    Returns Promise<Invite>

  • Parameters

    • template: string

    Returns Promise<GuildTemplate>

  • Returns Promise<Collection<string, VoiceRegion>>

  • Parameters

    • id: string
    • Optional token: string

    Returns Promise<Webhook>

  • Parameters

    • Optional options: InviteGenerationOptions | PermissionResolvable

    Returns Promise<string>

  • Parameters

    • Optional token: string

    Returns Promise<string>

  • Parameters

    • Optional lifetime: number

    Returns number

  • Returns object

  • Type Parameters

    • K extends keyof ClientEvents

    Parameters

    • event: K
    • listener: ((...args: ClientEvents[K]) => void)
        • (...args: ClientEvents[K]): void
        • Parameters

          • Rest ...args: ClientEvents[K]

          Returns void

    Returns default

  • Type Parameters

    • S extends string | symbol

    Parameters

    • event: Exclude<S, keyof ClientEvents>
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns default

  • Type Parameters

    • K extends keyof ClientEvents

    Parameters

    • event: K
    • listener: ((...args: ClientEvents[K]) => void)
        • (...args: ClientEvents[K]): void
        • Parameters

          • Rest ...args: ClientEvents[K]

          Returns void

    Returns default

  • Type Parameters

    • S extends string | symbol

    Parameters

    • event: Exclude<S, keyof ClientEvents>
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns default

  • Type Parameters

    • K extends keyof ClientEvents

    Parameters

    • event: K
    • Rest ...args: ClientEvents[K]

    Returns boolean

  • Type Parameters

    • S extends string | symbol

    Parameters

    • event: Exclude<S, keyof ClientEvents>
    • Rest ...args: any[]

    Returns boolean

  • Type Parameters

    • K extends keyof ClientEvents

    Parameters

    • event: K
    • listener: ((...args: ClientEvents[K]) => void)
        • (...args: ClientEvents[K]): void
        • Parameters

          • Rest ...args: ClientEvents[K]

          Returns void

    Returns default

  • Type Parameters

    • S extends string | symbol

    Parameters

    • event: Exclude<S, keyof ClientEvents>
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns default

  • Type Parameters

    • K extends keyof ClientEvents

    Parameters

    • Optional event: K

    Returns default

  • Type Parameters

    • S extends string | symbol

    Parameters

    • Optional event: Exclude<S, keyof ClientEvents>

    Returns default

  • Parameters

    • interval: Timeout

    Returns void

  • Parameters

    • timeout: Timeout

    Returns void

  • Parameters

    • timeout: Immediate

    Returns void

  • Parameters

    • fn: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    • delay: number
    • Rest ...args: any[]

    Returns Timeout

  • Parameters

    • fn: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    • delay: number
    • Rest ...args: any[]

    Returns Timeout

  • Parameters

    • fn: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    • Rest ...args: any[]

    Returns Immediate

  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns default

  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns default

  • Parameters

    • n: number

    Returns default

  • Returns number

  • Parameters

    • event: string | symbol

    Returns Function[]

  • Parameters

    • event: string | symbol

    Returns Function[]

  • Parameters

    • event: string | symbol

    Returns number

  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns default

  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns default

  • Returns (string | symbol)[]

  • Parameters

    • emitter: NodeEventTarget
    • event: string | symbol

    Returns Promise<any[]>

  • Parameters

    • emitter: DOMEventTarget
    • event: string

    Returns Promise<any[]>

  • Parameters

    • emitter: EventEmitter
    • event: string

    Returns AsyncIterableIterator<any>

  • Deprecated

    since v4.0.0

    Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Generated using TypeDoc