Package com.mewna.catnip.entity.util
Enum Class Permission
- All Implemented Interfaces:
Serializable
,Comparable<Permission>
,Constable
- Since:
- 9/2/18
- Author:
- Julia Rogers
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.Deprecated. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
channel()
static long
from
(Permission... permissions) static long
from
(Iterable<Permission> permissions) boolean
isPresent
(long permissions) permName()
static Set<Permission>
toSet
(long asLong) long
value()
static Permission
Returns the enum constant of this class with the specified name.static Permission[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE_INSTANT_INVITE
-
KICK_MEMBERS
-
BAN_MEMBERS
-
ADMINISTRATOR
-
MANAGE_CHANNELS
-
MANAGE_GUILD
-
ADD_REACTIONS
-
VIEW_AUDIT_LOG
-
PRIORITY_SPEAKER
-
STREAM
-
VIEW_CHANNEL
-
SEND_MESSAGES
-
SEND_TTS_MESSAGES
-
MANAGE_MESSAGES
-
EMBED_LINKS
-
ATTACH_FILES
-
READ_MESSAGE_HISTORY
-
MENTION_EVERYONE
-
USE_EXTERNAL_EMOJIS
-
VIEW_GUILD_INSIGHTS
-
CONNECT
-
SPEAK
-
MUTE_MEMBERS
-
DEAFEN_MEMBERS
-
MOVE_MEMBERS
-
USE_VAD
-
CHANGE_NICKNAME
-
MANAGE_NICKNAMES
-
MANAGE_ROLES
-
MANAGE_WEBHOOKS
-
MANAGE_EMOJIS_AND_STICKERS
-
USE_APPLICATION_COMMANDS
-
REQUEST_TO_SPEAK
-
MANAGE_EVENTS
-
MANAGE_THREADS
-
USE_PUBLIC_THREADS
Deprecated.Replaced byCREATE_PUBLIC_THREADS
. See https://github.com/discord/discord-api-docs/pull/3672 -
USE_PRIVATE_THREADS
Deprecated.Replaced byCREATE_PRIVATE_THREADS
. See https://github.com/discord/discord-api-docs/pull/3672 -
CREATE_PUBLIC_THREADS
-
CREATE_PRIVATE_THREADS
-
USE_EXTERNAL_STICKERS
-
SEND_MESSAGES_IN_THREADS
-
START_EMBEDDED_ACTIVITIES
-
-
Field Details
-
ALL
public static final long ALL -
NONE
public static final long NONE- See Also:
-
-
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
-
toSet
-
from
-
from
-
isPresent
public boolean isPresent(long permissions) -
value
public long value() -
channel
public boolean channel() -
permName
-