Skip to content

DiscordJS

Extends

Constructors

new DiscordJS()

new DiscordJS(client: any): DiscordJS

Parameters

ParameterType
clientany

Returns

DiscordJS

Inherited from

Connector.constructor

Defined in

shoukaku/src/connectors/Connector.ts:18

Methods

getId()

getId(): string

Returns

string

Overrides

Connector.getId

Defined in

shoukaku/src/connectors/libs/DiscordJS.ts:11


listen()

listen(nodes: NodeOption[]): void

Parameters

ParameterType
nodesNodeOption[]

Returns

void

Overrides

Connector.listen

Defined in

shoukaku/src/connectors/libs/DiscordJS.ts:15


sendPacket()

sendPacket(
shardId: number,
payload: any,
important: boolean): void

Parameters

ParameterType
shardIdnumber
payloadany
importantboolean

Returns

void

Overrides

Connector.sendPacket

Defined in

shoukaku/src/connectors/libs/DiscordJS.ts:7


set()

set(manager: Shoukaku): Connector

Parameters

ParameterType
managerShoukaku

Returns

Connector

Inherited from

Connector.set

Defined in

shoukaku/src/connectors/Connector.ts:24