You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched through the issue tracker for issues linked to the error code field on the serenity::http::error::DiscordJsonError and couldn't find any, but this feels like an issue that should've come up, so I apologize if it has done so.
The error field feels it can be improved by either being replaced or supplemented by an enum that covers all currently existing error-codes, with (depending on implementation) either a variant or an Option for if the error-code is unknown.
I searched through the issue tracker for issues linked to the error code field on the
serenity::http::error::DiscordJsonError
and couldn't find any, but this feels like an issue that should've come up, so I apologize if it has done so.The error field feels it can be improved by either being replaced or supplemented by an enum that covers all currently existing error-codes, with (depending on implementation) either a variant or an Option for if the error-code is unknown.
A list from discords official docs is here:
https://github.com/discord/discord-api-docs/blob/main/docs/topics/Opcodes_and_Status_Codes.md
Would this be wanted? I could potentially implement it myself, with instructions of how the maintainers prefer such implementations.
The text was updated successfully, but these errors were encountered: