pub enum Intent {
Show 19 variants
Guild = 1,
GuildMembers = 2,
GuildBans = 4,
GuildEmojisAndStickers = 8,
GuildIntegrations = 16,
GuildWebhooks = 32,
GuildInvited = 64,
GuildVoiceStates = 128,
GuildPresences = 256,
GuildMessages = 512,
GuildMessageReactions = 1_024,
GuildMessageTyping = 2_048,
DirectMessages = 4_096,
DirectMessageReactions = 8_192,
DirectMessageTyping = 16_384,
MessageContent = 32_768,
GuildScheduledEvents = 65_536,
AutoModerationConfiguration = 1_048_576,
AutoModerationExecution = 2_097_152,
}Variants§
Guild = 1
GuildMembers = 2
GuildBans = 4
GuildEmojisAndStickers = 8
GuildIntegrations = 16
GuildWebhooks = 32
GuildInvited = 64
GuildVoiceStates = 128
GuildPresences = 256
GuildMessages = 512
GuildMessageReactions = 1_024
GuildMessageTyping = 2_048
DirectMessages = 4_096
DirectMessageReactions = 8_192
DirectMessageTyping = 16_384
MessageContent = 32_768
GuildScheduledEvents = 65_536
AutoModerationConfiguration = 1_048_576
AutoModerationExecution = 2_097_152
Implementations§
Trait Implementations§
impl Copy for Intent
impl Eq for Intent
impl StructuralPartialEq for Intent
Auto Trait Implementations§
impl Freeze for Intent
impl RefUnwindSafe for Intent
impl Send for Intent
impl Sync for Intent
impl Unpin for Intent
impl UnwindSafe for Intent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.