/// <summary> /// Creates a CDN URL builder for custom emojis. /// </summary> /// <param name="emojiId">The ID of the custom emoji.</param> public static DiscordCdnUrl ForCustomEmoji(Snowflake emojiId) { return(new DiscordCdnUrl(DiscordCdnUrlType.CustomEmoji, emojiId, emojiId.ToString(), $"{CdnBaseUrl}/emojis/{emojiId}")); }
/// <summary> /// Creates a new value type DiscordApiData object. /// </summary> public DiscordApiData(Snowflake value) { this.value = value.ToString(); // Snowflakes are stored as strings in transit. Type = DiscordApiDataType.Value; }
/// <summary> /// Creates a CDN URL builder for a sticker. /// </summary> /// <param name="stickerId">The ID of the sticker.</param> public static DiscordCdnUrl ForSticker(Snowflake stickerId) { return(new DiscordCdnUrl(DiscordCdnUrlType.Sticker, stickerId, stickerId.ToString(), $"{CdnBaseUrl}/stickers/{stickerId}")); }