diff --git a/DisCatSharp.Docs/changelogs/v10/10_2_0.md b/DisCatSharp.Docs/changelogs/v10/10_2_0.md index 8a28e31cc..cf3f3bb22 100644 --- a/DisCatSharp.Docs/changelogs/v10/10_2_0.md +++ b/DisCatSharp.Docs/changelogs/v10/10_2_0.md @@ -1,203 +1,202 @@ --- uid: changelogs_v10_10_2_0 title: Version 10.2.0 --- # Upgrade from **10.1.0** to **10.2.0** ## What is new in DisCatSharp? This release contains changes from Hacktoberfest tasks. ## What changed? - We worked hard during hacktober to make the lib better. Here's what we did: ____ ### 10.2.0-hacktober-001 #### Changelog ```diff + Added stickers to guild preview (Task 3) ``` #### Pull Requests - https://github.com/Aiko-IT-Systems/DisCatSharp/pull/206 #### Contributors - [Mira](https://github.com/TheXorog) ____ ### 10.2.0-hacktober-002 ```diff * Reworked activity invite creation * Fixed forum channel creation, it now actually creates a forum (type 15) channel + Added article for available activities *1 ``` #### Pull Requests - https://github.com/Aiko-IT-Systems/DisCatSharp/pull/208 - https://github.com/Aiko-IT-Systems/DisCatSharp/pull/209 #### Contributors - [Sh1be](https://github.com/xMaxximum) - [Lulalaby](https://github.com/Lulalaby) #### New Articles - [Voice Activities](xref:misc_voice_activities) ____ ### 10.2.0-hacktober-003 ```diff * Reworked various thinks like lists, arrays, namespaces ``` #### Pull Requests - https://github.com/Aiko-IT-Systems/DisCatSharp/pull/210 #### Contributors - [Lulalaby](https://github.com/Lulalaby) ____ ### 10.2.0-hacktober-004 ```diff + Added DiscordClient.GetGuildWidgetAsync + Added DiscordClient.TryGetGuildWidgetAsync * Fixed a bug in guild widgets ``` #### Pull Requests - https://github.com/Aiko-IT-Systems/DisCatSharp/pull/211 - https://github.com/Aiko-IT-Systems/DisCatSharp/pull/212 #### Contributors - [Mira](https://github.com/TheXorog) ____ ### 10.2.0-hacktober-005 ```diff * Fixed the presence update event - Removed PresenceUpdateEventArgs.UserBefore - Removed PresenceUpdateEventArgs.UserAfter ``` #### Contributors - [Lulalaby](https://github.com/Lulalaby) ____ ### 10.2.0-hacktober-006 ```diff * Fixed ModifyCommunitySettingsAsync (channels are now required to set when modifying the community state) ``` #### Pull Requests - https://github.com/Aiko-IT-Systems/DisCatSharp/pull/213 #### Contributors - [Sh1be](https://github.com/xMaxximum) ____ ### 10.2.0-hacktober-007 ```diff * Reworked guild features * Changed the HasXy methods to flags (Enums) + Created a method for the enum named HasFeature(GuildFeatureFlag) + Created a method for the guild features to dynamically generate a string list of features ``` #### Pull Requests - https://github.com/Aiko-IT-Systems/DisCatSharp/pull/214 #### Contributors - [Sh1be](https://github.com/xMaxximum) ____ ### 10.2.0-hacktober-008 > [!WARNING] > This version contains breaking changes #### Note This version adds support for user, role, channel & mentionable selects in both the main lib as well in interactivity. ```diff - DiscordSelectComponent was removed and replaced by + DiscordStringSelectComponent + DiscordStringSelectComponentOption + Select component types have the base class DiscordBaseSelect from now on * Interactivity for selects where changed in the InteractivityExtension, as well in the MessageExtension to have an additional required parameter before the timeout override called selectType. You need to specify for which select type you're waiting for ``` #### Documentation ##### DisCatSharp Package Entities: - [DiscordBaseSelectComponent](xref:DisCatSharp.Entities.DiscordBaseSelectComponent) > and the sub classes [DiscordStringSelectComponentOption](xref:DisCatSharp.Entities.DiscordStringSelectComponentOption) (Replaces `DiscordSelectComponentOption`) Enums - [ComponentType](xref:DisCatSharp.Enums.ComponentType) ##### DisCatSharp.Interactivity InteractivityExtension: - [WaitForSelectAsync](xref:DisCatSharp.Interactivity.InteractivityExtension#DisCatSharp_Interactivity_InteractivityExtension_WaitForSelectAsync_DisCatSharp_Entities_DiscordMessage_DisCatSharp_Entities_DiscordUser_System_String_DisCatSharp_Enums_ComponentType_CancellationToken_) and additional functions Message Extension: - [WaitForSelectAsync](xref:DisCatSharp.Interactivity.Extensions.MessageExtensions#DisCatSharp_Interactivity_Extensions_MessageExtensions_WaitForSelectAsync_DisCatSharp_Entities_DiscordMessage_DisCatSharp_Entities_DiscordUser_System_String_DisCatSharp_Enums_ComponentType_CancellationToken_) and additional functions #### Example ```cs [SlashCommand(name: "test_select", description: "Testing select")] public static async Task TestSelectAsync(InteractionContext ctx) { await ctx.CreateResponseAsync(InteractionResponseType.DeferredChannelMessageWithSource, new DiscordInteractionResponseBuilder().AsEphemeral()); DiscordWebhookBuilder builder = new(); builder.WithContent(content: "Testing user select"); builder.AddComponents(new DiscordUserSelectComponent(label: "User to select", custom_id: "select_test_001", min_options: 1, max_options: 2, disabled: false)); var msg = await ctx.EditResponseAsync(builder); var inter = await ctx.Client.GetInteractivity().WaitForSelectAsync(message: msg, id: "select_test_001", selectType: ComponentType.UserSelect, timespan: TimeSpan.FromSeconds(30)); if (!inter.TimedOut) { await inter.Result.Interaction.CreateResponseAsync(InteractionResponseType.DeferredMessageUpdate); await ctx.EditResponseAsync(new DiscordWebhookBuilder().WithContent(content: $"Selected {string.Join(" & ", inter.Result.Values)}")); await ctx.Channel.SendMessageAsync(content: $"Ping pong {string.Join(" & ", inter.Result.Interaction.Data.Resolved.Users.Values.Select(x => x.Mention))}"); } } ``` #### Pull Requests - https://github.com/Aiko-IT-Systems/DisCatSharp/pull/218 #### Contributors - [Lulalaby](https://github.com/Lulalaby) - [Mira](https://github.com/TheXorog) ____ ### 10.2.0-hacktober-010 ```diff + Added method to look up additional infos about applications (rpc endpoint) ``` #### Documentation - [DiscordRpcApplication](xref:DisCatSharp.Entities.DiscordRpcApplication) - [DiscordClient.GetRpcApplicationAsync](xref:DisCatSharp.DiscordClient#DisCatSharp_DiscordClient_GetRpcApplicationAsync_System_UInt64_) - [DiscordUser.GetRpcInfoAsync](xref:DisCatSharp.Entities.DiscordUser#DisCatSharp_Entities_DiscordUser_GetRpcInfoAsync) #### Contributors - [Lulalaby](https://github.com/Lulalaby) diff --git a/DisCatSharp.Docs/changelogs/v10/10_3_0.md b/DisCatSharp.Docs/changelogs/v10/10_3_0.md index 392248d51..c3ca56368 100644 --- a/DisCatSharp.Docs/changelogs/v10/10_3_0.md +++ b/DisCatSharp.Docs/changelogs/v10/10_3_0.md @@ -1,6 +1,45 @@ --- uid: changelogs_v10_10_3_0 title: Version 10.3.0 --- # Upgrade from **10.2.0** to **10.3.0** + +## What is new in DisCatSharp? +Full support for [Auto Moderation](https://support.discord.com/hc/en-us/articles/4421269296535-AutoMod-FAQ) + +## What changed? +- We fixed a bug with [DiscordChannelSelectComponent](xref:DisCatSharp.Entities.DiscordChannelSelectComponent) where the `channelTypes` property threw a null exception because incorrect array conversion. +- Added support for new [UserFlags](xref:DisCatSharp.Enums.UserFlags) and [ApplicationFlags](xref:DisCatSharp.Enums.ApplicationFlags). +- Application Commands support now the [`nsfw`](https://support.discord.com/hc/en-us/articles/10123937946007) parameter. + +### Flags + +#### Added user flags +- `ActiveDeveloper` +- `HighGlobalRateLimit` +- `Deleted` +- `DisabledSuspiciousActivity` +- `SelfDeleted` + +#### Renamed user flags +- `PartnerOrVerificationApplication` was renamed to `InternalApplication` + +#### Added application flags +- `Active` + +### Auto Moderation + +- The events for automoderation rules and executions are fully implemented. +- Support for creating, updating and deleting rules. +- Support for fetching rules. +- Support for automod regex rules. +- Intents for automod. + +#### Pull Requests +- https://github.com/Aiko-IT-Systems/DisCatSharp/pull/224 + +#### Contributors +- [Sh1be](https://github.com/xMaxximum) +- [Lulalaby](https://github.com/Lulalaby) +- [Mira](https://github.com/TheXorog) diff --git a/Version.targets b/Version.targets index f2af92ff3..3d32bcc95 100644 --- a/Version.targets +++ b/Version.targets @@ -1,21 +1,21 @@ - 10.3.0 + 10.3.1 $(VersionPrefix)-$(VersionSuffix)-$(BuildNumber) $(VersionPrefix).$(BuildNumber) $(VersionPrefix).$(BuildNumber) $(VersionPrefix)-$(VersionSuffix) $(VersionPrefix).0 $(VersionPrefix).0 $(VersionPrefix) $(VersionPrefix).0 $(VersionPrefix).0