Enum PermissionType
- java.lang.Object
-
- java.lang.Enum<PermissionType>
-
- org.javacord.api.entity.permission.PermissionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PermissionType>
public enum PermissionType extends java.lang.Enum<PermissionType>
This enum contains all types of permissions.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetValue()Gets the value of the permission type.booleanisSet(long l)Checks if the permission is "included" in the given long.longset(long l, boolean set)Sets or unsets the type for the given long.static PermissionTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PermissionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_INSTANT_INVITE
public static final PermissionType CREATE_INSTANT_INVITE
-
KICK_MEMBERS
public static final PermissionType KICK_MEMBERS
-
BAN_MEMBERS
public static final PermissionType BAN_MEMBERS
-
ADMINISTRATOR
public static final PermissionType ADMINISTRATOR
-
MANAGE_CHANNELS
public static final PermissionType MANAGE_CHANNELS
-
MANAGE_SERVER
public static final PermissionType MANAGE_SERVER
-
ADD_REACTIONS
public static final PermissionType ADD_REACTIONS
-
VIEW_AUDIT_LOG
public static final PermissionType VIEW_AUDIT_LOG
-
VIEW_SERVER_INSIGHTS
public static final PermissionType VIEW_SERVER_INSIGHTS
-
VIEW_CHANNEL
public static final PermissionType VIEW_CHANNEL
-
SEND_MESSAGES
public static final PermissionType SEND_MESSAGES
-
SEND_TTS_MESSAGES
public static final PermissionType SEND_TTS_MESSAGES
-
MANAGE_MESSAGES
public static final PermissionType MANAGE_MESSAGES
-
EMBED_LINKS
public static final PermissionType EMBED_LINKS
-
ATTACH_FILE
public static final PermissionType ATTACH_FILE
-
READ_MESSAGE_HISTORY
public static final PermissionType READ_MESSAGE_HISTORY
-
MENTION_EVERYONE
public static final PermissionType MENTION_EVERYONE
-
USE_EXTERNAL_EMOJIS
public static final PermissionType USE_EXTERNAL_EMOJIS
-
USE_EXTERNAL_STICKERS
public static final PermissionType USE_EXTERNAL_STICKERS
-
CONNECT
public static final PermissionType CONNECT
-
SPEAK
public static final PermissionType SPEAK
-
MUTE_MEMBERS
public static final PermissionType MUTE_MEMBERS
-
DEAFEN_MEMBERS
public static final PermissionType DEAFEN_MEMBERS
-
MOVE_MEMBERS
public static final PermissionType MOVE_MEMBERS
-
USE_VOICE_ACTIVITY
public static final PermissionType USE_VOICE_ACTIVITY
-
PRIORITY_SPEAKER
public static final PermissionType PRIORITY_SPEAKER
-
STREAM
public static final PermissionType STREAM
-
REQUEST_TO_SPEAK
public static final PermissionType REQUEST_TO_SPEAK
-
START_EMBEDDED_ACTIVITIES
public static final PermissionType START_EMBEDDED_ACTIVITIES
-
MANAGE_THREADS
public static final PermissionType MANAGE_THREADS
-
CREATE_PUBLIC_THREADS
public static final PermissionType CREATE_PUBLIC_THREADS
-
CREATE_PRIVATE_THREADS
public static final PermissionType CREATE_PRIVATE_THREADS
-
SEND_MESSAGES_IN_THREADS
public static final PermissionType SEND_MESSAGES_IN_THREADS
-
CHANGE_NICKNAME
public static final PermissionType CHANGE_NICKNAME
-
MANAGE_NICKNAMES
public static final PermissionType MANAGE_NICKNAMES
-
MANAGE_ROLES
public static final PermissionType MANAGE_ROLES
-
MANAGE_WEBHOOKS
public static final PermissionType MANAGE_WEBHOOKS
-
MANAGE_EMOJIS
public static final PermissionType MANAGE_EMOJIS
-
USE_APPLICATION_COMMANDS
public static final PermissionType USE_APPLICATION_COMMANDS
-
MODERATE_MEMBERS
public static final PermissionType MODERATE_MEMBERS
-
-
Method Detail
-
values
public static PermissionType[] 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 (PermissionType c : PermissionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionType 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
-
getValue
public long getValue()
Gets the value of the permission type.- Returns:
- The value.
-
isSet
public boolean isSet(long l)
Checks if the permission is "included" in the given long.- Parameters:
l- The long to check.- Returns:
- Whether the permission is "included" or not.
-
set
public long set(long l, boolean set)Sets or unsets the type for the given long.- Parameters:
l- The long to change.set- Whether the type should be set or not.- Returns:
- The changed long.
-
-