twilight
twilight copied to clipboard
Powerful, flexible, and scalable ecosystem of Rust libraries for the Discord API.
It may be useful to have some sort of debugger / scanner of the cache to find unresolved references which are indicative of bugs. As a potential part of this...
The `http` crate is being exposed by the `twilight-http-ratelimiting` crate via [`request::Method::to_http`](https://docs.rs/twilight-http-ratelimiting/0.8.3/twilight_http_ratelimiting/request/enum.Method.html#method.into_http). This method must have made it through the refactor out to another crate, and we can instead have...
```rs use twilight_http::Client; let client: Client = Client::new("my token".to_owned()); let embed: Embed = /* create an embed statically */; // The embed we created above was created statically, // but...
Taking an owned value instead of a borrowing means the cache doesn't have to clone data to construct it's cached models. The advantage of this is no forced cloning of...
Parse `X-Ratelimit-Scope` in response headers and deal with it accordingly. For now I suggest we simply ignore shared ratelimits, because we can't know whether our timer is still accurate. -...
```rust pub enum Foo { Bar { a: String, b: i32, } } ``` becomes ```rust #[non_exhaustive] pub enum Foo { Bar(Bar), } #[non_exhaustive] pub struct Bar { pub a:...
Instead of making fields public - therefore exposing their name and type - hide them behind getters. For example, the field `name: String` should be private and have a getter...
After spending some time debugging why i was getting 429's on stuff that i really shouldn't be getting it on i managed to boil it down to a bug in...
Link from `model` types' documentation to their respective builders in the documentation. *Issue created from note on moved project board.*
*Issue created from note on moved project board.*