[][src]Struct spectacles_model::guild::CreateGuildOptions

pub struct CreateGuildOptions { /* fields omitted */ }

Options for creating a Discord guild.

Methods

impl CreateGuildOptions[src]

pub fn name(self, name: &str) -> Self[src]

Sets the name that the new guild should have. This field is required.

pub fn voice_region(self, region: &str) -> Self[src]

Sets the voice region name for the new guild.

pub fn icon(self, icon: String) -> Self[src]

Sets the icon URL for the new guild. Must be base64 encoded.

pub fn verification_level(self, lvl: VerificationLevel) -> Self[src]

Sets the verification level for the guild.

pub fn default_message_notifications(
    self,
    notifs: DefaultMessageNotifications
) -> Self
[src]

Sets the default message notifications level for the new guild.

pub fn explicit_content_filter(self, filter: ExplicitContentFilter) -> Self[src]

Sets the explicit content filter for the new guild.

Trait Implementations

impl Clone for CreateGuildOptions[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for CreateGuildOptions[src]

impl Debug for CreateGuildOptions[src]

impl Serialize for CreateGuildOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.