Shard

Shard

new Shard(token, hibikiOptions)

Source:
See:

Main Shard/Client class

Parameters:
Name Type Description
token string

Token to use

hibikiOptions IHibikiOptions

Options

Extends

  • Eris.Client

Members

ch :CommandHandler

Source:

Command handler

Type:

ext :ExtensionManager

Source:

Extension manager

Type:

lm :LocaleManager

Source:

Locale manager

Type:

logger :Logger

Source:

Logger that logs things

Type:

pg :PostgreSQL

Source:

PostgreSQL client

Type:

ws :WebSocketClient

Source:

WebSocket client

Type:
  • WebSocketClient

Methods

checkGuilds() → {Promise.<void>}

Source:

Checks if all guilds are in the database

Returns:
Type
Promise.<void>

disconnectShard() → {Promise.<void>}

Source:

Disconnects the shard

Returns:
Type
Promise.<void>

init(timeoutopt) → {Promise.<void>}

Source:

Initializes the framework

Parameters:
Name Type Attributes Description
timeout number <optional>

Timeout in ms

Returns:
Type
Promise.<void>

Events

blocked

Source:

Emitted when the event loop is blocked