forked from Aiko-IT-Systems/DisCatSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] main from Aiko-IT-Systems:main #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pull
wants to merge
647
commits into
xMaxximum:main
Choose a base branch
from
Aiko-IT-Systems:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7d9566a
to
fc7a419
Compare
4927793
to
e6144c0
Compare
5317302
to
88f6d58
Compare
3359c0b
to
e95f028
Compare
….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.
86865f9
to
26a203d
Compare
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )