Skip to content
Guide v1

/ytdl audio

Extract one supported public media item as audio.

Public source-edition command; execution remains conditional on installation, server policy and the running service. This reference is built from the repository, not a live Discord registration probe. Explicit registration contexts: server, bot DM, private channel.

/ytdl audio <url:String> [format:String] [bitrate:String]

Angle brackets indicate required input; square brackets indicate optional input. In Discord, choose the command and fill its named options, rather than typing the brackets.

Name Type Required Allowed values / bounds Default when omitted Description
url String Yes No registration choices declared; handler validation applies. Required input Public media URL from a supported site
format String No mp3, m4a, opus mp3 Audio output format
bitrate String No 128, 192, 256, 320 192 Target bitrate; higher bitrates may exceed Discord’s file limit

No native default-member permission is declared for this path, and no additional native member permission was identified in its reviewed direct handler.

Fork role access is evaluated using the underlying ytdl policy key, even when the slash name is grouped. Native Discord permission checks remain separate from Fork role grants. Sensitive commands fail closed before valid setup; native Administrator bypasses Fork’s role matrix, not Discord’s bot permissions or target hierarchy. See Permission model.

Slash options
/ytdl audio url:https://www.youtube.com/watch?v=aqz-KE-bpKQ format:opus bitrate:128
Prefix equivalent and aliases
Default prefix
f!ytdl audio https://www.youtube.com/watch?v=aqz-KE-bpKQ opus 128

Default prefix: f!; installations can configure another. Handler aliases: downloadmedia, yt-dlp. Aliases are prefix names, not additional slash commands.

Grouped prefix routes also delegate to the original handlers, but aliases retain that handler’s argument parsing. Conflicting aliases are rejected as ambiguous. Prefix replies are generally visible in the channel; prefer slash privacy controls for sensitive personal data.

Returns the converted audio attachment or a temporary link where enabled. Only download media you are entitled to use.

Source restrictions, converter availability, file limits or service failure can prevent output. Check the returned error, current bot status and the relevant server permissions. A timeout or uncertain receipt is not proof that nothing happened; inspect state before repeating a mutation.

No fixed command-specific cooldown is declared in this reviewed entry. Discord rate limits, provider budgets, service admission and server policy can still apply; this is not an unlimited-usage promise.


Source edition v1 · Registration, direct handler and shared authorization review are hash-bound in the local documentation validation. This is not a production feature-availability certification.