ICdnHttpEndpoints class abstract

All known routes for Discord's CDN endpoints. Theses are used internally by specific classes; however it's possible to use them like IHttpEndpoints.

The docs assume the root (/) is https://cdn.discordapp.com/.

Constructors

ICdnHttpEndpoints()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

appAsset(Snowflake clientId, String assetHash, {String format = 'webp', int? size}) String
Returns URL to /app-assets/[assetHash]. With given format and size.
appIcon(Snowflake clientId, String iconHash, {String format = 'webp', int? size}) String
Returns URL to /app-icons/[iconHash]. With given format and size.
avatar(Snowflake id, String avatarHash, {String format = 'webp', int? size, bool animated = true}) String
Returns URL to /avatars/[avatarHash]. With given format, size and whether or not returns the animated version (if applicable) of this URL with animated.
avatarDecoration(Snowflake userId, String decorationHash, {int? size}) String
Returns URL to /avatar-decorations/[userId]/[decorationHash]. With given size.
Returns URL to /banners/[bannerHash]. With given format, size and whether or not returns the animated version (if applicable) of this URL with animated.
channelIcon(Snowflake channelId, String iconHash, {String format = 'webp', int? size}) String
Returns URL to /channel-icons/[iconHash]. With given format and size.
defaultAvatar(int discriminator, int id) String
Returns URL to /embed/avatars/{index}.
discoverySplash(Snowflake guildId, String splashHash, {String format = 'webp', int? size}) String
Returns URL to /discovery-splashes/[splashHash]. With given format and size.
emoji(Snowflake emojiId, {String format = 'webp', int? size}) String
Returns URL to /emojis/[emojiId]. With given format and size.
guildEventCoverImage(Snowflake eventId, String eventCoverHash, {String format = 'webp', int? size}) String
Returns URL to /guild-events/[eventId]/[eventCoverHash]. With given format and size.
icon(Snowflake id, String iconHash, {String format = 'webp', int? size, bool animated = true}) String
Returns URL tp /icons/[iconHash]. With given format, size and whether or not returns the animated version (if applicable) of this URL with animated.
memberAvatar(Snowflake guildId, Snowflake userId, String avatarHash, {String format = 'webp', int? size, bool animated = true}) String
Returns URL to /guilds/[guildId]/users/[userId]/[avatarHash]. With given format, size and whether or not returns the animated version (if applicable) of this URL with animated.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
roleIcon(Snowflake roleId, String roleIconHash, {String format = 'webp', int? size}) String
Returns URL to /role-icons/[roleIconHash]. With given format and size.
splash(Snowflake guildId, String splashHash, {String format = 'webp', int? size}) String
Returns URL to /splashes/[splashHash]. With given format and size.
sticker(Snowflake stickerId, {String format = 'png'}) String
Returns URL to /stickers/[stickerId]. With given format, must be png or json.
stickerPackBanner(Snowflake bannerId, {String format = 'webp', int? size}) String
Returns URL to /app-assets/710982414301790216/store/[bannerId]. With given format and size.
teamIcon(Snowflake teamId, String teamIconHash, {String format = 'webp', int? size}) String
Returns URL to /team-icons/[teamId]/[teamIconHash]. With given format and size.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited