From 401bc6140fb8231b9e8d2ec11c88a03069924675 Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Sun, 11 Aug 2019 11:56:28 -0400 Subject: [PATCH 1/2] Linked to ShardMessenger::chunk_guilds from the Guild.members feild --- src/model/guild/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/model/guild/mod.rs b/src/model/guild/mod.rs index 69b1bef939a..f0074f66d64 100644 --- a/src/model/guild/mod.rs +++ b/src/model/guild/mod.rs @@ -110,8 +110,14 @@ pub struct Guild { /// if the [`member_count`] is greater than the `LARGE_THRESHOLD` set by /// the library. /// + /// You can manually request that the remaining members be sent by calling + /// [`ShardManager::chunk_guilds`], after which chunks containing guild + /// members will be asynchronously received until all members are + /// available. + /// /// [`ReadyEvent`]: ../event/struct.ReadyEvent.html /// [`member_count`]: #structfield.member_count + /// [`ShardMessenger::chunk_guilds`]: ../../client/bridge/gateway/struct.ShardMessenger.html#method.chunk_guilds #[serde(serialize_with = "serialize_gen_map")] pub members: HashMap, /// Indicator of whether the guild requires multi-factor authentication for From 058c9e4dafa39ac6b75046fab051c8ebbd2ace98 Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Wed, 14 Aug 2019 15:09:29 -0400 Subject: [PATCH 2/2] Simplified previous commit a little bit --- src/model/guild/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/model/guild/mod.rs b/src/model/guild/mod.rs index f0074f66d64..25e8ce95a6e 100644 --- a/src/model/guild/mod.rs +++ b/src/model/guild/mod.rs @@ -111,9 +111,7 @@ pub struct Guild { /// the library. /// /// You can manually request that the remaining members be sent by calling - /// [`ShardManager::chunk_guilds`], after which chunks containing guild - /// members will be asynchronously received until all members are - /// available. + /// [`ShardManager::chunk_guilds`]. /// /// [`ReadyEvent`]: ../event/struct.ReadyEvent.html /// [`member_count`]: #structfield.member_count