Package org.javacord.api
Enum BotInviteScope
- java.lang.Object
-
- java.lang.Enum<BotInviteScope>
-
- org.javacord.api.BotInviteScope
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BotInviteScope>
public enum BotInviteScope extends java.lang.Enum<BotInviteScope>
An enum for the Invite Scope that is used for building bot invite links.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetScope()Gets the query parameter value for this scope.static BotInviteScopevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BotInviteScope[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDENTIFY
public static final BotInviteScope IDENTIFY
-
EMAIL
public static final BotInviteScope EMAIL
-
CONNECTIONS
public static final BotInviteScope CONNECTIONS
-
GUILDS
public static final BotInviteScope GUILDS
-
GUILDS_JOIN
public static final BotInviteScope GUILDS_JOIN
-
GUILDS_MEMBERS_READ
public static final BotInviteScope GUILDS_MEMBERS_READ
-
GDM_JOIN
public static final BotInviteScope GDM_JOIN
-
RPC
public static final BotInviteScope RPC
-
RPC_NOTIFICATIONS_READ
public static final BotInviteScope RPC_NOTIFICATIONS_READ
-
RPC_VOICE_READ
public static final BotInviteScope RPC_VOICE_READ
-
RPC_VOICE_WRITE
public static final BotInviteScope RPC_VOICE_WRITE
-
RPC_ACTIVITIES_WRITE
public static final BotInviteScope RPC_ACTIVITIES_WRITE
-
BOT
public static final BotInviteScope BOT
-
WEBHOOK_INCOMING
public static final BotInviteScope WEBHOOK_INCOMING
-
MESSAGES_READ
public static final BotInviteScope MESSAGES_READ
-
APPLICATIONS_BUILDS_UPLOAD
public static final BotInviteScope APPLICATIONS_BUILDS_UPLOAD
-
APPLICATIONS_BUILDS_READ
public static final BotInviteScope APPLICATIONS_BUILDS_READ
-
APPLICATIONS_COMMANDS
public static final BotInviteScope APPLICATIONS_COMMANDS
-
APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE
public static final BotInviteScope APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE
-
APPLICATIONS_STORE_UPDATE
public static final BotInviteScope APPLICATIONS_STORE_UPDATE
-
APPLICATIONS_ENTITLEMENTS
public static final BotInviteScope APPLICATIONS_ENTITLEMENTS
-
ACTIVITIES_READ
public static final BotInviteScope ACTIVITIES_READ
-
ACTIVITIES_WRITE
public static final BotInviteScope ACTIVITIES_WRITE
-
RELATIONSHIPS_READ
public static final BotInviteScope RELATIONSHIPS_READ
-
-
Method Detail
-
values
public static BotInviteScope[] 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 (BotInviteScope c : BotInviteScope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BotInviteScope valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getScope
public java.lang.String getScope()
Gets the query parameter value for this scope.- Returns:
- The parameter for the query value of this scope.
-
-