Ejemplo n.º 1
0
 /// <summary>
 /// Attempts to look up the channel given a search string.
 /// This string looks up exact matches of the given name, regardless of if the channel has been deleted.
 /// </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 <CacheChannel> > QueryChannelAsync(ulong guild, string search)
 => CacheChannel.QueryAsync(_client, guild, search);
Ejemplo n.º 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 <CacheChannel> QueryChannelAsync(ulong guild, ulong channel)
 => CacheChannel.QueryAsync(_client, guild, channel);