Skip to content

Conversation

pull[bot]
Copy link

@pull pull bot commented Jun 12, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

NyuwBot and others added 15 commits September 13, 2025 21:34
….buildtools-16.x

chore(deps): update dependency microsoft.vssdk.buildtools to 16.11.69
…norepo

chore(deps): update dependency xunit.runner.visualstudio to 3.1.4
…onorepo

chore(deps): update sentry-dotnet monorepo to 5.15.0
…ckages

chore(deps): update actions/checkout action to v5
….buildtools-17.x

chore(deps): update dependency microsoft.vssdk.buildtools to v17
Added a section specifying the use of the latest stable C# language version and encouraged the use of modern C# features for clarity, safety, and conciseness. This update guides contributors to prefer modern idioms while maintaining readability and maintainability.
Moved files from 'Button' to 'Buttons' and 'Select' to 'Selects' directories for consistency in naming conventions within the Interaction Components structure. No code changes were made.
Replaces manual component tree traversal in CheckComponentIds with a recursive approach using a new GetChildren method on DiscordComponent. Adds GetChildren implementations to relevant component classes, simplifying and unifying child component access.
Introduces methods to enable or disable components by ID or custom ID, as well as to enable/disable all components in DiscordMessageBuilder and DiscordWebhookBuilder. Also adds a method to inject components and attachments from an existing message. Refactors internal replace methods for consistency.
Updated the content setter to only throw when a non-null value is set for UI Kit or Voice messages. Refactored the Clear method to reset IsVoiceMessage, IsComponentsV2, and ContentInternal directly, ensuring proper state reset.
Moved and expanded DiscordBaseButtonComponent to a new location, making it a functional base class for button components. Updated all button and select components to use consistent method signatures and documentation, and replaced type checks in message and webhook builders to use the new base class. Renamed and reorganized component files for improved structure and clarity.
@Lulalaby Lulalaby force-pushed the main branch 4 times, most recently from 86865f9 to 26a203d Compare September 15, 2025 22:33
Eliminated the 'Disabled' property from DiscordButtonComponent, DiscordLinkButtonComponent, and DiscordPremiumButtonComponent. Updated Enable, Disable, SetState, and WithId methods to use 'new' keyword, likely to resolve hiding or override issues. This refactor reduces redundancy and clarifies property management in button components.
Introduces v2 component support to the Page class, allowing up to 40 components per message and enforcing mutual exclusivity between content/embed and components. Updates pagination request cleanup logic to handle v2 components appropriately. Also adds validation to Recalculate to ensure it only operates on embed pages.
Introduces the SharedClientTheme class and BaseTheme enum to represent and deserialize shared client theme data in Discord messages. Updates DiscordMessage to include a SharedClientTheme property for accessing theme information.
Introduces a Disabled property and related methods (Enable, Disable, SetState) to DiscordFileUploadComponent, allowing the component to be enabled or disabled as needed. Also updates XML documentation for clarity.
Renamed ComponentsInternal to ModalComponentsInternal and updated ModalComponents to use the new internal property. Removed the deprecated Components property and its related logic for clarity and maintainability. Also removed an unused using directive in DiscordFileUploadComponent.cs.
Introduces a new 'Values' property to DiscordFileUploadComponent to store submitted attachment IDs. This property is only available in DiscordInteractionData and is serialized as 'values' in JSON.
All GitHub Actions workflows now use .NET SDK version 10.0.100-rc.1.25451.107 instead of the previous preview version. This ensures consistency and compatibility with the latest .NET 10 release candidate across build, test, documentation, and release pipelines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants