@@ -44,7 +44,7 @@ namespace Discord | |||||
public const string ClientAPIUrl = "https://discordapp.com/api/"; | public const string ClientAPIUrl = "https://discordapp.com/api/"; | ||||
public const string StatusAPIUrl = "https://status.discordapp.com/api/v2/"; | public const string StatusAPIUrl = "https://status.discordapp.com/api/v2/"; | ||||
public const string CDNUrl = "https://cdn.discordapp.com"; | |||||
public const string CDNUrl = "https://cdn.discordapp.com/"; | |||||
public const string InviteUrl = "https://discord.gg/"; | public const string InviteUrl = "https://discord.gg/"; | ||||
//Global | //Global | ||||
@@ -15,7 +15,7 @@ namespace Discord | |||||
public sealed class Server | public sealed class Server | ||||
{ | { | ||||
internal static string GetIconUrl(ulong serverId, string iconId) | internal static string GetIconUrl(ulong serverId, string iconId) | ||||
=> iconId != null ? $"{DiscordConfig.CDNUrl}/icons/{serverId}/{iconId}.jpg" : null; | |||||
=> iconId != null ? $"{DiscordConfig.CDNUrl}icons/{serverId}/{iconId}.jpg" : null; | |||||
private struct Member | private struct Member | ||||
{ | { | ||||
@@ -12,7 +12,7 @@ namespace Discord | |||||
public class User | public class User | ||||
{ | { | ||||
internal static string GetAvatarUrl(ulong userId, string avatarId) | internal static string GetAvatarUrl(ulong userId, string avatarId) | ||||
=> avatarId != null ? $"{DiscordConfig.CDNUrl}/avatars/{userId}/{avatarId}.jpg" : null; | |||||
=> avatarId != null ? $"{DiscordConfig.CDNUrl}avatars/{userId}/{avatarId}.jpg" : null; | |||||
[Flags] | [Flags] | ||||
private enum VoiceState : byte | private enum VoiceState : byte | ||||