Skip to main content
Version: v2.9.2

Oceanic Wrapper

Table of Contents

Class Definition

export class OceanicManager extends Manager {}

Constructor

new OceanicManager(client: Client, options?: ManagerOptions)
Parameter Type Description Optional
clientClientThe Oceanic client.
optionsManagerOptionsThe manager options.
note

The Oceanic 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: AnyUser | string): Promise<User | AnyUser>

Resolve a user.

Parameter Type Description
userAnyUser | stringThe packet.