diff options
| author | Illia <[email protected]> | 2016-12-31 16:39:46 +0300 |
|---|---|---|
| committer | Illia <[email protected]> | 2016-12-31 16:39:46 +0300 |
| commit | 52e871383317c85ce8144ecae4120633da367928 (patch) | |
| tree | 64f3fedc2f4d9a8be97c2c1731ed947968fc634a /src/client | |
| parent | Add command alias support and command.example (diff) | |
| download | serenity-52e871383317c85ce8144ecae4120633da367928.tar.xz serenity-52e871383317c85ce8144ecae4120633da367928.zip | |
Fix typo
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/mod.rs | 2 | ||||
| -rw-r--r-- | src/client/rest/mod.rs | 4 | ||||
| -rw-r--r-- | src/client/rest/ratelimiting.rs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index aed11a0..ab4b47c 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -272,7 +272,7 @@ impl Client { /// /// This will retrieve an automatically determined number of shards to use /// from the API - determined by Discord - and then open a number of shards - /// equivilant to that amount. + /// equivalent to that amount. /// /// Refer to the [Gateway documentation][gateway docs] for more information /// on effectively using sharding. diff --git a/src/client/rest/mod.rs b/src/client/rest/mod.rs index 1af067d..6ecbd94 100644 --- a/src/client/rest/mod.rs +++ b/src/client/rest/mod.rs @@ -74,7 +74,7 @@ pub fn set_token(token: &str) { /// event is received. /// /// **Note**: This will fail if you are already in the guild, or are banned. A -/// ban is equivilant to an IP ban. +/// ban is equivalent to an IP ban. /// /// **Note**: Requires that the current user be a user account. Bots can not /// accept invites. Instead, they must be accepted via OAuth2 authorization @@ -160,7 +160,7 @@ pub fn add_member_role(guild_id: u64, user_id: u64, role_id: u64) -> Result<()> /// Bans a [`User`] from a [`Guild`], removing their messages sent in the last /// X number of days. /// -/// Passing a `delete_message_days` of `0` is equivilant to not removing any +/// Passing a `delete_message_days` of `0` is equivalent to not removing any /// messages. Up to `7` days' worth of messages may be deleted. /// /// **Note**: Requires that you have the [Ban Members] permission. diff --git a/src/client/rest/ratelimiting.rs b/src/client/rest/ratelimiting.rs index a404310..9a7ba8e 100644 --- a/src/client/rest/ratelimiting.rs +++ b/src/client/rest/ratelimiting.rs @@ -14,7 +14,7 @@ //! `GET /channels/5/messages/8` being rate limited _separately_. However, the //! two URIs of `GET /channels/10/messages/11` and //! `GET /channels/10/messages/12` will count towards the "same ratelimit", as -//! the major parameter - `10` is equivilant in both URIs' format. +//! the major parameter - `10` is equivalent in both URIs' format. //! //! # Examples //! @@ -30,7 +30,7 @@ //! `10`, requesting the first URI will return a `remaining` of `9` in the //! response. Immediately after - prior to buckets resetting - performing a //! request to the _second_ URI will return a `remaining` of `8` in the -//! response, as the major parameter - `channel_id` - is equivilant for the two +//! response, as the major parameter - `channel_id` - is equivalent for the two //! requests (`10`). //! //! |