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

DiscordGatewayAdapterImplementerMethods

export declare interface DiscordGatewayAdapterImplementerMethods
export declare interface DiscordGatewayAdapterImplementerMethods
Methods that are provided by the implementer of a Discord gateway DiscordGatewayAdapter.
destroy():void
This will be called by discordjs/voice when the adapter can safely be destroyed as it will no longer be used.
sendPayload(payload):boolean
Implement this method such that the given payload is sent to the main Discord gateway connection.
Returns
false if the payload definitely failed to send - in this case, the voice connection disconnects
NameTypeOptionalDescription
payloadanyNoThe payload to send to the main Discord gateway connection