public static enum PermissionOverwrite.Type extends Enum<PermissionOverwrite.Type>
PermissionOverwrite
is for.Enum Constant and Description |
---|
MEMBER
The
Member entity. |
ROLE
The
Role entity. |
Modifier and Type | Method and Description |
---|---|
String |
getValue()
Gets the underlying value as represented by Discord.
|
static PermissionOverwrite.Type |
of(String value)
Gets the type of permission overwrite.
|
static PermissionOverwrite.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PermissionOverwrite.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PermissionOverwrite.Type ROLE
Role
entity.public static final PermissionOverwrite.Type MEMBER
Member
entity.public static PermissionOverwrite.Type[] values()
for (PermissionOverwrite.Type c : PermissionOverwrite.Type.values()) System.out.println(c);
public static PermissionOverwrite.Type 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 String getValue()
public static PermissionOverwrite.Type of(String value)
getValue()
from the returned
enum will equal (Enum.equals(Object)
) the supplied value
.value
- The underlying value as represented by Discord.