ICdnHttpEndpoints class Null safety
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
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 givenformat
andsize
. -
appIcon(
Snowflake clientId, String iconHash, {String format = 'webp', int? size}) → String -
Returns URL to
/app-icons/[iconHash]
. With givenformat
andsize
. -
avatar(
Snowflake id, String avatarHash, {String format = 'webp', int? size, bool animated = false}) → String -
Returns URL to
/avatars/[avatarHash]
. With givenformat
,size
and whether or not returns the animated version (if applicable) of this URL withanimated
. -
avatarDecoration(
Snowflake userId, String decorationHash, {int? size}) → String -
Returns URL to
/avatar-decorations/[userId]/[decorationHash]
. With givensize
. -
Returns URL to
/banners/[bannerHash]
. With givenformat
,size
and whether or not returns the animated version (if applicable) of this URL withanimated
. -
channelIcon(
Snowflake channelId, String iconHash, {String format = 'webp', int? size}) → String -
Returns URL to
/channel-icons/[iconHash]
. With givenformat
andsize
. -
defaultAvatar(
int discriminator) → String -
Returns URL to
/embed/avatars/[discriminator]
. -
discoverySplash(
Snowflake guildId, String splashHash, {String format = 'webp', int? size}) → String -
Returns URL to
/discovery-splashes/[splashHash]
. With givenformat
andsize
. -
emoji(
Snowflake emojiId, {String format = 'webp', int? size}) → String -
Returns URL to
/emojis/[emojiId]
. With givenformat
andsize
. -
guildEventCoverImage(
Snowflake eventId, String eventCoverHash, {String format = 'webp', int? size}) → String -
Returns URL to
/guild-events/[eventId]/[eventCoverHash]
. With givenformat
andsize
. -
icon(
Snowflake id, String iconHash, {String format = 'webp', int? size, bool animated = false}) → String -
Returns URL tp
/icons/[iconHash]
. With givenformat
,size
and whether or not returns the animated version (if applicable) of this URL withanimated
. -
memberAvatar(
Snowflake guildId, Snowflake userId, String avatarHash, {String format = 'webp', int? size, bool animated = false}) → String -
Returns URL to
/guilds/[guildId]/users/[userId]/[avatarHash]
. With givenformat
,size
and whether or not returns the animated version (if applicable) of this URL withanimated
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
roleIcon(
Snowflake roleId, String roleIconHash, {String format = 'webp', int? size}) → String -
Returns URL to
/role-icons/[roleIconHash]
. With givenformat
andsize
. -
splash(
Snowflake guildId, String splashHash, {String format = 'webp', int? size}) → String -
Returns URL to
/splashes/[splashHash]
. With givenformat
andsize
. -
sticker(
Snowflake stickerId, {String format = 'png'}) → String -
Returns URL to
/stickers/[stickerId]
. With givenformat
, must bepng
orjson
. -
stickerPackBanner(
Snowflake bannerId, {String format = 'webp', int? size}) → String -
Returns URL to
/app-assets/710982414301790216/store/[bannerId]
. With givenformat
andsize
. -
teamIcon(
Snowflake teamId, String teamIconHash, {String format = 'webp', int? size}) → String -
Returns URL to
/team-icons/[teamId]/[teamIconHash]
. With givenformat
andsize
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited