Browse Source

Null check wasn't picking up the slack when InformationVersion is not found.

tags/1.0-rc
matt 9 years ago
parent
commit
9b34e4f2b3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/DiscordConfig.cs

+ 1
- 1
src/Discord.Net/DiscordConfig.cs View File

@@ -5,7 +5,7 @@ namespace Discord
public class DiscordConfig
{
public const int APIVersion = 6;
public static string Version { get; } = typeof(DiscordRestConfig).GetTypeInfo().Assembly?.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion ?? "Unknown";
public static string Version { get; } = typeof(DiscordRestConfig).GetTypeInfo().Assembly?.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? "Unknown";

public static readonly string ClientAPIUrl = $"https://discordapp.com/api/v{APIVersion}/";
public const string CDNUrl = "https://cdn.discordapp.com/";


Loading…
Cancel
Save