Skip to content

Adapter

Type Parameter Default type
Target VoiceChannelTarget

createEngine(settings): Engine

The built-in engine, used unless a plugin carries one.

Parameter Type
settings EngineSettings

Engine


createVoiceSession(target, options): Promise<VoiceSession>

A gateway-only session for an engine plugin that holds its own voice socket: it sends the bot’s voice state and pairs the platform’s credentials into gateway. Core calls it only when the engine has no createVoiceSession.

Parameter Type
target VoiceTarget
options VoiceSessionOptions

Promise<VoiceSession>


normalizeTarget(target): VoiceTarget

Pure synchronous conversion. A throw rejects the caller with INVALID_ARGUMENT.

Parameter Type
target Target

VoiceTarget