createAudioResource
Creates an audio resource that can be played by audio players.
createAudioResource(input, options): AudioResource<Metadata extends null | undefined ? null : Metadata>
Creates an audio resource that can be played by audio players.
| Parameter | Type | Optional | Description | 
|---|---|---|---|
| input | string | Readable | ❌ | The resource to play | 
| options | CreateAudioResourceOptions<Metadata> & Pick<Metadata extends undefined | null ? CreateAudioResourceOptions<Metadata<Metadata>> : Required<CreateAudioResourceOptions<Metadata>>['metadata']> | ❌ | Configurable options for creating the resource |