Eris Wrapper
Table of Contents
Class Definition
export class ErisManager extends Manager {}
Constructor
new ErisManager(client: Client, options?: ManagerOptions)
Parameter Type Description Optional clientClient The Eris client. optionsManagerOptionsThe manager options.
note
The Eris 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 packetGatewayVoiceStateUpdate The packet.
resolveUser()
override async resolveUser(user: PortableUser | string): Promise<User | PortableUser>Resolve a user.
Parameter Type Description userPortableUser| stringThe packet.