Struct twilight_http::request::channel::thread::update_thread::UpdateThread [−][src]
pub struct UpdateThread<'a> { /* fields omitted */ }Expand description
Update a thread.
All fields are optional. The minimum length of the name is 1 UTF-16 characters and the maximum is 100 UTF-16 characters.
Implementations
Set whether the thread is archived.
Requires that the user have SEND_MESSAGES in the thread. However, if
the thread is locked, the user must have MANAGE_THREADS.
Whether non-moderators can add other non-moderators to a thread.
Set whether the thread is locked.
If the thread is already locked, only users with MANAGE_THREADS can
unlock it.
Set the name of the thread.
Must be between 1 and 100 characters in length.
Errors
Returns a ThreadValidationErrorType::NameInvalid error type if the
name is invalid.
pub const fn rate_limit_per_user(
self,
rate_limit_per_user: u64
) -> Result<Self, ThreadValidationError>
pub const fn rate_limit_per_user(
self,
rate_limit_per_user: u64
) -> Result<Self, ThreadValidationError>
Set the number of seconds that a user must wait before before they are able to send another message.
The minimum is 0 and the maximum is 21600. Refer to the discord docs for more details. This is also known as “Slow Mode”.
Errors
Returns a ThreadValidationErrorType::RateLimitPerUserInvalid error type
if the amount is greater than 21600.
pub fn exec(self) -> ResponseFuture<Channel>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<Channel>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;Execute the request, returning a future resolving to a Response.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for UpdateThread<'a>
impl<'a> Send for UpdateThread<'a>
impl<'a> Sync for UpdateThread<'a>
impl<'a> Unpin for UpdateThread<'a>
impl<'a> !UnwindSafe for UpdateThread<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more