createAudioResource (2)

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