Struct twilight_http::request::guild::role::UpdateRole [−][src]
pub struct UpdateRole<'a> { /* fields omitted */ }
Expand description
Update a role by guild id and its id.
Implementations
Set the icon of the role.
Only works if the guild has the ROLE_ICONS
feature.
If true, the role can be @mentioned (pinged) in chat.
Set the allowed permissions of this role.
Set the unicode emoji of a role.
pub fn exec(self) -> ResponseFuture<Role>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<Role>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
Notable traits for ResponseFuture<T>
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 UpdateRole<'a>
impl<'a> Send for UpdateRole<'a>
impl<'a> Sync for UpdateRole<'a>
impl<'a> Unpin for UpdateRole<'a>
impl<'a> !UnwindSafe for UpdateRole<'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