Example #1
0
        /// <summary>
        /// Requests a member chunk from a guild
        /// </summary>
        /// <param name="guildId">ID of the guild</param>
        /// <param name="limit">Max amount of members to receive (<see cref="MemberAmount"/> might help)</param>
        public static void GetGuildMembers(this DiscordSocketClient client, ulong guildId, uint limit = 100)
        {
            var query = new GatewayMemberQuery()
            {
                GuildId = guildId,
                Limit   = limit
            };

            client.Socket.Send(GatewayOpcode.RequestGuildMembers, query);
        }
Example #2
0
 /// <summary>
 /// Requests a member chunk from a guild
 /// </summary>
 public static void RequestGuildMembers(this DiscordSocketClient client, GatewayMemberQuery query)
 {
     client.Send(GatewayOpcode.RequestGuildMembers, query);
 }