Package discord4j.gateway.intent
Enum Intent
- java.lang.Object
-
- java.lang.Enum<Intent>
-
- discord4j.gateway.intent.Intent
-
- All Implemented Interfaces:
Serializable
,Comparable<Intent>
public enum Intent extends Enum<Intent>
A group of Discord Gateway events.- See Also:
- Gateway Intents
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIRECT_MESSAGE_REACTIONS
Events which will be received by subscribing to DIRECT_MESSAGE_REACTIONS MESSAGE_REACTION_ADD MESSAGE_REACTION_REMOVE MESSAGE_REACTION_REMOVE_ALL MESSAGE_REACTION_REMOVE_EMOJIDIRECT_MESSAGE_TYPING
Events which will be received by subscribing to DIRECT_MESSAGE_TYPING TYPING_STARTDIRECT_MESSAGES
Events which will be received by subscribing to DIRECT_MESSAGES MESSAGE_CREATE MESSAGE_UPDATE MESSAGE_DELETE CHANNEL_PINS_UPDATEGUILD_BANS
Events which will be received by subscribing to GUILD_BANS GUILD_BAN_ADD GUILD_BAN_REMOVEGUILD_EMOJIS
Events which will be received by subscribing to GUILD_EMOJIS GUILD_EMOJIS_UPDATEGUILD_INTEGRATIONS
Events which will be received by subscribing to GUILD_INTEGRATIONS GUILD_INTEGRATIONS_UPDATEGUILD_INVITES
Events which will be received by subscribing to GUILD_INVITES INVITE_CREATE INVITE_DELETEGUILD_MEMBERS
Events which will be received by subscribing to GUILD_MEMBERS GUILD_MEMBER_ADD GUILD_MEMBER_UPDATE GUILD_MEMBER_REMOVEGUILD_MESSAGE_REACTIONS
Events which will be received by subscribing to GUILD_MESSAGE_REACTIONS MESSAGE_REACTION_ADD MESSAGE_REACTION_REMOVE MESSAGE_REACTION_REMOVE_ALL MESSAGE_REACTION_REMOVE_EMOJIGUILD_MESSAGE_TYPING
Events which will be received by subscribing to GUILD_MESSAGE_TYPING TYPING_STARTGUILD_MESSAGES
Events which will be received by subscribing to GUILD_MESSAGES MESSAGE_CREATE MESSAGE_UPDATE MESSAGE_DELETE MESSAGE_DELETE_BULKGUILD_PRESENCES
Events which will be received by subscribing to GUILD_PRESENCES PRESENCE_UPDATEGUILD_VOICE_STATES
Events which will be received by subscribing to GUILD_VOICE_STATES VOICE_STATE_UPDATEGUILD_WEBHOOKS
Events which will be received by subscribing to GUILD_WEBHOOKS WEBHOOKS_UPDATEGUILDS
Events which will be received by subscribing to GUILDS GUILD_CREATE GUILD_UPDATE GUILD_DELETE GUILD_ROLE_CREATE GUILD_ROLE_UPDATE GUILD_ROLE_DELETE CHANNEL_CREATE CHANNEL_UPDATE CHANNEL_DELETE CHANNEL_PINS_UPDATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static Intent
valueOf(String name)
Returns the enum constant of this type with the specified name.static Intent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GUILDS
public static final Intent GUILDS
Events which will be received by subscribing to GUILDS- GUILD_CREATE
- GUILD_UPDATE
- GUILD_DELETE
- GUILD_ROLE_CREATE
- GUILD_ROLE_UPDATE
- GUILD_ROLE_DELETE
- CHANNEL_CREATE
- CHANNEL_UPDATE
- CHANNEL_DELETE
- CHANNEL_PINS_UPDATE
-
GUILD_MEMBERS
public static final Intent GUILD_MEMBERS
Events which will be received by subscribing to GUILD_MEMBERS- GUILD_MEMBER_ADD
- GUILD_MEMBER_UPDATE
- GUILD_MEMBER_REMOVE
-
GUILD_BANS
public static final Intent GUILD_BANS
Events which will be received by subscribing to GUILD_BANS- GUILD_BAN_ADD
- GUILD_BAN_REMOVE
-
GUILD_EMOJIS
public static final Intent GUILD_EMOJIS
Events which will be received by subscribing to GUILD_EMOJIS- GUILD_EMOJIS_UPDATE
-
GUILD_INTEGRATIONS
public static final Intent GUILD_INTEGRATIONS
Events which will be received by subscribing to GUILD_INTEGRATIONS- GUILD_INTEGRATIONS_UPDATE
-
GUILD_WEBHOOKS
public static final Intent GUILD_WEBHOOKS
Events which will be received by subscribing to GUILD_WEBHOOKS- WEBHOOKS_UPDATE
-
GUILD_INVITES
public static final Intent GUILD_INVITES
Events which will be received by subscribing to GUILD_INVITES- INVITE_CREATE
- INVITE_DELETE
-
GUILD_VOICE_STATES
public static final Intent GUILD_VOICE_STATES
Events which will be received by subscribing to GUILD_VOICE_STATES- VOICE_STATE_UPDATE
-
GUILD_PRESENCES
public static final Intent GUILD_PRESENCES
Events which will be received by subscribing to GUILD_PRESENCES- PRESENCE_UPDATE
-
GUILD_MESSAGES
public static final Intent GUILD_MESSAGES
Events which will be received by subscribing to GUILD_MESSAGES- MESSAGE_CREATE
- MESSAGE_UPDATE
- MESSAGE_DELETE
- MESSAGE_DELETE_BULK
-
GUILD_MESSAGE_REACTIONS
public static final Intent GUILD_MESSAGE_REACTIONS
Events which will be received by subscribing to GUILD_MESSAGE_REACTIONS- MESSAGE_REACTION_ADD
- MESSAGE_REACTION_REMOVE
- MESSAGE_REACTION_REMOVE_ALL
- MESSAGE_REACTION_REMOVE_EMOJI
-
GUILD_MESSAGE_TYPING
public static final Intent GUILD_MESSAGE_TYPING
Events which will be received by subscribing to GUILD_MESSAGE_TYPING- TYPING_START
-
DIRECT_MESSAGES
public static final Intent DIRECT_MESSAGES
Events which will be received by subscribing to DIRECT_MESSAGES- MESSAGE_CREATE
- MESSAGE_UPDATE
- MESSAGE_DELETE
- CHANNEL_PINS_UPDATE
-
DIRECT_MESSAGE_REACTIONS
public static final Intent DIRECT_MESSAGE_REACTIONS
Events which will be received by subscribing to DIRECT_MESSAGE_REACTIONS- MESSAGE_REACTION_ADD
- MESSAGE_REACTION_REMOVE
- MESSAGE_REACTION_REMOVE_ALL
- MESSAGE_REACTION_REMOVE_EMOJI
-
DIRECT_MESSAGE_TYPING
public static final Intent DIRECT_MESSAGE_TYPING
Events which will be received by subscribing to DIRECT_MESSAGE_TYPING- TYPING_START
-
-
Method Detail
-
values
public static Intent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Intent c : Intent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Intent valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
-
-