Struct twilight_http::request::template::CreateGuildFromTemplate
source · pub struct CreateGuildFromTemplate<'a> { /* private fields */ }Expand description
Implementations§
source§impl<'a> CreateGuildFromTemplate<'a>
impl<'a> CreateGuildFromTemplate<'a>
sourcepub const fn icon(self, icon: &'a str) -> Self
pub const fn icon(self, icon: &'a str) -> Self
Set the icon.
This must be a Data URI, in the form of
data:image/{type};base64,{data} where {type} is the image MIME type
and {data} is the base64-encoded image. See Discord Docs/Image Data.
Trait Implementations§
source§impl IntoFuture for CreateGuildFromTemplate<'_>
impl IntoFuture for CreateGuildFromTemplate<'_>
§type IntoFuture = ResponseFuture<Guild>
type IntoFuture = ResponseFuture<Guild>
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