let channel: GuildChannel = get_channel();
// Let's say there's a message with a reaction at the 30th message
let messages = channel.messages(&ctx.http, GetMessages::new().limit(10)).await.unwrap(); // Doesn't panic
let messages = channel.messages(&ctx.http, GetMessages::new().limit(20)).await.unwrap(); // Doesn't panic
let messages = channel.messages(&ctx.http, GetMessages::new().limit(29)).await.unwrap(); // Doesn't panic
let messages = channel.messages(&ctx.http, GetMessages::new().limit(30)).await.unwrap(); // Panics
here's the error:
called `Result::unwrap()` on an `Err` value: Json(Error("missing field `burst_colours`", line: 1, column: 3088))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
example code:
here's the error: