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