예제 #1
0
 /// <summary>
 /// Attempts to look up the user given a search string.
 /// This string looks up case-insensitive, exact matches of nicknames and usernames.
 /// </summary>
 /// <returns>
 /// An <see cref="IEnumerable{T}"/> containing zero or more query results,
 /// sorted by cache date from most to least recent.
 /// </returns>
 internal static Task <IEnumerable <CacheUser> > QueryUserAsync(ulong guild, string search)
 => CacheUser.QueryAsync(_client, guild, search);
예제 #2
0
 /// <summary>
 /// Attempts to query for an exact result with the given parameters.
 /// Does not handle exceptions that may occur.
 /// </summary>
 /// <returns>Null on no result.</returns>
 internal static Task <CacheUser> QueryUserAsync(ulong guild, ulong user)
 => CacheUser.QueryAsync(_client, guild, user);