Struct twilight_http::request::channel::message::GetChannelMessagesConfigured
source · pub struct GetChannelMessagesConfigured<'a> { /* private fields */ }Expand description
This struct is returned when one of after, around, or before is specified in
GetChannelMessages.
Implementations§
source§impl<'a> GetChannelMessagesConfigured<'a>
impl<'a> GetChannelMessagesConfigured<'a>
sourcepub const fn limit(self, limit: u16) -> Result<Self, ValidationError>
pub const fn limit(self, limit: u16) -> Result<Self, ValidationError>
Set the maximum number of messages to retrieve.
The minimum is 1 and the maximum is 100.
Errors
Returns an error of type GetChannelMessages error type if the amount
is less than 1 or greater than 100.
Trait Implementations§
source§impl IntoFuture for GetChannelMessagesConfigured<'_>
impl IntoFuture for GetChannelMessagesConfigured<'_>
§type Output = Result<Response<ListBody<Message>>, Error>
type Output = Result<Response<ListBody<Message>>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<ListBody<Message>>
type IntoFuture = ResponseFuture<ListBody<Message>>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more