pub struct UpdateGuildSticker<'a> { /* private fields */ }
Expand description
Updates a sticker in a guild, and returns the updated sticker.
§Examples
use twilight_http::Client;
use twilight_model::id::Id;
let client = Client::new("my token".to_owned());
let guild_id = Id::new(1);
let sticker_id = Id::new(2);
let sticker = client
.update_guild_sticker(guild_id, sticker_id)
.description("new description")
.await?
.model()
.await?;
println!("{sticker:#?}");
Implementations§
source§impl<'a> UpdateGuildSticker<'a>
impl<'a> UpdateGuildSticker<'a>
sourcepub fn description(self, description: &'a str) -> Self
pub fn description(self, description: &'a str) -> Self
Set the sticker’s description.
§Errors
Returns an error of type DescriptionInvalid
if the length is invalid.
Trait Implementations§
source§impl<'a> AuditLogReason<'a> for UpdateGuildSticker<'a>
impl<'a> AuditLogReason<'a> for UpdateGuildSticker<'a>
source§impl IntoFuture for UpdateGuildSticker<'_>
impl IntoFuture for UpdateGuildSticker<'_>
source§type Output = Result<Response<Sticker>, Error>
type Output = Result<Response<Sticker>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<Sticker>
type IntoFuture = ResponseFuture<Sticker>
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 UpdateGuildSticker<'_>
impl TryIntoRequest for UpdateGuildSticker<'_>
Auto Trait Implementations§
impl<'a> Freeze for UpdateGuildSticker<'a>
impl<'a> !RefUnwindSafe for UpdateGuildSticker<'a>
impl<'a> Send for UpdateGuildSticker<'a>
impl<'a> Sync for UpdateGuildSticker<'a>
impl<'a> Unpin for UpdateGuildSticker<'a>
impl<'a> !UnwindSafe for UpdateGuildSticker<'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