Package com.mewna.catnip.shard
Enum Class GatewayIntent
- All Implemented Interfaces:
Serializable
,Comparable<GatewayIntent>
,Constable
A list of "gateway intents" that tell Discord which events you do and don't
want to receive. Events are grouped into intents, which can be thought of as
high-level categories of events. Some intents can be privileged. Privileged
intents can only be set by bots in <=100 guilds; bots will be prevented from
joining more guilds when attempting to use privileged intents unless they
are specifically whitelisted by Discord.
- Since:
- 1/16/20.
- Author:
- amy
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDiscordEvent.TYPING_START
Note that this togglesTYPING_START
events in direct messages only.INVITE_CREATE
INVITE_DELETE
Note that these events are currently undocumented!DiscordEvent.TYPING_START
Note that this togglesTYPING_START
events in guilds only.DiscordEvent.PRESENCE_UPDATE
Note that bots cannot receive presence updates in DMs.
This is a privileged intent.Encapsulates the following events:DiscordEvent.GUILD_CREATE
DiscordEvent.GUILD_UPDATE
DiscordEvent.GUILD_DELETE
DiscordEvent.GUILD_ROLE_CREATE
DiscordEvent.GUILD_ROLE_UPDATE
DiscordEvent.GUILD_ROLE_DELETE
DiscordEvent.CHANNEL_CREATE
DiscordEvent.CHANNEL_UPDATE
DiscordEvent.CHANNEL_DELETE
DiscordEvent.CHANNEL_PINS_UPDATE
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionevents()
static long
from
(Iterable<GatewayIntent> intents) boolean
int
value()
static GatewayIntent
Returns the enum constant of this class with the specified name.static GatewayIntent[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GUILDS
Encapsulates the following events: -
GUILD_MEMBERS
-
GUILD_BANS
-
GUILD_EMOJIS
-
GUILD_INTEGRATIONS
-
GUILD_WEBHOOKS
-
GUILD_INVITES
INVITE_CREATE
INVITE_DELETE
-
GUILD_VOICE_STATES
-
GUILD_PRESENCES
Note that bots cannot receive presence updates in DMs.
This is a privileged intent. -
GUILD_MESSAGES
-
GUILD_MESSAGE_REACTIONS
-
GUILD_MESSAGE_TYPING
Note that this togglesTYPING_START
events in guilds only. -
DIRECT_MESSAGES
-
DIRECT_MESSAGE_REACTIONS
-
DIRECT_MESSAGE_TYPING
Note that this togglesTYPING_START
events in direct messages only.
-
-
Field Details
-
ALL_INTENTS
-
UNPRIVILEGED_INTENTS
-
ALL_INTENT_EVENTS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
from
-
value
public int value() -
privileged
public boolean privileged() -
events
-