pub struct GetReactions<'a> { /* private fields */ }
Expand description
Get a list of users that reacted to a message with an emoji
.
This endpoint is limited to 100 users maximum, so if a message has more than 100 reactions, requests must be chained until all reactions are retrieved.
Implementations§
source§impl<'a> GetReactions<'a>
impl<'a> GetReactions<'a>
sourcepub fn after(self, after: Id<UserMarker>) -> Self
pub fn after(self, after: Id<UserMarker>) -> Self
Get users after this id.
sourcepub fn limit(self, limit: u16) -> Self
pub fn limit(self, limit: u16) -> Self
Set the maximum number of users to retrieve.
The minimum is 1 and the maximum is 100. If no limit is specified, Discord sets the default to 25.
§Errors
Returns an error of type GetReactions
if the amount is greater than
100.
sourcepub fn kind(self, kind: ReactionType) -> Self
pub fn kind(self, kind: ReactionType) -> Self
Set the kind of reaction to retrieve.
This can be either a super reaction or a normal reaction.
Trait Implementations§
source§impl IntoFuture for GetReactions<'_>
impl IntoFuture for GetReactions<'_>
source§type Output = Result<Response<ListBody<User>>, Error>
type Output = Result<Response<ListBody<User>>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<ListBody<User>>
type IntoFuture = ResponseFuture<ListBody<User>>
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
source§impl TryIntoRequest for GetReactions<'_>
impl TryIntoRequest for GetReactions<'_>
Auto Trait Implementations§
impl<'a> Freeze for GetReactions<'a>
impl<'a> !RefUnwindSafe for GetReactions<'a>
impl<'a> Send for GetReactions<'a>
impl<'a> Sync for GetReactions<'a>
impl<'a> Unpin for GetReactions<'a>
impl<'a> !UnwindSafe for GetReactions<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more