createAudioResource (2)

Creates an audio resource that can be played by audio players.
declare function createAudioResource<T extends null | undefined>(input: Readable | string, options?: Omit<CreateAudioResourceOptions<T>, 'metadata'>): AudioResource<null>;
NameTypeOptionalDescription
inputReadable | stringNo
The resource to play
optionsOmit<CreateAudioResourceOptions<T>, 'metadata'>Yes
Configurable options for creating the resource