pub struct ModalInteractionCollectorBuilder { /* private fields */ }
Available on crate feature collector only.

Implementations

Limits how many interactions will attempt to be filtered.

The filter checks whether the message has been sent in the right guild, channel, and by the right author.

Limits how many interactions can be collected.

An interaction is considered collected, if the interaction passes all the requirements.

Sets a filter function where interactions passed to the function must return true, otherwise the interaction won’t be collected. This is the last instance to pass for an interaction to count as collected.

This function is intended to be an interaction filter.

Sets the required author ID of an interaction. If an interaction is not triggered by a user with this ID, it won’t be received.

Sets the message on which the interaction must occur. If an interaction is not on a message with this ID, it won’t be received.

Sets the guild in which the interaction must occur. If an interaction is not on a message with this guild ID, it won’t be received.

Sets the channel on which the interaction must occur. If an interaction is not on a message with this channel ID, it won’t be received.

Sets a duration for how long the collector shall receive interactions.

Use the given configuration to build the ModalInteractionCollector.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more