Beispiel #1
0
 public static IReadOnlyList <GuildMember> GetGuildChannelMembers(this DiscordSocketClient client, ulong guildId, ulong channelId, uint limit = 0) => client.GetGuildChannelMembersAsync(guildId, channelId, limit).GetAwaiter().GetResult();
Beispiel #2
0
 /// <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());
 }