Struct twilight_http::request::guild::UpdateGuildWelcomeScreen
source · pub struct UpdateGuildWelcomeScreen<'a> { /* private fields */ }Expand description
Update the guild’s welcome screen.
Requires the MANAGE_GUILD permission.
Implementations§
source§impl<'a> UpdateGuildWelcomeScreen<'a>
impl<'a> UpdateGuildWelcomeScreen<'a>
sourcepub const fn description(self, description: &'a str) -> Self
pub const fn description(self, description: &'a str) -> Self
Set the description of the welcome screen.
sourcepub const fn welcome_channels(
self,
welcome_channels: &'a [WelcomeScreenChannel]
) -> Self
pub const fn welcome_channels(
self,
welcome_channels: &'a [WelcomeScreenChannel]
) -> Self
Set the channels linked in the welcome screen, with associated metadata.
sourcepub fn exec(self) -> ResponseFuture<WelcomeScreen> ⓘ
👎Deprecated since 0.14.0: use .await or into_future instead
pub fn exec(self) -> ResponseFuture<WelcomeScreen> ⓘ
.await or into_future insteadExecute the request, returning a future resolving to a Response.
Trait Implementations§
source§impl IntoFuture for UpdateGuildWelcomeScreen<'_>
impl IntoFuture for UpdateGuildWelcomeScreen<'_>
§type Output = Result<Response<WelcomeScreen>, Error>
type Output = Result<Response<WelcomeScreen>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<WelcomeScreen>
type IntoFuture = ResponseFuture<WelcomeScreen>
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