Table of Contents

Class ImageUrl

Namespace
NetCord
Assembly
NetCord.dll
public class ImageUrl : ISpanFormattable, IFormattable
Inheritance
ImageUrl
Implements
Inherited Members

Methods

AchievementIcon(ulong, ulong, string, ImageFormat)

public static ImageUrl AchievementIcon(ulong applicationId, ulong achievementId, string iconHash, ImageFormat format)

Parameters

applicationId ulong
achievementId ulong
iconHash string
format ImageFormat

Returns

ImageUrl

ApplicationAsset(ulong, ulong, ImageFormat)

public static ImageUrl ApplicationAsset(ulong applicationId, ulong assetId, ImageFormat format)

Parameters

applicationId ulong
assetId ulong
format ImageFormat

Returns

ImageUrl

ApplicationCover(ulong, string, ImageFormat)

public static ImageUrl ApplicationCover(ulong applicationId, string coverHash, ImageFormat format)

Parameters

applicationId ulong
coverHash string
format ImageFormat

Returns

ImageUrl

ApplicationIcon(ulong, string, ImageFormat)

public static ImageUrl ApplicationIcon(ulong applicationId, string iconHash, ImageFormat format)

Parameters

applicationId ulong
iconHash string
format ImageFormat

Returns

ImageUrl

AvatarDecoration(string)

public static ImageUrl AvatarDecoration(string avatarDecorationHash)

Parameters

avatarDecorationHash string

Returns

ImageUrl

CustomEmoji(ulong, ImageFormat)

public static ImageUrl CustomEmoji(ulong emojiId, ImageFormat format)

Parameters

emojiId ulong
format ImageFormat

Returns

ImageUrl

DefaultUserAvatar(ushort)

public static ImageUrl DefaultUserAvatar(ushort discriminator)

Parameters

discriminator ushort

Returns

ImageUrl

DefaultUserAvatar(ulong)

public static ImageUrl DefaultUserAvatar(ulong id)

Parameters

id ulong

Returns

ImageUrl

GuildBanner(ulong, string, ImageFormat?)

public static ImageUrl GuildBanner(ulong guildId, string bannerHash, ImageFormat? format)

Parameters

guildId ulong
bannerHash string
format ImageFormat?

Returns

ImageUrl

GuildDiscoverySplash(ulong, string, ImageFormat)

public static ImageUrl GuildDiscoverySplash(ulong guildId, string discoverySplashHash, ImageFormat format)

Parameters

guildId ulong
discoverySplashHash string
format ImageFormat

Returns

ImageUrl

GuildIcon(ulong, string, ImageFormat?)

public static ImageUrl GuildIcon(ulong guildId, string iconHash, ImageFormat? format)

Parameters

guildId ulong
iconHash string
format ImageFormat?

Returns

ImageUrl

GuildScheduledEventCover(ulong, string, ImageFormat)

public static ImageUrl GuildScheduledEventCover(ulong scheduledEventId, string coverImageHash, ImageFormat format)

Parameters

scheduledEventId ulong
coverImageHash string
format ImageFormat

Returns

ImageUrl

GuildSplash(ulong, string, ImageFormat)

public static ImageUrl GuildSplash(ulong guildId, string splashHash, ImageFormat format)

Parameters

guildId ulong
splashHash string
format ImageFormat

Returns

ImageUrl

GuildUserAvatar(ulong, ulong, string, ImageFormat?)

public static ImageUrl GuildUserAvatar(ulong guildId, ulong userId, string avatarHash, ImageFormat? format)

Parameters

guildId ulong
userId ulong
avatarHash string
format ImageFormat?

Returns

ImageUrl

GuildUserBanner(ulong, ulong, string, ImageFormat?)

public static ImageUrl GuildUserBanner(ulong guildId, ulong userId, string bannerHash, ImageFormat? format)

Parameters

guildId ulong
userId ulong
bannerHash string
format ImageFormat?

Returns

ImageUrl

GuildWidget(ulong, GuildWidgetStyle?, string?, ApiVersion?)

public static ImageUrl GuildWidget(ulong guildId, GuildWidgetStyle? style = null, string? hostname = null, ApiVersion? version = null)

Parameters

guildId ulong
style GuildWidgetStyle?
hostname string
version ApiVersion?

Returns

ImageUrl

RoleIcon(ulong, string, ImageFormat)

public static ImageUrl RoleIcon(ulong roleId, string iconHash, ImageFormat format)

Parameters

roleId ulong
iconHash string
format ImageFormat

Returns

ImageUrl

Sticker(ulong, ImageFormat)

public static ImageUrl Sticker(ulong stickerId, ImageFormat format)

Parameters

stickerId ulong
format ImageFormat

Returns

ImageUrl

StickerPackBanner(ulong, ImageFormat)

public static ImageUrl StickerPackBanner(ulong stickerPackBannerAssetId, ImageFormat format)

Parameters

stickerPackBannerAssetId ulong
format ImageFormat

Returns

ImageUrl

StorePageAsset(ulong, ulong, ImageFormat)

public static ImageUrl StorePageAsset(ulong applicationId, ulong assetId, ImageFormat format)

Parameters

applicationId ulong
assetId ulong
format ImageFormat

Returns

ImageUrl

TeamIcon(ulong, string, ImageFormat)

public static ImageUrl TeamIcon(ulong teamId, string iconHash, ImageFormat format)

Parameters

teamId ulong
iconHash string
format ImageFormat

Returns

ImageUrl

ToString()

public override string ToString()

Returns

string

ToString(int)

public virtual string ToString(int size)

Parameters

size int

Returns

string

ToString(string?, IFormatProvider?)

public string ToString(string? format, IFormatProvider? formatProvider)

Parameters

format string
formatProvider IFormatProvider

Returns

string

TryFormat(Span<char>, out int, ReadOnlySpan<char>, IFormatProvider?)

public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = null)

Parameters

destination Span<char>
charsWritten int
format ReadOnlySpan<char>
provider IFormatProvider

Returns

bool

UserAvatar(ulong, string, ImageFormat?)

public static ImageUrl UserAvatar(ulong userId, string avatarHash, ImageFormat? format)

Parameters

userId ulong
avatarHash string
format ImageFormat?

Returns

ImageUrl

UserBanner(ulong, string, ImageFormat?)

public static ImageUrl UserBanner(ulong userId, string bannerHash, ImageFormat? format)

Parameters

userId ulong
bannerHash string
format ImageFormat?

Returns

ImageUrl