@@ -1,5 +1,96 @@ | |||||
# Changelog | # Changelog | ||||
## [2.3.0] - 2021-01-28 | |||||
### Added | |||||
- #1491 Add INVITE_CREATE and INVITE_DELETE events (1ab670b) | |||||
- #1520 Support reading multiple activities (421a0c1) | |||||
- #1521 Allow for inherited commands in modules (a51cdf6) | |||||
- #1526 Add Direction.Around to GetMessagesAsync (f2130f8) | |||||
- #1537 Implement gateway ratelimit (ec673e1) | |||||
- #1544 Add MESSAGE_REACTION_REMOVE_EMOJI and RemoveAllReactionsForEmoteAsync (a89f076) | |||||
- #1549 Add GetUsersAsync to SocketGuild (30b5a83) | |||||
- #1566 Support Gateway Intents (d5d10d3) | |||||
- #1573 Add missing properties to Guild and deprecate GuildEmbed (ec212b1) | |||||
- #1581 Add includeRoleIds to PruneUsersAsync (a80e5ff) | |||||
- #1588 Add GetStreams to AudioClient (1e012ac) | |||||
- #1596 Add missing channel properties (2d80037) | |||||
- #1604 Add missing application properties (including Teams) (10fcde0) | |||||
- #1619 Add "View Guild Insights" to GuildPermission (2592264) | |||||
- #1637 Added CultureInvariant RegexOption to WebhookUrlRegex (e3925a7) | |||||
- #1659 Add inline replies (e3850e1) | |||||
- #1688 Send presence on Identify payload (25d5d36) | |||||
- #1721 Add role tags (6a62c47) | |||||
- #1722 Add user public flags (c683b29) | |||||
- #1724 Add MessageFlags and AllowedMentions to message modify (225550d) | |||||
- #1731 Add GuildUser IsPending property (8b25c9b) | |||||
- #1690 Add max bitrate value to SocketGuild (aacfea0) | |||||
### Fixed | |||||
- #1244 Missing AddReactions permission for DM channels. (e40ca4a) | |||||
- #1469 unsupported property causes an exception (468f826) | |||||
- #1525 AllowedMentions and AllowedMentionTypes (3325031) | |||||
- #1531 Add AllowedMentions to SendFileAsync (ab32607) | |||||
- #1532 GuildEmbed.ChannelId as nullable per API documentation (971d519) | |||||
- #1546 Different ratelimits for the same route (implement discord buckets) (2f6c017) | |||||
- #1548 Incomplete Ready, DownloadUsersAsync, and optimize AlwaysDownloadUsers (dc8c959) | |||||
- #1555 InvalidOperationException at MESSAGE_CREATE (bd4672a) | |||||
- #1557 Sending 2 requests instead of 1 to create a Guild role. (5430cc8) | |||||
- #1571 Not using the new domain name. (df8a0f7) | |||||
- #1578 Trim token before passing it to the authorization header (42ba372) | |||||
- #1580 Stop TaskCanceledException from bubbling up (b8fa464) | |||||
- #1599 Invite audit log without inviter (b95b95b) | |||||
- #1602 Add AllowedMentions to webhooks (bd4516b) | |||||
- #1603 Cancel reconnection when 4014 (f396cd9) | |||||
- #1608 Voice overwrites and CategoryId remarks (43c8fc0) | |||||
- #1614 Check error 404 and return null for GetBanAsync (ae9fff6) | |||||
- #1621 Parse mentions from message payload (366ca9a) | |||||
- #1622 Do not update overwrite cache locally (3860da0) | |||||
- #1623 Invoke UserUpdated from GuildMemberUpdated if needed (3085e88) | |||||
- #1624 Handle null PreferredLocale in rare cases (c1d04b4) | |||||
- #1639 Invite and InviteMetadata properties (dd2e524) | |||||
- #1642 Add missing permissions (4b389f3) | |||||
- #1647 handicap member downloading for verified bots (fa5ef5e) | |||||
- #1652 Update README.MD to reflect new discord domain (03b831e) | |||||
- #1667 Audio stream dispose (a2af985) | |||||
- #1671 Crosspost throwing InvalidOperationException (9134443) | |||||
- #1672 Team is nullable, not optional (be60d81) | |||||
- #1681 Emoji url encode (04389a4) | |||||
- #1683 SocketGuild.HasAllMembers is false if a user left a guild (47f571e) | |||||
- #1686 Revert PremiumSubscriptionCount type (97e71cd) | |||||
- #1695 Possible NullReferenceException when receiving InvalidSession (5213916) | |||||
- #1702 Rollback Activities to Game (9d7cb39) | |||||
- #1727 Move and fix internal AllowedMentions object (4a7f8fe) | |||||
- limit request members batch size (084db25) | |||||
- UserMentions throwing NullRef (5ed01a3) | |||||
- Wrong author for SocketUserMessage.ReferencedMessage (1e9b252) | |||||
- Discord sends null when there's no team (05a1f0a) | |||||
- IMessage.Embeds docs remarks (a4d32d3) | |||||
- Missing MessageReference when sending files (2095701) | |||||
### Misc | |||||
- #1545 MutualGuilds optimization (323a677) | |||||
- #1551 Update webhook regex to support discord.com (7585789) | |||||
- #1556 Add SearchUsersAsync (57880de) | |||||
- #1561 Minor refactor to switch expression (42826df) | |||||
- #1576 Updating comments for privileged intents (c42bfa6) | |||||
- #1678 Change ratelimit messages (47ed806) | |||||
- #1714 Update summary of SocketVoiceChannel.Users (e385c40) | |||||
- #1720 VoiceRegions and related changes (5934c79) | |||||
- Add updated libraries for LastModified (d761846) | |||||
- Add alternative documentation link (accd351) | |||||
- Temporarily disable StyleCops until all the fixes are impl'd (36de7b2) | |||||
- Remove redundant CreateGuildRoleParams (3df0539) | |||||
- Add minor tweaks to DiscordSocketConfig docs strings (2cd1880) | |||||
- Fix MaxWaitBetweenGuildAvailablesBeforeReady docs string (e31cdc7) | |||||
- Missing summary tag for GatewayIntents (3a10018) | |||||
- Add new method of role ID copy (857ef77) | |||||
- Resolve inheritdocs for IAttachment (9ea3291) | |||||
- Mark null as a specific langword in summary (13a41f8) | |||||
- Cleanup GatewayReconnectException docs (833ee42) | |||||
- Update Docfx.Plugins.LastModified to v1.2.4 (28a6f97) | |||||
- Update framework version for tests to Core 3.1 to comply with LTS (4988a07) | |||||
- Move bulk deletes remarks from <summary> to <remarks> (62539f0) | |||||
## [2.2.0] - 2020-04-16 | ## [2.2.0] - 2020-04-16 | ||||
### Added | ### Added | ||||
- #1247 Implement Client Status Support (9da11b4) | - #1247 Implement Client Status Support (9da11b4) | ||||
@@ -1,6 +1,6 @@ | |||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<VersionPrefix>2.3.0</VersionPrefix> | |||||
<VersionPrefix>2.3.1</VersionPrefix> | |||||
<VersionSuffix>dev</VersionSuffix> | <VersionSuffix>dev</VersionSuffix> | ||||
<LangVersion>latest</LangVersion> | <LangVersion>latest</LangVersion> | ||||
<Authors>Discord.Net Contributors</Authors> | <Authors>Discord.Net Contributors</Authors> | ||||
@@ -49,6 +49,8 @@ namespace Discord.API.Rest | |||||
payload["allowed_mentions"] = AllowedMentions.Value; | payload["allowed_mentions"] = AllowedMentions.Value; | ||||
if (IsSpoiler) | if (IsSpoiler) | ||||
payload["hasSpoiler"] = IsSpoiler.ToString(); | payload["hasSpoiler"] = IsSpoiler.ToString(); | ||||
if (MessageReference.IsSpecified) | |||||
payload["message_reference"] = MessageReference.Value; | |||||
var json = new StringBuilder(); | var json = new StringBuilder(); | ||||
using (var text = new StringWriter(json)) | using (var text = new StringWriter(json)) | ||||
@@ -2,7 +2,7 @@ | |||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||||
<metadata> | <metadata> | ||||
<id>Discord.Net</id> | <id>Discord.Net</id> | ||||
<version>2.3.0-dev$suffix$</version> | |||||
<version>2.3.1-dev$suffix$</version> | |||||
<title>Discord.Net</title> | <title>Discord.Net</title> | ||||
<authors>Discord.Net Contributors</authors> | <authors>Discord.Net Contributors</authors> | ||||
<owners>foxbot</owners> | <owners>foxbot</owners> | ||||
@@ -14,33 +14,33 @@ | |||||
<iconUrl>https://github.com/RogueException/Discord.Net/raw/dev/docs/marketing/logo/PackageLogo.png</iconUrl> | <iconUrl>https://github.com/RogueException/Discord.Net/raw/dev/docs/marketing/logo/PackageLogo.png</iconUrl> | ||||
<dependencies> | <dependencies> | ||||
<group targetFramework="net461"> | <group targetFramework="net461"> | ||||
<dependency id="Discord.Net.Core" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Rest" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.WebSocket" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Commands" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Webhook" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Core" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Rest" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.WebSocket" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Commands" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Webhook" version="2.3.1-dev$suffix$" /> | |||||
</group> | </group> | ||||
<group targetFramework="netstandard2.0"> | <group targetFramework="netstandard2.0"> | ||||
<dependency id="Discord.Net.Core" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Rest" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.WebSocket" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Commands" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Webhook" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Core" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Rest" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.WebSocket" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Commands" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Webhook" version="2.3.1-dev$suffix$" /> | |||||
</group> | </group> | ||||
<group targetFramework="netstandard2.1"> | <group targetFramework="netstandard2.1"> | ||||
<dependency id="Discord.Net.Core" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Rest" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.WebSocket" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Commands" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Webhook" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Core" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Rest" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.WebSocket" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Commands" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Webhook" version="2.3.1-dev$suffix$" /> | |||||
</group> | </group> | ||||
<!-- Added .NET 5.0. --> | <!-- Added .NET 5.0. --> | ||||
<group targetFramework="net5.0"> | <group targetFramework="net5.0"> | ||||
<dependency id="Discord.Net.Core" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Rest" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.WebSocket" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Commands" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Webhook" version="2.3.0-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Core" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Rest" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.WebSocket" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Commands" version="2.3.1-dev$suffix$" /> | |||||
<dependency id="Discord.Net.Webhook" version="2.3.1-dev$suffix$" /> | |||||
</group> | </group> | ||||
</dependencies> | </dependencies> | ||||
</metadata> | </metadata> | ||||