Enum Permissions

java.lang.Object
java.lang.Enum<Permissions>
com.github.mafelp.utils.Permissions
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Permissions>, java.lang.constant.Constable

public enum Permissions
extends java.lang.Enum<Permissions>
Permissions stored in the configuration with (levels and) wildcards for specific users.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    configEdit
    The permission to edit the configuration file
    discordBotAdmin
    The permission to perform commands with the bot, e.
    discordServerAdmin
    The permission to perform commands on teh discord servers.
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private Permissions()  
  • Method Summary

    Modifier and Type Method Description
    static Permissions valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static Permissions[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • configEdit

      public static final Permissions configEdit
      The permission to edit the configuration file
    • discordServerAdmin

      public static final Permissions discordServerAdmin
      The permission to perform commands on teh discord servers.
    • discordBotAdmin

      public static final Permissions discordBotAdmin
      The permission to perform commands with the bot, e. g. inviting.
  • Constructor Details

    • Permissions

      private Permissions()
  • Method Details

    • values

      public static Permissions[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Permissions 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 name
      java.lang.NullPointerException - if the argument is null