Private
Readonly
cdnPrivate
dynamicConstructs the URL for the resource, checking whether or not hash
starts with a_
if dynamic
is set to true
.
The base cdn route
The hash provided by Discord for this icon
Optional options for the link
Private
makeURLConstructs the URL for the resource
The base cdn route
The extension/size options for the link
Private
Readonly
mediaGenerates an app asset URL for a client's asset.
The client id that has the asset
The hash provided by Discord for this asset
Optional
options: Readonly<BaseImageURLOptions>Optional options for the asset
Generates an app icon URL for a client's icon.
The client id that has the icon
The hash provided by Discord for this icon
Optional
options: Readonly<BaseImageURLOptions>Optional options for the icon
Generates an avatar URL, e.g. for a user or a webhook.
The id that has the icon
The hash provided by Discord for this avatar
Optional
options: Readonly<ImageURLOptions>Optional options for the avatar
Generates a user avatar decoration preset URL.
The avatar decoration hash
Generates a user avatar decoration URL.
The id of the user
The hash provided by Discord for this avatar decoration
Optional
options: Readonly<BaseImageURLOptions>Optional options for the avatar decoration
This overload is deprecated. Pass a hash instead.
Generates a banner URL, e.g. for a user or a guild.
The id that has the banner splash
The hash provided by Discord for this banner
Optional
options: Readonly<ImageURLOptions>Optional options for the banner
Generates an icon URL for a channel, e.g. a group DM.
The channel id that has the icon
The hash provided by Discord for this channel
Optional
options: Readonly<BaseImageURLOptions>Optional options for the icon
Generates a discovery splash URL for a guild's discovery splash.
The guild id that has the discovery splash
The hash provided by Discord for this splash
Optional
options: Readonly<BaseImageURLOptions>Optional options for the splash
Generates an emoji's URL for an emoji.
The emoji id
Optional
options: Readonly<BaseImageURLOptions>Optional options for the emoji
Generates an emoji's URL for an emoji.
The emoji id
Optional
extension: "webp" | "png" | "jpg" | "jpeg" | "gif"The extension of the emoji
This overload is deprecated. Pass an object containing the extension instead.
Generates a guild member avatar URL.
The id of the guild
The id of the user
The hash provided by Discord for this avatar
Optional
options: Readonly<ImageURLOptions>Optional options for the avatar
Generates a guild member banner URL.
The id of the guild
The id of the user
The hash provided by Discord for this banner
Optional
options: Readonly<ImageURLOptions>Optional options for the banner
Generates a cover image for a guild scheduled event.
The scheduled event id
The hash provided by discord for this cover image
Optional
options: Readonly<BaseImageURLOptions>Optional options for the cover image
Generates an icon URL, e.g. for a guild.
The id that has the icon splash
The hash provided by Discord for this icon
Optional
options: Readonly<ImageURLOptions>Optional options for the icon
Generates a URL for the icon of a role
The id of the role that has the icon
The hash provided by Discord for this role icon
Optional
options: Readonly<BaseImageURLOptions>Optional options for the role icon
Generates a guild invite splash URL for a guild's invite splash.
The guild id that has the invite splash
The hash provided by Discord for this splash
Optional
options: Readonly<BaseImageURLOptions>Optional options for the splash
Generates a sticker pack banner URL.
The banner id
Optional
options: Readonly<BaseImageURLOptions>Optional options for the banner
Generates a team icon URL for a team's icon.
The team id that has the icon
The hash provided by Discord for this icon
Optional
options: Readonly<BaseImageURLOptions>Optional options for the icon
Generated using TypeDoc
The CDN link builder