Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway Intents #1307

Merged
merged 15 commits into from
Feb 14, 2020
Prev Previous commit
Next Next commit
<<< to <<
  • Loading branch information
msciotti committed Jan 16, 2020
commit fe22feac6445e3aafee30d5de5245b084b71f991
32 changes: 16 additions & 16 deletions docs/topics/Gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ When [identifying](#DOCS_TOPICS_GATEWAY/identifying) to the gateway, you can spe
### List of Intents

```
GUILDS (1 <<< 0)
GUILDS (1 << 0)
- GUILD_CREATE
- GUILD_DELETE
- GUILD_ROLE_CREATE
Expand All @@ -200,61 +200,61 @@ GUILDS (1 <<< 0)
- CHANNEL_DELETE
- CHANNEL_PINS_UPDATE

GUILD MEMBERS (1 <<< 1)
GUILD MEMBERS (1 << 1)
msciotti marked this conversation as resolved.
Show resolved Hide resolved
- GUILD_MEMBER_ADD
- GUILD_MEMBER_UPDATE
- GUILD_MEMBER_REMOVE

GUILD_BANS (1 <<< 2)
GUILD_BANS (1 << 2)
- GUILD_BAN_ADD
- GUILD_BAN_REMOVE

GUILD_EMOJIS (1 <<< 3)
GUILD_EMOJIS (1 << 3)
- GUILD_EMOJIS_UPDATE

GUILD_INTEGRATIONS (1 <<< 4)
GUILD_INTEGRATIONS (1 << 4)
- GUILD_INTEGRATIONS_UPDATE

GUILD_WEBHOOKS (1 <<< 5)
GUILD_WEBHOOKS (1 << 5)
- WEBHOOKS_UPDATE

GUILD_INVITES (1 <<< 6)
GUILD_INVITES (1 << 6)
- INVITE_CREATE
- INVITE_DELETE
msciotti marked this conversation as resolved.
Show resolved Hide resolved

GUILD_VOICE_STATES (1 <<< 7)
GUILD_VOICE_STATES (1 << 7)
- VOICE_STATE_UPDATE

GUILD_PRESENCES (1 <<< 8)
GUILD_PRESENCES (1 << 8)
- PRESENCE_UPDATE
msciotti marked this conversation as resolved.
Show resolved Hide resolved

GUILD_MESSAGES (1 <<< 9)
GUILD_MESSAGES (1 << 9)
- MESSAGE_CREATE
- MESSAGE_UPDATE
- MESSAGE_DELETE

GUILD_MESSAGE_REACTIONS (1 <<< 10)
GUILD_MESSAGE_REACTIONS (1 << 10)
- MESSAGE_REACTION_ADD
- MESSAGE_REACTION_REMOVE
- MESSAGE_REACTION_REMOVE_ALL
- MESSAGE_REACTION_REMOVE_EMOJI
msciotti marked this conversation as resolved.
Show resolved Hide resolved

GUILD_MESSAGE_TYPING (1 <<< 11)
GUILD_MESSAGE_TYPING (1 << 11)
- TYPING_START

DIRECT_MESSAGES (1 <<< 12)
DIRECT_MESSAGES (1 << 12)
- CHANNEL_CREATE
- MESSAGE_CREATE
- MESSAGE_UPDATE
- MESSAGE_DELETE

DIRECT_MESSAGE_REACTIONS (1 <<< 13)
DIRECT_MESSAGE_REACTIONS (1 << 13)
- MESSAGE_REACTION_ADD
- MESSAGE_REACTION_REMOVE
- MESSAGE_REACTION_REMOVE_ALL
- MESSAGE_REACTION_REMOVE_EMOJI

DIRECT_MESSAGE_TYPING (1 <<< 14)
DIRECT_MESSAGE_TYPING (1 << 14)
- TYPING_START
```

Expand Down Expand Up @@ -436,7 +436,7 @@ Used to trigger the initial handshake with the gateway.
"since": 91879201,
"afk": false
},
// This intent represents 1 <<< 0 for GUILDS, 1 <<< 1 for GUILD_MEMBERS, and 1 <<< 2 for GUILD_BANS
// This intent represents 1 << 0 for GUILDS, 1 << 1 for GUILD_MEMBERS, and 1 << 2 for GUILD_BANS
// This connection will only receive the events defined in those three intents
"intents": 7
}
Expand Down