pub struct GetGuildScheduledEventUsers<'a> { /* private fields */ }
Expand description
Get a list of users subscribed to a scheduled event.
Users are returned in ascending order by user_id
. before
and after
both take a user id. If both are specified, only before
is respected.
The default limit
is 100. See
Discord Docs/Get Guild Scheduled Event Users.
Implementations§
Source§impl<'a> GetGuildScheduledEventUsers<'a>
impl<'a> GetGuildScheduledEventUsers<'a>
Sourcepub fn after(self, after: Id<UserMarker>) -> Self
pub fn after(self, after: Id<UserMarker>) -> Self
Sourcepub fn before(self, before: Id<UserMarker>) -> Self
pub fn before(self, before: Id<UserMarker>) -> Self
Get users before this user ID.
This is incompatible with after
.
Sourcepub fn limit(self, limit: u16) -> Self
pub fn limit(self, limit: u16) -> Self
Set the limit of users to return.
If not specified, the default is 100.
§Errors
Returns an error of type ScheduledEventGetUsers
if the limit is
invalid.
Sourcepub fn with_member(self, with_member: bool) -> Self
pub fn with_member(self, with_member: bool) -> Self
Set whether to return member objects with each user.
Trait Implementations§
Source§impl IntoFuture for GetGuildScheduledEventUsers<'_>
impl IntoFuture for GetGuildScheduledEventUsers<'_>
Source§type Output = Result<Response<ListBody<GuildScheduledEventUser>>, Error>
type Output = Result<Response<ListBody<GuildScheduledEventUser>>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = ResponseFuture<ListBody<GuildScheduledEventUser>>
type IntoFuture = ResponseFuture<ListBody<GuildScheduledEventUser>>
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 GetGuildScheduledEventUsers<'_>
impl TryIntoRequest for GetGuildScheduledEventUsers<'_>
Auto Trait Implementations§
impl<'a> Freeze for GetGuildScheduledEventUsers<'a>
impl<'a> !RefUnwindSafe for GetGuildScheduledEventUsers<'a>
impl<'a> Send for GetGuildScheduledEventUsers<'a>
impl<'a> Sync for GetGuildScheduledEventUsers<'a>
impl<'a> Unpin for GetGuildScheduledEventUsers<'a>
impl<'a> !UnwindSafe for GetGuildScheduledEventUsers<'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