aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-12-02 13:57:49 -0800
committerAustin Hellyer <[email protected]>2016-12-02 13:57:49 -0800
commit57c060fa2fccfbb3b3d4b2d18aad2faa5929deb3 (patch)
tree9bb834ed47a215d4f80f1909b5705a2e69b50950 /examples
parentEncase the event storage in an Arc<RwLock> (diff)
downloadserenity-57c060fa2fccfbb3b3d4b2d18aad2faa5929deb3.tar.xz
serenity-57c060fa2fccfbb3b3d4b2d18aad2faa5929deb3.zip
Paginate rest::get_guilds and add helper methods
Paginate the rest::get_guilds endpoint, which can be used to retrieve the guilds after-or-before a certain guild's Id, with a limit of results to return (100 is the max). Example usage: ```rs use serenity::client::rest::GuildPagination; let target = GuildPagination::After(GuildId(81384788765712384)); let guilds = context.get_guilds(target, 50); ``` Additionally, add a method of `CurrentUser::guilds()`, to retrieve the current user's guilds. A limit of 100 is set, as (most) users can not be in more than 100 guilds.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions