Browse Source

Adjusted FindUsers docs

tags/docs-0.9
RogueException 9 years ago
parent
commit
1567f30c5f
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/Discord.Net/DiscordClient.Users.cs

+ 2
- 3
src/Discord.Net/DiscordClient.Users.cs View File

@@ -147,7 +147,6 @@ namespace Discord
return _users[userId, server.Id];
}
/// <summary> Returns the user with the specified name and discriminator, along withtheir server-specific data, or null if they couldn't be found. </summary>
/// <remarks> Name formats supported: Name and @Name. Search is case-insensitive. </remarks>
public User GetUser(Server server, string username, short discriminator)
{
if (server == null) throw new ArgumentNullException(nameof(server));
@@ -159,7 +158,7 @@ namespace Discord
}

/// <summary> Returns all users with the specified server and name, along with their server-specific data. </summary>
/// <remarks> Name formats supported: Name and @Name. Search is case-insensitive.</remarks>
/// <remarks> Name formats supported: Name, @Name and &lt;@Id&gt;. Search is case-insensitive.</remarks>
public IEnumerable<User> FindUsers(Server server, string name, short? discriminator = null, bool exactMatch = false)
{
if (server == null) throw new ArgumentNullException(nameof(server));
@@ -169,7 +168,7 @@ namespace Discord
return FindUsers(server.Members, server.Id, name, discriminator, exactMatch);
}
/// <summary> Returns all users with the specified channel and name, along with their server-specific data. </summary>
/// <remarks> Name formats supported: Name and @Name. Search is case-insensitive.</remarks>
/// <remarks> Name formats supported: Name, @Name and &lt;@Id&gt;. Search is case-insensitive.</remarks>
public IEnumerable<User> FindUsers(Channel channel, string name, short? discriminator = null, bool exactMatch = false)
{
if (channel == null) throw new ArgumentNullException(nameof(channel));


Loading…
Cancel
Save