DiscordGatewayAdapterLibraryMethods

export interface DiscordGatewayAdapterLibraryMethods
export interface DiscordGatewayAdapterLibraryMethods
Methods that are provided by the discordjs/voice library to implementations of Discord gateway DiscordGatewayAdapters.
destroy():void
Call this when the adapter can no longer be used (e.g. due to a disconnect from the main gateway)
onVoiceServerUpdate(data):void
Call this when you receive a VOICE_SERVER_UPDATE payload that is relevant to the adapter.
NameTypeOptionalDescription
dataGatewayVoiceServerUpdateDispatchDataNoThe inner data of the VOICE_SERVER_UPDATE payload
onVoiceStateUpdate(data):void
Call this when you receive a VOICE_STATE_UPDATE payload that is relevant to the adapter.
NameTypeOptionalDescription
dataGatewayVoiceStateUpdateDispatchDataNoThe inner data of the VOICE_STATE_UPDATE payload