Package com.github.mafelp.utils
Enum Class Permissions
- All Implemented Interfaces:
Serializable
,Comparable<Permissions>
,Constable
Permissions stored in the configuration with (levels and) wildcards for specific users.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe permission to edit and remove accounts from the command line.The permission to edit the configuration fileThe permission to perform commands with the bot, e.The permission to perform commands on teh discord servers. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Permissions
Returns the enum constant of this class with the specified name.static Permissions[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
configEdit
The permission to edit the configuration file -
accountEdit
The permission to edit and remove accounts from the command line. -
discordServerAdmin
The permission to perform commands on teh discord servers. -
discordBotAdmin
The permission to perform commands with the bot, e. g. inviting.
-
-
Constructor Details
-
Permissions
private Permissions()
-
-
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
-