You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

DiscordGatewayAdapterLibraryMethods

export declare interface DiscordGatewayAdapterLibraryMethods
export declare 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