All Downloads are FREE. Search and download functionalities are using the official Maven repository.

discord4j.gateway.intent.Intent Maven / Gradle / Ivy

/*
 * This file is part of Discord4J.
 *
 * Discord4J is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Discord4J is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Discord4J. If not, see .
 */

package discord4j.gateway.intent;

/**
 * A group of Discord Gateway events.
 *
 * @see Gateway Intents
 */
public enum Intent {

    /**
     * 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
  • *
  • THREAD_CREATE
  • *
  • THREAD_UPDATE
  • *
  • THREAD_DELETE
  • *
  • THREAD_LIST_SYNC
  • *
  • THREAD_MEMBER_UPDATE
  • *
  • THREAD_MEMBERS_UPDATE
  • *
  • STAGE_INSTANCE_CREATE
  • *
  • STAGE_INSTANCE_UPDATE
  • *
  • STAGE_INSTANCE_DELETE
  • *
*/ GUILDS(0), /** * Events which will be received by subscribing to GUILD_MEMBERS *
    *
  • GUILD_MEMBER_ADD
  • *
  • GUILD_MEMBER_UPDATE
  • *
  • GUILD_MEMBER_REMOVE
  • *
  • THREAD_MEMBERS_UPDATE
  • *
*/ GUILD_MEMBERS(1), /** * Events which will be received by subscribing to GUILD_MODERATION *
    *
  • GUILD_AUDIT_LOG_ENTRY_CREATE
  • *
  • GUILD_BAN_ADD
  • *
  • GUILD_BAN_REMOVE
  • *
*/ GUILD_MODERATION(2), /** * Events which will be received by subscribing to GUILD_BANS *
    *
  • GUILD_BAN_ADD
  • *
  • GUILD_BAN_REMOVE
  • *
* @deprecated deprecated in favor of {@link #GUILD_MODERATION} */ @Deprecated GUILD_BANS(2), /** * Events which will be received by subscribing to GUILD_EMOJIS_AND_STICKERS *
    *
  • GUILD_EMOJIS_UPDATE
  • *
  • GUILD_STICKERS_UPDATE
  • *
*/ GUILD_EMOJIS_AND_STICKERS(3), /** * Events which will be received by subscribing to GUILD_EMOJIS *
    *
  • GUILD_EMOJIS_UPDATE
  • *
  • GUILD_STICKERS_UPDATE
  • *
*/ @Deprecated GUILD_EMOJIS(3), /** * Events which will be received by subscribing to GUILD_INTEGRATIONS *
    *
  • GUILD_INTEGRATIONS_UPDATE
  • *
  • INTEGRATION_CREATE
  • *
  • INTEGRATION_UPDATE
  • *
  • INTEGRATION_DELETE
  • *
*/ GUILD_INTEGRATIONS(4), /** * Events which will be received by subscribing to GUILD_WEBHOOKS *
    *
  • WEBHOOKS_UPDATE
  • *
*/ GUILD_WEBHOOKS(5), /** * Events which will be received by subscribing to GUILD_INVITES *
    *
  • INVITE_CREATE
  • *
  • INVITE_DELETE
  • *
*/ GUILD_INVITES(6), /** * Events which will be received by subscribing to GUILD_VOICE_STATES *
    *
  • VOICE_STATE_UPDATE
  • *
*/ GUILD_VOICE_STATES(7), /** * Events which will be received by subscribing to GUILD_PRESENCES *
    *
  • PRESENCE_UPDATE
  • *
*/ GUILD_PRESENCES(8), /** * Events which will be received by subscribing to GUILD_MESSAGES *
    *
  • MESSAGE_CREATE
  • *
  • MESSAGE_UPDATE
  • *
  • MESSAGE_DELETE
  • *
  • MESSAGE_DELETE_BULK
  • *
*/ GUILD_MESSAGES(9), /** * 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_REACTIONS(10), /** * Events which will be received by subscribing to GUILD_MESSAGE_TYPING *
    *
  • TYPING_START
  • *
*/ GUILD_MESSAGE_TYPING(11), /** * Events which will be received by subscribing to DIRECT_MESSAGES *
    *
  • MESSAGE_CREATE
  • *
  • MESSAGE_UPDATE
  • *
  • MESSAGE_DELETE
  • *
  • CHANNEL_PINS_UPDATE
  • *
*/ DIRECT_MESSAGES(12), /** * 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_REACTIONS(13), /** * Events which will be received by subscribing to DIRECT_MESSAGE_TYPING *
    *
  • TYPING_START
  • *
*/ DIRECT_MESSAGE_TYPING(14), /** * MESSAGE_CONTENT does not represent individual events, but rather affects what data is present for * events that could contain message content fields. * * @see Message Content Intent */ MESSAGE_CONTENT(15), /** * Events which will be received by subscribing to GUILD_SCHEDULED_EVENTS *
    *
  • GUILD_SCHEDULED_EVENT_CREATE
  • *
  • GUILD_SCHEDULED_EVENT_UPDATE
  • *
  • GUILD_SCHEDULED_EVENT_DELETE
  • *
  • GUILD_SCHEDULED_EVENT_USER_ADD
  • *
  • GUILD_SCHEDULED_EVENT_USER_REMOVE
  • *
*/ GUILD_SCHEDULED_EVENTS(16), /** * Events which will be received by subscribing to AUTO_MODERATION_CONFIGURATION *
    *
  • AUTO_MODERATION_RULE_CREATE
  • *
  • AUTO_MODERATION_RULE_UPDATE
  • *
  • AUTO_MODERATION_RULE_DELETE
  • *
*/ AUTO_MODERATION_CONFIGURATION(20), /** * Events which will be received by subscribing to AUTO_MODERATION_EXECUTION *
    *
  • AUTO_MODERATION_ACTION_EXECUTION
  • *
*/ AUTO_MODERATION_EXECUTION(21); private final int value; Intent(final int shiftCount) { this.value = 1 << shiftCount; } public int getValue() { return value; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy