Skip to content

Add/improve xml comments for commands and interactions#124

Merged
KubaZ2 merged 11 commits into
alphafrom
feature/xml-commants-for-commands-and-interactions
Jun 8, 2025
Merged

Add/improve xml comments for commands and interactions#124
KubaZ2 merged 11 commits into
alphafrom
feature/xml-commants-for-commands-and-interactions

Conversation

@KubaZ2

@KubaZ2 KubaZ2 commented Jun 8, 2025

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented Jun 8, 2025

Copy link
Copy Markdown

The documentation preview is available at https://preview.netcord.dev/124.

@KubaZ2 KubaZ2 marked this pull request as ready for review June 8, 2025 21:30
@KubaZ2 KubaZ2 requested a review from Copilot June 8, 2025 21:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the XML documentation for commands and interactions and updates attribute usages to improve clarity.

  • Updates XML comments for various command attributes in both REST and Service layers.
  • Revises attribute constructor patterns (e.g., for SlashCommandChoiceAttribute) to adopt new syntax.
  • Improves value handling in EnumTypeReaders for attribute properties.

Reviewed Changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Tests/NetCord.Test/ApplicationCommands/Commands.cs Updated SlashCommandChoice attribute usage to include the Name parameter.
NetCord/Rest/UserCommandProperties.cs Added descriptive XML comments for user command properties.
NetCord/Rest/SlashCommandProperties.cs Improved XML comments and updated parameter documentation.
NetCord/Rest/MessageCommandProperties.cs Enhanced XML summary and parameter documentation.
NetCord/Rest/EntryPointCommandProperties.cs Added XML comments to explain the Entry Point command's usage.
NetCord.Services/EnumTypeReaders/SlashCommandEnumTypeReader.cs Adjusted attribute value handling to safely handle null values.
NetCord.Services/ComponentInteractions/*.cs Added XML documentation for component interaction attributes and parameters.
NetCord.Services/Commands/*.cs Provided XML comments and improved consistency in command attribute classes.
NetCord.Services/ApplicationCommands/*.cs Introduced or enhanced XML documentation and summary tags for application commands.
Documentation/guides/* Updated documentation examples to align with the new attribute syntax.

Comment thread NetCord.Services/EnumTypeReaders/SlashCommandEnumTypeReader.cs
@KubaZ2 KubaZ2 merged commit cf13767 into alpha Jun 8, 2025
1 check passed
@KubaZ2 KubaZ2 deleted the feature/xml-commants-for-commands-and-interactions branch June 8, 2025 22:15
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.

2 participants