pub struct MessageCollectorBuilder { /* private fields */ }
Available on crate feature collector only.
Expand description

Future building a stream of messages.

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.

Sets a filter function where messages passed to the function must return true, otherwise the message won’t be collected and failed the filter process. This is the last instance to pass for a message to count as collected.

This function is intended to be a message content filter.

Sets the required author ID of a message. If a message does not meet this ID, it won’t be received.

Sets the required channel ID of a message. If a message does not meet this ID, it won’t be received.

Sets the required guild ID of a message. If a message does not meet this ID, it won’t be received.

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

A future that builds a MessageCollector based on the settings.

Limits how many messages can be collected.

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

Use the given configuration to build the MessageCollector.

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