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.
Trait Implementations§
source§impl IntoFuture for UpdateGuildWelcomeScreen<'_>
impl IntoFuture for UpdateGuildWelcomeScreen<'_>
source§type Output = Result<Response<WelcomeScreen>, Error>
type Output = Result<Response<WelcomeScreen>, Error>
The output that the future will produce on completion.
source§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
source§impl TryIntoRequest for UpdateGuildWelcomeScreen<'_>
impl TryIntoRequest for UpdateGuildWelcomeScreen<'_>
Auto Trait Implementations§
impl<'a> Freeze for UpdateGuildWelcomeScreen<'a>
impl<'a> !RefUnwindSafe for UpdateGuildWelcomeScreen<'a>
impl<'a> Send for UpdateGuildWelcomeScreen<'a>
impl<'a> Sync for UpdateGuildWelcomeScreen<'a>
impl<'a> Unpin for UpdateGuildWelcomeScreen<'a>
impl<'a> !UnwindSafe for UpdateGuildWelcomeScreen<'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