#include <Intents.h>
|
void | add (unsigned int intent) |
| Enable an intent.
|
|
void | remove (unsigned int intent) |
| Disable an intent.
|
|
unsigned int | getIntents () |
| Get Intents as integer.
|
|
◆ add()
void Intents::add |
( |
unsigned int | intent | ) |
|
◆ Default()
Creates an Intents object with all non-privileged intents the library can handle.
- Returns
- Intents intents used when connecting to the gateway.
◆ getIntents()
unsigned int Intents::getIntents |
( |
| ) |
|
◆ remove()
void Intents::remove |
( |
unsigned int | intent | ) |
|
◆ BANS
const unsigned int Intents::BANS = 1 << 2 |
|
static |
Intent for Guild Member relevant events. This affects the following events:
- on_user_ban
- on_user_unban
◆ DIRECT_MESSAGES
const unsigned int Intents::DIRECT_MESSAGES = 1 << 12 |
|
static |
Intent for Direct Message relevant events. This affects the following events:
◆ DIRECT_REACTIONS
const unsigned int Intents::DIRECT_REACTIONS = 1 << 13 |
|
static |
Intent for Direct Message Reaction relevant events. This affects nothing as reactions are not yet implemented.
◆ DIRECT_TYPING
const unsigned int Intents::DIRECT_TYPING = 1 << 14 |
|
static |
Intent for Direct Message Typing relevant events. This affects the following events:
◆ EMOJIS
const unsigned int Intents::EMOJIS = 1 << 3 |
|
static |
Intent for Guild Emoji relevant events. This affects nothing as emojis are not yet implemented.
◆ GUILD_SCHEDULED_EVENTS
const unsigned int Intents::GUILD_SCHEDULED_EVENTS = 1 << 16 |
|
static |
Intent related to scheduled guild events. Not implemented yet.
◆ GUILDS
const unsigned int Intents::GUILDS = 1 << 0 |
|
static |
Intent for Guild relevant events. This affects the internal guild cache
◆ INTEGRATIONS
const unsigned int Intents::INTEGRATIONS = 1 << 4 |
|
static |
Intent for Guild Integration relevant events. This affects nothing as integrations are not yet implemented.
◆ INVITES
const unsigned int Intents::INVITES = 1 << 6 |
|
static |
Intent for Guild Invite relevant events. This affects nothing as invites are not yet implemented.
◆ MEMBERS
const unsigned int Intents::MEMBERS = 1 << 1 |
|
static |
Intent for Guild Member relevant events. This is a privileged intent! This affects the following events:
- on_user_join
- on_user_remove
◆ MESSAGE_CONTENT
const unsigned int Intents::MESSAGE_CONTENT = 1 << 15 |
|
static |
Intent for receiving message content. You must specify this starting with API v10 in order to receive any message content. This is also a privileged intent! This affects the following events:
◆ MESSAGES
const unsigned int Intents::MESSAGES = 1 << 9 |
|
static |
Intent for Guild Message events. This affects the following events:
◆ PRESENCES
const unsigned int Intents::PRESENCES = 1 << 8 |
|
static |
Intent for Guild Presence relevant events. This is a privileged intent! This affects nothing as presences are not yet implemented.
◆ REACTIONS
const unsigned int Intents::REACTIONS = 1 << 10 |
|
static |
Intent for Guild Reaction relevant events. This affects nothing as reactions are not yet implemented.
◆ TYPING
const unsigned int Intents::TYPING = 1 << 11 |
|
static |
Intent for Guild Typing relevant events. This affects the following events:
◆ VOICE_STATES
const unsigned int Intents::VOICE_STATES = 1 << 7 |
|
static |
Intent for Guild relevant events. This affects the internal voice handling.
◆ WEBHOOKS
const unsigned int Intents::WEBHOOKS = 1 << 5 |
|
static |
Intent for Guild Webhook relevant events. This affects nothing as webhooks are not yet implemented.
The documentation for this class was generated from the following files: