Example #1
0
File: client.py Project: zw5/disco
 def guilds_members_list(self, guild, limit=1000, after=None):
     r = self.http(Routes.GUILDS_MEMBERS_LIST,
                   dict(guild=guild),
                   params=optional(
                       limit=limit,
                       after=after,
                   ))
     return GuildMember.create_hash(self.client,
                                    'id',
                                    r.json(),
                                    guild_id=guild)
Example #2
0
 def guilds_members_list(self, guild):
     r = self.http(Routes.GUILDS_MEMBERS_LIST, dict(guild=guild))
     return GuildMember.create_hash(self.client,
                                    'id',
                                    r.json(),
                                    guild_id=guild)