| @@ -13,7 +13,7 @@ namespace Discord | |||||
| /// <returns> | /// <returns> | ||||
| /// An <see cref="int"/> representing the API version that Discord.Net uses to communicate with Discord. | /// An <see cref="int"/> representing the API version that Discord.Net uses to communicate with Discord. | ||||
| /// <para>A list of available API version can be seen on the official | /// <para>A list of available API version can be seen on the official | ||||
| /// <see href="https://discordapp.com/developers/docs/reference#api-versioning">Discord API documentation</see> | |||||
| /// <see href="https://discord.com/developers/docs/reference#api-versioning">Discord API documentation</see> | |||||
| /// .</para> | /// .</para> | ||||
| /// </returns> | /// </returns> | ||||
| public const int APIVersion = 6; | public const int APIVersion = 6; | ||||
| @@ -50,7 +50,7 @@ namespace Discord | |||||
| /// <returns> | /// <returns> | ||||
| /// The Discord API URL using <see cref="APIVersion"/>. | /// The Discord API URL using <see cref="APIVersion"/>. | ||||
| /// </returns> | /// </returns> | ||||
| public static readonly string APIUrl = $"https://discordapp.com/api/v{APIVersion}/"; | |||||
| public static readonly string APIUrl = $"https://discord.com/api/v{APIVersion}/"; | |||||
| /// <summary> | /// <summary> | ||||
| /// Returns the base Discord CDN URL. | /// Returns the base Discord CDN URL. | ||||
| /// </summary> | /// </summary> | ||||
| @@ -17,7 +17,7 @@ namespace Discord | |||||
| public static string GetJumpUrl(this IMessage msg) | public static string GetJumpUrl(this IMessage msg) | ||||
| { | { | ||||
| var channel = msg.Channel; | var channel = msg.Channel; | ||||
| return $"https://discordapp.com/channels/{(channel is IDMChannel ? "@me" : $"{(channel as ITextChannel).GuildId}")}/{channel.Id}/{msg.Id}"; | |||||
| return $"https://discord.com/channels/{(channel is IDMChannel ? "@me" : $"{(channel as ITextChannel).GuildId}")}/{channel.Id}/{msg.Id}"; | |||||
| } | } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -13,7 +13,7 @@ namespace Discord.Net | |||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// An | /// An | ||||
| /// <see href="https://discordapp.com/developers/docs/topics/opcodes-and-status-codes#http">HTTP status code</see> | |||||
| /// <see href="https://discord.com/developers/docs/topics/opcodes-and-status-codes#http">HTTP status code</see> | |||||
| /// from Discord. | /// from Discord. | ||||
| /// </returns> | /// </returns> | ||||
| public HttpStatusCode HttpCode { get; } | public HttpStatusCode HttpCode { get; } | ||||
| @@ -22,7 +22,7 @@ namespace Discord.Net | |||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// A | /// A | ||||
| /// <see href="https://discordapp.com/developers/docs/topics/opcodes-and-status-codes#json">JSON error code</see> | |||||
| /// <see href="https://discord.com/developers/docs/topics/opcodes-and-status-codes#json">JSON error code</see> | |||||
| /// from Discord, or <c>null</c> if none. | /// from Discord, or <c>null</c> if none. | ||||
| /// </returns> | /// </returns> | ||||
| public int? DiscordCode { get; } | public int? DiscordCode { get; } | ||||
| @@ -11,7 +11,7 @@ namespace Discord.Net | |||||
| /// </summary> | /// </summary> | ||||
| /// <returns> | /// <returns> | ||||
| /// A | /// A | ||||
| /// <see href="https://discordapp.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes">close code</see> | |||||
| /// <see href="https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes">close code</see> | |||||
| /// from Discord. | /// from Discord. | ||||
| /// </returns> | /// </returns> | ||||
| public int CloseCode { get; } | public int CloseCode { get; } | ||||
| @@ -87,7 +87,7 @@ namespace Discord.WebSocket | |||||
| /// </para> | /// </para> | ||||
| /// <para> | /// <para> | ||||
| /// For more information, please see | /// For more information, please see | ||||
| /// <see href="https://discordapp.com/developers/docs/topics/gateway#request-guild-members">Request Guild Members</see> | |||||
| /// <see href="https://discord.com/developers/docs/topics/gateway#request-guild-members">Request Guild Members</see> | |||||
| /// on the official Discord API documentation. | /// on the official Discord API documentation. | ||||
| /// </para> | /// </para> | ||||
| /// <note> | /// <note> | ||||
| @@ -83,7 +83,7 @@ namespace Discord | |||||
| public void BotTokenDoesNotThrowExceptions(string token) | public void BotTokenDoesNotThrowExceptions(string token) | ||||
| { | { | ||||
| // This example token is pulled from the Discord Docs | // This example token is pulled from the Discord Docs | ||||
| // https://discordapp.com/developers/docs/reference#authentication-example-bot-token-authorization-header | |||||
| // https://discord.com/developers/docs/reference#authentication-example-bot-token-authorization-header | |||||
| // should not throw any exception | // should not throw any exception | ||||
| TokenUtils.ValidateToken(TokenType.Bot, token); | TokenUtils.ValidateToken(TokenType.Bot, token); | ||||
| } | } | ||||