refactor!: rename boolean variables to follow Dart naming guidelines #319
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.
Description
This PR refactors boolean variable names across the codebase to align with Dart Design Guidelines.
The refactoring applies different conventions based on context:
isEnabled,hasElements,canClose)disabled: true,ephemeral: false)valuewhen context is clearKey Changes
Boolean Naming Consistency
animated→isAnimated,inline→isInline,disabled→isDisabled,nsfw→isNsfw,authorIsBot→isAuthorBot,managed→isManaged,available→isAvailable). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26]Command and Option Parameter Updates
isRequiredparameter instead ofrequired, and updated all usages accordingly. [1] [2] [3] [4]Component and Embed Field Updates
Button,SelectMenu,Separator,MessageEmbedField) to use the new boolean property names, and updated their serialization logic to match. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]Activity, Channel, Emoji, and Message Model Updates
These changes improve code readability and maintainability by making boolean property intent explicit and consistent across the codebase.
Benefits
disabled: truevsisDisabled: true)valuewhen the method name provides full contextBreaking Changes
This is a breaking change as it renames public fields and named parameters in constructors and methods. Developers will need to update their code to use the new parameter names.
Related Issue
Closes #318
Type of Change
Checklist