pub struct ModifyGuildOptions { /* private fields */ }Expand description
A body that can be sent to the Modify Guild endpoint.
Implementations§
Source§impl ModifyGuildOptions
impl ModifyGuildOptions
Sourcepub fn verification_level(self, level: VerificationLevel) -> Self
pub fn verification_level(self, level: VerificationLevel) -> Self
Sets a new verification level for this guild.
Sourcepub fn default_message_notifications(
self,
level: DefaultMessageNotifications,
) -> Self
pub fn default_message_notifications( self, level: DefaultMessageNotifications, ) -> Self
Sets the default message notifications level for this guild.
Sourcepub fn explicit_content_filter(self, filter: ExplicitContentFilter) -> Self
pub fn explicit_content_filter(self, filter: ExplicitContentFilter) -> Self
Sets the explicit content filter for this guild.
Sourcepub fn afk_channel(self, id: Snowflake) -> Self
pub fn afk_channel(self, id: Snowflake) -> Self
Sets the AFK channel for this guild.
Sourcepub fn afk_timeout(self, timeout: i32) -> Self
pub fn afk_timeout(self, timeout: i32) -> Self
Sets the AFK timeout for this guild.
Sourcepub fn system_channel(self, chan: Snowflake) -> Self
pub fn system_channel(self, chan: Snowflake) -> Self
Sets the system channel of this guild.
Trait Implementations§
Source§impl Clone for ModifyGuildOptions
impl Clone for ModifyGuildOptions
Source§fn clone(&self) -> ModifyGuildOptions
fn clone(&self) -> ModifyGuildOptions
Returns a duplicate 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 Debug for ModifyGuildOptions
impl Debug for ModifyGuildOptions
Source§impl<'de> Deserialize<'de> for ModifyGuildOptions
impl<'de> Deserialize<'de> for ModifyGuildOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModifyGuildOptions
impl RefUnwindSafe for ModifyGuildOptions
impl Send for ModifyGuildOptions
impl Sync for ModifyGuildOptions
impl Unpin for ModifyGuildOptions
impl UnwindSafe for ModifyGuildOptions
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