discord_gleam/discord/intents
Types
Our currently implemented intents, see https://discord.com/developers/docs/events/gateway#gateway-intents
NOTE: We are still to implement all intents, this is a work in progress.
pub type Intents {
Intents(
guild_messages: Bool,
message_content: Bool,
direct_messages: Bool,
guilds: Bool,
guild_moderation: Bool,
)
}
Constructors
-
Intents( guild_messages: Bool, message_content: Bool, direct_messages: Bool, guilds: Bool, guild_moderation: Bool, )
Functions
pub fn all() -> Intents
Enable all the intents, use this if you want to receive all supported events.
pub fn default() -> Intents
Enable a set of default intents, which are usually used by most bots.
pub fn intents_to_bitfield(intents: Intents) -> Int
Calculate a bitfield from a set of intents.