-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Unsigned Long handling in GatewayDiscordClient#getMessageById #1119
Comments
@Doc94 How is my snowflake invalid? According to the Discord docs "Snowflake IDs are up to 64 bits in size" which is a max value of 18446744073709551616. My value is 10781908199467992071. (which is within the 2^64 limit) |
yeah but the response of discord say the max value is 9223372036854775807, that with the REST in postman then maybe the issue is the docs in discord... my message was directly was discord say, then D4J cannot change this. |
we shouldn't be making a request with this ID regardless of how discord will respond. We're probably accidentally using Snowflake#asLong instead of asString somewhere. |
yeah but this still not change the thing about the large snow not? im sure is a issue in discord docs |
I think our Store or at least Rest classes would need to use strings, or apply a conversion at the DiscordWebRequest/RouteUtils level |
Hello, I proposed a fix in #1129. When trying to ue the provided Snowflakes, we now have the correct formatting, even if Discord response is the same :
|
* fix(long): fix unsigned long printing in requests (Discord4J#1119) * fix: revert format change --------- Co-authored-by: Axel Joly <azn9.pro@gmail.com>
To Reproduce:
Expected Behavior:
A 404 (because the message/channel are fake IDs) but a request made with the correct IDs
Actual Behavior:
Version:
3.2.3
Other:
The text was updated successfully, but these errors were encountered: