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