Skip to main content

Client

Extends DJSClient​

The main hub for interacting with the DJSeed.

Constructor​

new Client(token, options);
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
tokenstring❌undefinedDiscord API Token.
optionsClientOptions❌undefinedClient Options. Current No Different From DJSClientOptions.

Properties​

_token READONLY​

Client Discord API token.

Type: string


_options READONLY​

Client options object.

Type: ClientOptions


cluster READONLY​

Client cluster partial.

danger

Will only be defined if using ClusterUtil!

Type: ClusterPartial | undefined


Methods​

login OVERRIDE​

Method that overrides DJSClient#login. A token does NOT need to be passed as a parameter, as it is passed in Client#contructor.

login();

Returns​

Promise< string >