예제 #1
0
 /// <summary>
 /// Tells the <see cref="MessageCollector"/> to begin collecting messages.
 /// </summary>
 /// <param name="filter">The filter that will be used when comparing messages.</param>
 /// <param name="options">The options that will be used to set up the <see cref="MessageCollector"/>.</param>
 public async Task <FilterCollection> CollectAsync(MessageFilter filter, CollectionOptions options = null)
 => await CollectAsync(filter.JudgeMany, options);
예제 #2
0
 /// <summary>
 /// Starts a message handler session for this <see cref="MessageCollector"/>.
 /// </summary>
 /// <param name="filter">The filter that will be used to compare messages.</param>
 /// <param name="options">The options that will be used to set up the <see cref="MessageCollector"/>.</param>
 public async Task MatchAsync(MessageFilter filter, SessionOptions options = null)
 => await MatchAsync(filter.Judge, options);
예제 #3
0
 /// <summary>
 /// Tells the <see cref="MessageCollector"/> to attempt to match a single message.
 /// </summary>
 /// <param name="filter">The filter that will be used to compare messages.</param>
 /// <param name="options">The options that will be used to set up the <see cref="MessageCollector"/>.</param>
 public async Task <FilterMatch> TryFilterAsync(MessageFilter filter, FilterOptions options = null)
 => await TryFilterAsync(filter.Judge, options);