serenity-rs / serenity

A Rust library for the Discord API.
https://discord.gg/serenity-rs
ISC License
4.78k stars 583 forks source link

Add enum for JSON error codes in DiscordJsonError #2964

Closed ivinjabraham closed 2 months ago

ivinjabraham commented 2 months ago

fixes #2752.

arqunis commented 2 months ago

This changes the type of the DiscordJsonError::code field, which is a breaking change. Could you rebase on top of the next branch instead?

ivinjabraham commented 2 months ago

This changes the type of the DiscordJsonError::code field, which is a breaking change. Could you rebase on top of the next branch instead?

Yep, rebased.