public enum Permissions extends Enum<Permissions> implements HasCode<Permissions>
| Modifier and Type | Class and Description |
|---|---|
static class |
Permissions.PermissionsDeserializer |
| Enum Constant and Description |
|---|
ALL |
CHANNEL_ADMIN |
SYSTEM_ADMIN |
TEAM_ADMIN |
| Modifier and Type | Method and Description |
|---|---|
static Permissions |
of(String code) |
static Permissions |
valueOf(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.
|
public static final Permissions ALL
public static final Permissions CHANNEL_ADMIN
public static final Permissions TEAM_ADMIN
public static final Permissions SYSTEM_ADMIN
public static Permissions[] values()
for (Permissions c : Permissions.values()) System.out.println(c);
public static Permissions valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Permissions of(String code)
Copyright © 2019. All rights reserved.