Class ImageUrl
- Namespace
- NetCord
- Assembly
- NetCord.dll
public class ImageUrl : ISpanFormattable, IFormattable
- Inheritance
-
ImageUrl
- Implements
-
- Inherited Members
-
Methods
public static ImageUrl AchievementIcon(ulong applicationId, ulong achievementId, string iconHash, ImageFormat format)
Parameters
applicationId
ulong
achievementId
ulong
iconHash
string
format
ImageFormat
Returns
- ImageUrl
public static ImageUrl ApplicationAsset(ulong applicationId, ulong assetId, ImageFormat format)
Parameters
applicationId
ulong
assetId
ulong
format
ImageFormat
Returns
- ImageUrl
public static ImageUrl ApplicationCover(ulong applicationId, string coverHash, ImageFormat format)
Parameters
applicationId
ulong
coverHash
string
format
ImageFormat
Returns
- ImageUrl
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
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
public static ImageUrl GuildBanner(ulong guildId, string bannerHash, ImageFormat? format)
Parameters
guildId
ulong
bannerHash
string
format
ImageFormat?
Returns
- ImageUrl
public static ImageUrl GuildDiscoverySplash(ulong guildId, string discoverySplashHash, ImageFormat format)
Parameters
guildId
ulong
discoverySplashHash
string
format
ImageFormat
Returns
- ImageUrl
public static ImageUrl GuildIcon(ulong guildId, string iconHash, ImageFormat? format)
Parameters
guildId
ulong
iconHash
string
format
ImageFormat?
Returns
- ImageUrl
public static ImageUrl GuildScheduledEventCover(ulong scheduledEventId, string coverImageHash, ImageFormat format)
Parameters
scheduledEventId
ulong
coverImageHash
string
format
ImageFormat
Returns
- ImageUrl
public static ImageUrl GuildSplash(ulong guildId, string splashHash, ImageFormat format)
Parameters
guildId
ulong
splashHash
string
format
ImageFormat
Returns
- ImageUrl
public static ImageUrl GuildUserAvatar(ulong guildId, ulong userId, string avatarHash, ImageFormat? format)
Parameters
guildId
ulong
userId
ulong
avatarHash
string
format
ImageFormat?
Returns
- ImageUrl
public static ImageUrl GuildUserBanner(ulong guildId, ulong userId, string bannerHash, ImageFormat? format)
Parameters
guildId
ulong
userId
ulong
bannerHash
string
format
ImageFormat?
Returns
- ImageUrl
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
public static ImageUrl RoleIcon(ulong roleId, string iconHash, ImageFormat format)
Parameters
roleId
ulong
iconHash
string
format
ImageFormat
Returns
- ImageUrl
public static ImageUrl Sticker(ulong stickerId, ImageFormat format)
Parameters
stickerId
ulong
format
ImageFormat
Returns
- ImageUrl
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
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
public string ToString(string? format, IFormatProvider? formatProvider)
Parameters
format
string
formatProvider
IFormatProvider
Returns
- string
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
public static ImageUrl UserAvatar(ulong userId, string avatarHash, ImageFormat? format)
Parameters
userId
ulong
avatarHash
string
format
ImageFormat?
Returns
- ImageUrl
public static ImageUrl UserBanner(ulong userId, string bannerHash, ImageFormat? format)
Parameters
userId
ulong
bannerHash
string
format
ImageFormat?
Returns
- ImageUrl