Class IntentContext

java.lang.Object
com.dianxin.tori.api.utils.quicksetup.IntentContext

public final class IntentContext extends Object
A utility class providing quick access to predefined sets of GatewayIntents. This is useful for quickly configuring the JDA builder during bot startup.
  • Method Details

    • getAllIntents

      @NotNull public static @NotNull EnumSet<net.dv8tion.jda.api.requests.GatewayIntent> getAllIntents()
      Retrieves an EnumSet containing every available GatewayIntent.

      Warning: Using all intents requires enabling Privileged Gateway Intents (Presence, Server Members, and Message Content) in your Discord Developer Portal.

      Returns:
      An EnumSet of all intents.
    • getDefaultIntents

      @NotNull public static @NotNull EnumSet<net.dv8tion.jda.api.requests.GatewayIntent> getDefaultIntents()
      Retrieves a standard, commonly used set of default GatewayIntents.

      This set includes most standard intents along with necessary privileged intents like GUILD_MEMBERS and MESSAGE_CONTENT. Ensure these are enabled in your Discord Developer Portal.

      Returns:
      An EnumSet containing default intents.