public static IReadOnlyList <GuildMember> GetGuildChannelMembers(this DiscordSocketClient client, ulong guildId, ulong channelId, uint limit = 0) => client.GetGuildChannelMembersAsync(guildId, channelId, limit).GetAwaiter().GetResult();
/// <summary> /// Warning: this does not work for official guilds /// </summary> public static IReadOnlyList <GuildMember> GetGuildChannelMembers(this DiscordSocketClient client, ulong guildId, ulong channelId, MemberListQueryOptions options = null) { return(client.GetGuildChannelMembersAsync(guildId, channelId, options).GetAwaiter().GetResult()); }