Home Reference Source
import Ghastly from 'ghastly/src/client/Ghastly.js'
public class | source

Ghastly

Extends:

* → Ghastly

The Ghastly client.

Constructor Summary

Public Constructor
public

Constructor.

Member Summary

Public Members
public

The command registry for the client.

public

The client's service container.

Private Members
private

dispatcher: Dispatcher

The client's dispatcher.

Public Constructors

public constructor(options: ClientOptions) source

Constructor.

Params:

NameTypeAttributeDescription
options ClientOptions

The options for the client.

options.prefix PrefixType

The prefix for the client's dispatcher. If a function is provided, it is given a received Message as an argument and must return a boolean indicating if it passes the filter.

Throw:

TypeError

Thrown if any option is of the wrong type.

Public Members

public commands: CommandRegistry source

The command registry for the client.

public services: ServiceContainer source

The client's service container.

Private Members

private dispatcher: Dispatcher source

The client's dispatcher.