pub struct CreateGuildOptions { /* private fields */ }Expand description
Options for creating a Discord guild.
Implementations§
Source§impl CreateGuildOptions
impl CreateGuildOptions
Sourcepub fn name(self, name: &str) -> Self
pub fn name(self, name: &str) -> Self
Sets the name that the new guild should have. This field is required.
Sourcepub fn voice_region(self, region: &str) -> Self
pub fn voice_region(self, region: &str) -> Self
Sets the voice region name for the new guild.
Sourcepub fn icon(self, icon: String) -> Self
pub fn icon(self, icon: String) -> Self
Sets the icon URL for the new guild. Must be base64 encoded.
Sourcepub fn verification_level(self, lvl: VerificationLevel) -> Self
pub fn verification_level(self, lvl: VerificationLevel) -> Self
Sets the verification level for the guild.
Sourcepub fn default_message_notifications(
self,
notifs: DefaultMessageNotifications,
) -> Self
pub fn default_message_notifications( self, notifs: DefaultMessageNotifications, ) -> Self
Sets the default message notifications level for the new 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 the new guild.
Trait Implementations§
Source§impl Clone for CreateGuildOptions
impl Clone for CreateGuildOptions
Source§fn clone(&self) -> CreateGuildOptions
fn clone(&self) -> CreateGuildOptions
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 CreateGuildOptions
impl Debug for CreateGuildOptions
Source§impl Default for CreateGuildOptions
impl Default for CreateGuildOptions
Source§fn default() -> CreateGuildOptions
fn default() -> CreateGuildOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateGuildOptions
impl RefUnwindSafe for CreateGuildOptions
impl Send for CreateGuildOptions
impl Sync for CreateGuildOptions
impl Unpin for CreateGuildOptions
impl UnwindSafe for CreateGuildOptions
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