interface DiscordGatewayAdapterLibraryMethods

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: GatewayVoiceServerUpdateDispatchData) => void

Call this when you receive a VOICE_SERVER_UPDATE payload that is relevant to the adapter.

onVoiceStateUpdate : (data: GatewayVoiceStateUpdateDispatchData) => void

Call this when you receive a VOICE_STATE_UPDATE payload that is relevant to the adapter.