Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Gregory-Widmer
Copy link
Contributor

Description: Handles long string conversion by overriding for some objects how they are converted to a String. I chose to create an utility function that use the instanceof operator to "override" manually how objects are converted to String.

Then, if the object provided is a Long, we use the Long.printUnsignedLong(long) method to convert it to a String.

Justification: Fixes #1119

@quanticc quanticc requested a review from darichey April 8, 2023 04:12
@quanticc quanticc added the enhancement Improvement over an existing feature label Apr 8, 2023
@quanticc quanticc added this to the 3.3.0 milestone Apr 8, 2023
Copy link
Member

@Azn9 Azn9 left a comment

Choose a reason for hiding this comment

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

Just revert this format change

@Azn9 Azn9 changed the base branch from master to 3.2.x April 2, 2024 01:21
@Azn9 Azn9 modified the milestones: 3.3.0, 3.2.7 Apr 2, 2024
@Azn9 Azn9 merged commit c617a87 into Discord4J:3.2.x Apr 2, 2024
Azn9 added a commit to Azn9/Discord4J that referenced this pull request Apr 2, 2024
* fix(long): fix unsigned long printing in requests (Discord4J#1119)

* fix: revert format change

---------

Co-authored-by: Axel Joly <[email protected]>
Azn9 added a commit to Azn9/Discord4J that referenced this pull request Apr 2, 2024
@Azn9 Azn9 modified the milestones: 3.2.7, 3.3.0 Jun 11, 2024
Azn9 added a commit to Azn9/Discord4J that referenced this pull request Jun 17, 2024
* fix(long): fix unsigned long printing in requests (Discord4J#1119)

* fix: revert format change

---------

Co-authored-by: Axel Joly <[email protected]>
@Gregory-Widmer Gregory-Widmer deleted the fix/unsigned_long_handling branch August 14, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement over an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unsigned Long handling in GatewayDiscordClient#getMessageById

3 participants