Skip to content

ReceiveStreamOptions ​

typedef · Source

Options passed to VoiceReceiver#createStream. Type: Object

Properties ​

mode ​

optional

mode: string

The mode for audio output. This defaults to opus, meaning discord.js won't decode the packets for you. You can set this to 'pcm' so that the stream's output will be 16-bit little-endian stereo audio

Default: 'opus'

end ​

optional

end: string

When the stream should be destroyed. If silence, this will be when the user stops talking. Otherwise, if manual, this should be handled by you.

Default: 'silence'

paddingSilence ​

optional

paddingSilence: boolean

Whether to add silence padding If 'end' is set to 'silence', this property automatically defaults to false

Default: false

Unofficial software. Not affiliated with or supported by Discord.