diff options
| author | Erk- <[email protected]> | 2018-08-09 20:34:33 +0200 |
|---|---|---|
| committer | zeyla <[email protected]> | 2018-08-09 11:34:33 -0700 |
| commit | 40053a71931bb63c43eb6f469ee3c94383c9e90a (patch) | |
| tree | 79c2fabc1229d0543205bc6daf8ebebc6ebc9755 /src/http/ratelimiting.rs | |
| parent | [routing] Fix various incorrect routes. (#364) (diff) | |
| download | serenity-40053a71931bb63c43eb6f469ee3c94383c9e90a.tar.xz serenity-40053a71931bb63c43eb6f469ee3c94383c9e90a.zip | |
Fix all the dead links in the docs
Diffstat (limited to 'src/http/ratelimiting.rs')
| -rw-r--r-- | src/http/ratelimiting.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/http/ratelimiting.rs b/src/http/ratelimiting.rs index 309ba35..298ca6f 100644 --- a/src/http/ratelimiting.rs +++ b/src/http/ratelimiting.rs @@ -8,7 +8,7 @@ //! > For example, `/channels/:channel_id` and //! > `/channels/:channel_id/messages/:message_id` both take `channel_id` into //! > account when generating rate limits since it's the major parameter. The -//! only current major parameters are `channel_id` and `guild_id`. +//! only current major parameters are `channel_id`, `guild_id` and `webhook_id`. //! //! This results in the two URIs of `GET /channels/4/messages/7` and //! `GET /channels/5/messages/8` being rate limited _separately_. However, the @@ -98,7 +98,7 @@ lazy_static! { /// ``` /// /// [`RateLimit`]: struct.RateLimit.html - /// [`Route`]: enum.Route.html + /// [`Route`]: ../routing/enum.Route.html pub static ref ROUTES: Arc<Mutex<HashMap<Route, Arc<Mutex<RateLimit>>>>> = { Arc::new(Mutex::new(HashMap::default())) }; @@ -204,7 +204,7 @@ pub(super) fn perform(req: Request) -> Result<Response> { /// 429s. /// /// [`ROUTES`]: struct.ROUTES.html -/// [`Route`]: enum.Route.html +/// [`Route`]: ../routing/enum.Route.html /// [Discord docs]: https://discordapp.com/developers/docs/topics/rate-limits #[derive(Clone, Debug, Default)] pub struct RateLimit { |