Skip to content

Conversation

valzargaming
Copy link
Member

This pull request makes a minor improvement to the Reaction class in the Discord package by initializing the emoji attribute with an Emoji object instead of a generic stdClass. This change enhances type safety and consistency when handling emoji data.

  • Improved emoji initialization:
    • In the setIdAttribute method of Reaction.php, replaced the initialization of the emoji attribute from a stdClass to an Emoji object for better type safety and clarity.
    • Removed the unused stdClass import from Reaction.php.

@valzargaming valzargaming requested a review from a team October 15, 2025 19:47
@valzargaming valzargaming changed the title Update Reaction.php Reaction class should use Emoji Part rather than stdClass Oct 20, 2025
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.

1 participant