Upgrade from 10.0.0 to 10.1.0
What is new in DisCatSharp?
- Rework of ApplicationCommands
- Support for DiscordGuild.DisableInvitesAsync
- Full support for Forum Channels
- Support for Spotify and Apple Music in DisCatSharp.Lavalink. See Lavalink Advanced Usage for more information.
- Documentation has a bunch of new and reworked articles!
What changed?
Warning
This release contains breaking changes. Please read the changelog carefully. Some bug fixes aren't noted here.
All packages
NuGet packages now support Source Link & Deterministic Builds.
- Updated the NuGet specs to be compatible with NuGet Gallery.
- Changed PackageLicenseUrl to PackageLicenseFile and included the top-level LICENSE.md
- Changed PackageIconUrl to PackageIcon and included DisCatSharp.Logos/logobig.png
Caution
We've fixed various namespaces. Please make sure to update your code accordingly.
DisCatSharp
- Implemented Forum Channels
- Added fields to DiscordChannel:
- PostCreateUserRateLimit
- DefaultReactionEmoji with the type of ForumReactionEmoji
- AvailableTags
- Added fields to DiscordThreadChannel:
- Added entity ForumPostTag
- Added function to create a forum through the guild entity CreateForumChannelAsync
- Added functions to modify a forum channel ModifyForumAsync
- Added forum post tag operations on threads
- Added fields to DiscordChannel:
- Added disable invites for DiscordGuild
- Added new function EnableInvitesAsync
- Added new function DisableInvitesAsync
- The ordered channel methods and fields in DiscordChannel now include Forum Channels
- Added DiscordMember.DisconnectFromVoiceAsync
- Added Avatar Decorations
- Added Theme Colors
- Added support for the
X-Discord-LocaleHeader in the DiscordConfiguration - Added support for sending component-only messages
- Implemented
ResumeGatewayUrl - Added GuildFeatures:
- GuildHomeTest (Experimental)
- InvitesDisabled
- Implemented DiscordWebhookBuilder.WithThreadName to create forum posts via a webhook
- Added ApplicationFlags.ApplicationCommandBadge
- Added a bypassCache option to DiscordChannel.GetMessageAsync
- Added the new field
AppPermissionsto the interaction entity and the context entities. - Added function DiscordGuild.EnableMfaAsync
- Added function DiscordGuild.DisableMfaAsync
- Reworked component result for modal submits *DC1
- Reworked DiscordIntegration to include the new fields
- Added SubscriberCount
- Added Revoked
- Added Application
- Added Scopes
- Removed int ExpireBehavior
- Added ExpireBehavior as new enum IntegrationExpireBehavior
- Reworked DiscordConnection to include the new fields
- Removed int Visibility
- Added Visibility as new enum ConnectionVisibilityType
- Added TwoWayLink
- DiscordClient.ReconnectAsync param startNewSession now defaults to
true - Moved guild related enums from the DisCatSharp to the DisCatSharp.Enums namespace
- Fixed webhooks for threads
- Dropped support for channel banners, it sadly never made its way into discord
DisCatSharp.ApplicationCommands
- Added support for slash commands in shards
- Added Translation Generator & Exporter (see here)
- Added DiscordClient.RemoveGlobalApplicationCommandsAsync
- Implemented support for minimum_length and maximum_length for application command options
- Added MinimumLengthAttribute. Minimum
intif set: 0. Valid for:string - Added MaximumLengthAttribute. Minimum
intif set: 1. Valid for:string
- Added MinimumLengthAttribute. Minimum
- Changed namespaces
- Renamed MinimumAttribute to MinimumValueAttribute. Valid for:
int,long&double - Renamed MaximumAttribute & MaximumValueAttribute. Valid for:
int,long&double - Proper exception log when registering app commands fails
- Reworked translation for application commands
- Reworked application command registration
- Fixed
DmPermissionscheck for Application Commands on registration - Fixed double interaction bug
- Fixed
int>longcast exception - Fixed a bug where the default help command would not work if auto defer was enabled
- Various bug fixes
- Removed
ApplicationCommandsExtension.CleanGuildCommandsAsync() - Removed
ApplicationCommandsExtension.CleanGlobalCommandsAsync()
DisCatSharp.Lavalink
- Added support for apple music & spotify search
Other changes
Please compare the commits on GitHub
Information to other Discord Features
- We won't implement AutoMod for a while, as it takes a lot of time to implement and we don't have the time for it right now.
- DiscordMember Timeout Events are still buggy, we have it on our list of bugs to fix, but it's not a priority right now.
Diff Changes
DC1
DiscordInteractionData:
Pulled up the component results from modal submits for easier access
- IEnumerable<DiscordInteractionDataOption> Options
+ IReadOnlyList<DiscordInteractionDataOption> Options
- IEnumerable<DiscordActionRowComponentResult> Components
+ IReadOnlyList<DiscordComponentResult> Components
DiscordActionRowComponentResult:
- List<DiscordComponentResult> Components
+ IReadOnlyList<DiscordComponentResult> Components