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

Implementations

Limits how many messages 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 reactions can be collected.

A reaction is considered collected, if the reaction passes all the requirements.

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

This function is intended to be a reaction content filter.

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

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

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

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

If set to true, added reactions will be collected.

Set to true by default.

If set to true, removed reactions will be collected.

Set to false by default.

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

Use the given configuration to build the ReactionCollector.

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