diff options
| author | Illia <[email protected]> | 2016-12-03 23:02:25 +0200 |
|---|---|---|
| committer | zeyla <[email protected]> | 2016-12-03 13:02:25 -0800 |
| commit | 95c127c337e60b81c0db1dc16ad918e49bcaa9cb (patch) | |
| tree | 1f0fceb575027bbc6dab6252fdc3f5eeaccf0e86 /src/ext/cache | |
| parent | Add Role Eq/Ord impls (diff) | |
| download | serenity-95c127c337e60b81c0db1dc16ad918e49bcaa9cb.tar.xz serenity-95c127c337e60b81c0db1dc16ad918e49bcaa9cb.zip | |
Add Member::colour
Add a colour method to retrieve the member's top role with a unique
colour, or the default colour if none can be applied.
Diffstat (limited to 'src/ext/cache')
| -rw-r--r-- | src/ext/cache/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ext/cache/mod.rs b/src/ext/cache/mod.rs index 2778d6b..39baaf0 100644 --- a/src/ext/cache/mod.rs +++ b/src/ext/cache/mod.rs @@ -188,7 +188,7 @@ pub struct Cache { } impl Cache { - /// Calculates the number of [`Member`]s that have not had data received. + /// Fetches the number of [`Member`]s that have not had data received. /// /// The important detail to note here is that this is the number of /// _member_s that have not had data downloaded. A single [`User`] may have @@ -214,7 +214,7 @@ impl Cache { total } - /// Calculates a vector of all [`PrivateChannel`] and [`Group`] Ids that are + /// Fetches a vector of all [`PrivateChannel`] and [`Group`] Ids that are /// stored in the cache. /// /// # Examples @@ -232,7 +232,7 @@ impl Cache { .collect() } - /// Calculates a vector of all [`Guild`]s' Ids that are stored in the cache. + /// Fetches a vector of all [`Guild`]s' Ids that are stored in the cache. /// /// Note that if you are utilizing multiple [`Shard`]s, then the guilds /// retrieved over all shards are included in this count -- not just the |