extends SapphireClient
new DOS.Client(options);
| Parameter | Type | Description |
|---|---|---|
| options | ClientOptions & ClientOptions | Options for the client |
.options
Options for the client
Type: ClientOptions & ClientOptions
.command(trigger, code, options)
Adds a command to the commands list
| Parameter | Type | Description |
|---|---|---|
| trigger | String | The full name of the command |
| code | String | The code to run when this event is triggered |
| options | CommandCreateOptions | The options for the command |
Returns: void
.commandsIn(dir)
Adds commands from a directory
| Parameter | Type | Description |
|---|---|---|
| dir | String | The directory to add commands from |
Returns: void
.validateTrigger(trigger) P