pub struct EditGuildWelcomeScreen<'a> { /* private fields */ }
Expand description
A builder to edit the welcome screen of a guild
Implementations§
Source§impl<'a> EditGuildWelcomeScreen<'a>
impl<'a> EditGuildWelcomeScreen<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Equivalent to Self::default
.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
The server description shown in the welcome screen.
pub fn add_welcome_channel(self, channel: CreateGuildWelcomeChannel) -> Self
Sourcepub fn set_welcome_channels(
self,
channels: Vec<CreateGuildWelcomeChannel>,
) -> Self
pub fn set_welcome_channels( self, channels: Vec<CreateGuildWelcomeChannel>, ) -> Self
Channels linked in the welcome screen and their display options
Sourcepub fn audit_log_reason(self, reason: &'a str) -> Self
pub fn audit_log_reason(self, reason: &'a str) -> Self
Sets the request’s audit log reason.
Trait Implementations§
Source§impl Builder for EditGuildWelcomeScreen<'_>
impl Builder for EditGuildWelcomeScreen<'_>
Source§fn execute<'life0, 'async_trait>(
self,
cache_http: impl 'async_trait + CacheHttp,
ctx: Self::Context<'life0>,
) -> Pin<Box<dyn Future<Output = Result<Self::Built>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
cache_http: impl 'async_trait + CacheHttp,
ctx: Self::Context<'life0>,
) -> Pin<Box<dyn Future<Output = Result<Self::Built>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Edits the guild’s welcome screen.
Note: Requires the Manage Guild permission.
§Errors
Returns Error::Http
if the current user lacks permission.
Source§type Context<'ctx> = GuildId
type Context<'ctx> = GuildId
Additional data that’s only required when sending a request off to the API.
type Built = GuildWelcomeScreen
Source§impl<'a> Clone for EditGuildWelcomeScreen<'a>
impl<'a> Clone for EditGuildWelcomeScreen<'a>
Source§fn clone(&self) -> EditGuildWelcomeScreen<'a>
fn clone(&self) -> EditGuildWelcomeScreen<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for EditGuildWelcomeScreen<'a>
impl<'a> Debug for EditGuildWelcomeScreen<'a>
Source§impl<'a> Default for EditGuildWelcomeScreen<'a>
impl<'a> Default for EditGuildWelcomeScreen<'a>
Source§fn default() -> EditGuildWelcomeScreen<'a>
fn default() -> EditGuildWelcomeScreen<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for EditGuildWelcomeScreen<'a>
impl<'a> RefUnwindSafe for EditGuildWelcomeScreen<'a>
impl<'a> Send for EditGuildWelcomeScreen<'a>
impl<'a> Sync for EditGuildWelcomeScreen<'a>
impl<'a> Unpin for EditGuildWelcomeScreen<'a>
impl<'a> UnwindSafe for EditGuildWelcomeScreen<'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