Enum Class ApplicationInfo.Flag
- All Implemented Interfaces:
Serializable, Comparable<ApplicationInfo.Flag>, Constable
- Enclosing interface:
ApplicationInfo
Flag constants corresponding to the Discord Enum
- Author:
- Aljoscha Grebe
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates if an app is embedded within the Discord client (currently unavailable publicly)Bot can useGatewayIntent.GUILD_MEMBERSin 100 or more guildsBot can useGatewayIntent.GUILD_MEMBERSin under 100 guildsBot can useGatewayIntent.MESSAGE_CONTENTin 100 or more guildsBot can useGatewayIntent.MESSAGE_CONTENTin under 100 guildsBot can useGatewayIntent.GUILD_PRESENCESin 100 or more guildsBot can useGatewayIntent.GUILD_PRESENCESin under 100 guildsIndicates unusual growth of an app that prevents verification -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSet<ApplicationInfo.Flag> fromRaw(long raw) Converts the provided bitset to the corresponding enum constants.static ApplicationInfo.FlagReturns the enum constant of this class with the specified name.static ApplicationInfo.Flag[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
GATEWAY_PRESENCE
Bot can useGatewayIntent.GUILD_PRESENCESin 100 or more guilds -
GATEWAY_PRESENCE_LIMITED
Bot can useGatewayIntent.GUILD_PRESENCESin under 100 guilds -
GATEWAY_GUILD_MEMBERS
Bot can useGatewayIntent.GUILD_MEMBERSin 100 or more guilds -
GATEWAY_GUILD_MEMBERS_LIMITED
Bot can useGatewayIntent.GUILD_MEMBERSin under 100 guilds -
VERIFICATION_PENDING_GUILD_LIMIT
Indicates unusual growth of an app that prevents verification -
EMBEDDED
Indicates if an app is embedded within the Discord client (currently unavailable publicly) -
GATEWAY_MESSAGE_CONTENT
Bot can useGatewayIntent.MESSAGE_CONTENTin 100 or more guilds -
GATEWAY_MESSAGE_CONTENT_LIMITED
Bot can useGatewayIntent.MESSAGE_CONTENTin under 100 guilds
-
-
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
-
fromRaw
Converts the provided bitset to the corresponding enum constants.- Parameters:
raw- The bitset of flags- Returns:
EnumSetofApplicationInfo.Flag
-