Skip to content

Commit

Permalink
Uncomment GUILD_WEBHOOKS intent
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldRenard committed Nov 14, 2020
1 parent d6b5083 commit 5696f0f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/main/java/net/dv8tion/jda/api/requests/GatewayIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
* <li><b>GUILD_MEMBERS</b> - This is a <b>privileged</b> gateway intent that is used to update user information and join/leaves (including kicks). This is required to cache all members of a guild (including chunking)</li>
* <li><b>GUILD_BANS</b> - This will only track guild bans and unbans</li>
* <li><b>GUILD_EMOJIS</b> - This will only track guild emote create/modify/delete. Most bots don't need this since they just use the emote id anyway.</li>
* <li><b>GUILD_WEBHOOKS</b> - This will only track guild webhook create/update/delete. Most bots don't need this since related events don't contain any useful information about webhook changes.</li>
* <li><b>GUILD_INVITES</b> - This will only track invite create/delete. Most bots don't make use of invites since they are added through OAuth2 authorization by administrators.</li>
* <li><b>GUILD_VOICE_STATES</b> - Required to properly get information of members in voice channels and cache them. <u>You cannot connect to a voice channel without this intent</u>.</li>
* <li><b>GUILD_PRESENCES</b> - This is a <b>privileged</b> gateway intent this is only used to track activity and online-status of a user.</li>
Expand Down Expand Up @@ -98,10 +99,10 @@ public enum GatewayIntent
// * Integration events. (unused)
// */
// GUILD_INTEGRATIONS(4),
// /**
// * Webhook events. (unused)
// */
// GUILD_WEBHOOKS(5),
/**
* Webhook events.
*/
GUILD_WEBHOOKS(5),
/**
* Invite events.
*/
Expand Down Expand Up @@ -157,6 +158,7 @@ public enum GatewayIntent
* <ul>
* <li>GUILD_MEMBERS (because its privileged)</li>
* <li>GUILD_PRESENCES (because its privileged)</li>
* <li>GUILD_WEBHOOKS because its not useful for most bots</li>
* <li>GUILD_MESSAGE_TYPING because its not useful for most bots</li>
* <li>DIRECT_MESSAGE_TYPING because its not useful for most bots</li>
* </ul>
Expand All @@ -166,7 +168,7 @@ public enum GatewayIntent
* You can further configure intents by using {@link net.dv8tion.jda.api.JDABuilder#enableIntents(GatewayIntent, GatewayIntent...) enableIntents(intents)}
* and {@link net.dv8tion.jda.api.JDABuilder#disableIntents(GatewayIntent, GatewayIntent...) disableIntents(intents)}.
*/
public static final int DEFAULT = ALL_INTENTS & ~getRaw(GUILD_MEMBERS, GUILD_PRESENCES, GUILD_MESSAGE_TYPING, DIRECT_MESSAGE_TYPING);
public static final int DEFAULT = ALL_INTENTS & ~getRaw(GUILD_MEMBERS, GUILD_PRESENCES, GUILD_WEBHOOKS, GUILD_MESSAGE_TYPING, DIRECT_MESSAGE_TYPING);

private final int rawValue;
private final int offset;
Expand Down

0 comments on commit 5696f0f

Please sign in to comment.