Skip to main content

Client <Ready>

Hierarchy

  • EventEmitter
    • Client

Index

Constructors

constructor

  • Type parameters

    • Ready: boolean = boolean

Properties

publiccdn

cdn: CDN = ...

The CDN handler for this client

publicchannels

channels: Map<string, Channel> = ...

All channels that are currently cached

publicguilds

guilds: Map<string, Guild> = ...

All guilds that are currently cached

publicoptions

options: ClientOptions

The options for this client

publicready

ready: Ready = ...

publicrest

rest: RestAPIHandler = ...

The rest API handler for this client

publicusers

users: Map<string, User> = ...

All users that are currently cached

Accessors

publicuser

  • The user used to log in

Methods

publicconnect

  • connect(token: string): Promise<void>
  • Connect to the Discord gateway

emit

publiclogin

  • login(token: string): Promise<void>

off

on