Discord.C++ 0.13.0
Loading...
Searching...
No Matches
Intents Class Reference

#include <Intents.h>

Public Member Functions

void add (unsigned int intent)
 Enable an intent.
 
void remove (unsigned int intent)
 Disable an intent.
 
unsigned int getIntents ()
 Get Intents as integer.
 

Static Public Member Functions

static Intents Default ()
 

Static Public Attributes

static const unsigned int GUILDS = 1 << 0
 
static const unsigned int MEMBERS = 1 << 1
 
static const unsigned int BANS = 1 << 2
 
static const unsigned int EMOJIS = 1 << 3
 
static const unsigned int INTEGRATIONS = 1 << 4
 
static const unsigned int WEBHOOKS = 1 << 5
 
static const unsigned int INVITES = 1 << 6
 
static const unsigned int VOICE_STATES = 1 << 7
 
static const unsigned int PRESENCES = 1 << 8
 
static const unsigned int MESSAGES = 1 << 9
 
static const unsigned int REACTIONS = 1 << 10
 
static const unsigned int TYPING = 1 << 11
 
static const unsigned int DIRECT_MESSAGES = 1 << 12
 
static const unsigned int DIRECT_REACTIONS = 1 << 13
 
static const unsigned int DIRECT_TYPING = 1 << 14
 
static const unsigned int MESSAGE_CONTENT = 1 << 15
 
static const unsigned int GUILD_SCHEDULED_EVENTS = 1 << 16
 

Member Function Documentation

◆ add()

void Intents::add ( unsigned int intent)

Enable an intent.

◆ Default()

Intents Intents::Default ( )
static

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 ( )

Get Intents as integer.

◆ remove()

void Intents::remove ( unsigned int intent)

Disable an intent.

Member Data Documentation

◆ 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:

  • on_message

◆ 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:

  • on_typing_start

◆ 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:

  • on_message

◆ MESSAGES

const unsigned int Intents::MESSAGES = 1 << 9
static

Intent for Guild Message events. This affects the following events:

  • on_message

◆ 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:

  • on_typing_start

◆ 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: