Struct twilight_http::request::channel::thread::GetThreadMembers
source · pub struct GetThreadMembers<'a> { /* private fields */ }
Expand description
Returns the ThreadMember
s of the thread.
Implementations§
source§impl<'a> GetThreadMembers<'a>
impl<'a> GetThreadMembers<'a>
sourcepub const fn after(self, after: Id<UserMarker>) -> Self
pub const fn after(self, after: Id<UserMarker>) -> Self
Fetch the thread members after the user ID.
sourcepub fn limit(self, limit: u32) -> Result<Self, ChannelValidationError>
pub fn limit(self, limit: u32) -> Result<Self, ChannelValidationError>
The maximum number of thread members to return.
Must be between 1 and 100. Defaults to 100.
Errors
Returns a ChannelValidationErrorType::ThreadMemberLimitInvalid
error type if the
limit is not between 1 and 100.
sourcepub const fn with_member(self, with_member: bool) -> Self
pub const fn with_member(self, with_member: bool) -> Self
Include the associated guild members for each thread member.
sourcepub fn exec(self) -> ResponseFuture<ListBody<ThreadMember>> ⓘ
👎Deprecated since 0.14.0: use .await
or into_future
instead
pub fn exec(self) -> ResponseFuture<ListBody<ThreadMember>> ⓘ
.await
or into_future
insteadExecute the request, returning a future resolving to a Response
.
Trait Implementations§
source§impl IntoFuture for GetThreadMembers<'_>
impl IntoFuture for GetThreadMembers<'_>
§type Output = Result<Response<ListBody<ThreadMember>>, Error>
type Output = Result<Response<ListBody<ThreadMember>>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<ListBody<ThreadMember>>
type IntoFuture = ResponseFuture<ListBody<ThreadMember>>
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