AndExtension
A container for methods that filter wait calls
Methods
and
// Overload 1
and<D extends C>(predicate: (ctx: C) => ctx is D, opts?: AndOtherwiseOptions<C>): AndPromise<D>;
Filters down the wait call using another custom predicate function. Corresponds with Conversation
unless
unless(predicate: (ctx: C) => boolean | Promise<boolean>, opts?: AndOtherwiseOptions<C>): AndPromise<C>;
Filters down the wait call using another negated custom predicate function. Corresponds with Conversation
andFor
andFor<Q extends FilterQuery>(query: Q | Q[], opts?: AndOtherwiseOptions<C>): AndPromise<Filter<C, Q>>;
Filters down the wait call using another filter query. Corresponds with Conversation
andForHears
andForHears(trigger: MaybeArray<string | RegExp>, opts?: AndOtherwiseOptions<C>): AndPromise<HearsContext<C>>;
Filters down the wait call using another hears check. Corresponds with Conversation
andForCommand
andForCommand(command: MaybeArray<StringWithCommandSuggestions>, opts?: AndOtherwiseOptions<C>): AndPromise<CommandContext<C>>;
Filters down the wait call using another command check. Corresponds with Conversation
andForReaction
andForReaction(reaction: MaybeArray<ReactionTypeEmoji["emoji"] | ReactionType>, opts?: AndOtherwiseOptions<C>): AndPromise<ReactionContext<C>>;
Filters down the wait call using another reaction check. Corresponds with Conversation
andForCallbackQuery
andForCallbackQuery(trigger: MaybeArray<string | RegExp>, opts?: AndOtherwiseOptions<C>): AndPromise<CallbackQueryContext<C>>;
Filters down the wait call using another callback query check. Corresponds with Conversation
andForGameQuery
andForGameQuery(trigger: MaybeArray<string | RegExp>, opts?: AndOtherwiseOptions<C>): AndPromise<GameQueryContext<C>>;
Filters down the wait call using another game query check. Corresponds with Conversation
andFrom
andFrom(user: number | User, opts?: AndOtherwiseOptions<C>): AndPromise<C & { from: User }>;
Filters down the wait call using another check for a user. Corresponds with Conversation
andForReplyTo
andForReplyTo(message_id: number | { message_id: number }, opts?: AndOtherwiseOptions<C>): AndPromise<Filter<C, "message" | "channel_post">>;
Filters down the wait call using another check for a reply. Corresponds with Conversation