Skip to main content
Version: v2.9.1

Detritus Wrapper

Table of Contents

Class Definition

export class DetritusManager extends Manager {}

Constructor

new DetritusManager(client: ClusterClient | ShardClient, options?: ManagerOptions)
Parameter Type Description Optional
clientClusterClient | ShardClientThe Detritus cluster client or shard client.
optionsManagerOptionsThe manager options.
note

The Detritus wrapper hooks into the ready and raw event to automatically set the clientId-option in the ManagerOptions as well as use the updateVoiceStatefunction to send packets to Discord.

Methods

send()

override send(packet: GatewayVoiceStateUpdate)

Sends a packet to Discord.

Parameter Type Description
packetGatewayVoiceStateUpdateThe packet.

resolveUser()

override async resolveUser(user: PortableUser | string): Promise<PortableUser>

Resolve a user.

Parameter Type Description
userPortableUser | stringThe packet.