Adjusted FindUsers docs
This commit is contained in:
@@ -147,7 +147,6 @@ namespace Discord
|
|||||||
return _users[userId, server.Id];
|
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>
|
/// <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)
|
public User GetUser(Server server, string username, short discriminator)
|
||||||
{
|
{
|
||||||
if (server == null) throw new ArgumentNullException(nameof(server));
|
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>
|
/// <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 <@Id>. Search is case-insensitive.</remarks>
|
||||||
public IEnumerable<User> FindUsers(Server server, string name, short? discriminator = null, bool exactMatch = false)
|
public IEnumerable<User> FindUsers(Server server, string name, short? discriminator = null, bool exactMatch = false)
|
||||||
{
|
{
|
||||||
if (server == null) throw new ArgumentNullException(nameof(server));
|
if (server == null) throw new ArgumentNullException(nameof(server));
|
||||||
@@ -169,7 +168,7 @@ namespace Discord
|
|||||||
return FindUsers(server.Members, server.Id, name, discriminator, exactMatch);
|
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>
|
/// <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 <@Id>. Search is case-insensitive.</remarks>
|
||||||
public IEnumerable<User> FindUsers(Channel channel, string name, short? discriminator = null, bool exactMatch = false)
|
public IEnumerable<User> FindUsers(Channel channel, string name, short? discriminator = null, bool exactMatch = false)
|
||||||
{
|
{
|
||||||
if (channel == null) throw new ArgumentNullException(nameof(channel));
|
if (channel == null) throw new ArgumentNullException(nameof(channel));
|
||||||
|
|||||||
Reference in New Issue
Block a user