[][src]Enum automate::Intent

pub enum Intent {
    Guilds,
    GuildMembers,
    GuildBans,
    GuildEmojis,
    GuildIntegrations,
    GuildWebhooks,
    GuildInvites,
    GuildVoiceStates,
    GuildPresences,
    GuildMessages,
    GuildMessageReactions,
    GuildMessageTyping,
    DirectMessages,
    DirectMessageReactions,
    DirectMessageTyping,
}

System to help define which events discord will send to your bot. An intent is a single or a group of event types.

Variants

Guilds
GuildMembers

Subscribe to the following events:

GuildBans

Subscribe to the following events:

GuildEmojis

Subscribe to the GuildEmojisUpdate event.

GuildIntegrations

Subscribe to the GuildIntegrationsUpdate event.

GuildWebhooks

Subscribe to the WebhooksUpdate event.

GuildInvites

Subscribe to the following events:

GuildVoiceStates

Subscribe to the VoiceStateUpdate event.

GuildPresences

Subscribe to the PresenceUpdate event.

GuildMessages

Subscribe to the following events:

GuildMessageReactions
GuildMessageTyping

Subscribe to the TypingStart event.

DirectMessages
DirectMessageReactions
DirectMessageTyping

Subscribe to the TypingStart event.

Trait Implementations

impl BitOr<Intent> for Intent[src]

type Output = u32

The resulting type after applying the | operator.

impl BitOr<u32> for Intent[src]

type Output = u32

The resulting type after applying the | operator.

impl Clone for Intent[src]

impl Copy for Intent[src]

impl Debug for Intent[src]

impl<'de> Deserialize<'de> for Intent[src]

impl Serialize for Intent[src]

Auto Trait Implementations

impl RefUnwindSafe for Intent

impl Send for Intent

impl Sync for Intent

impl Unpin for Intent

impl UnwindSafe for Intent

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,