public enum Permission extends Enum<Permission>
Enum Constant and Description |
---|
ADD_REACTIONS
Allows for the addition of reactions to messages.
|
ADMINISTRATOR
Allows all permissions and bypasses channel permission overwrites.
|
ATTACH_FILES
Allows for uploading images and files.
|
BAN_MEMBERS
Allows banning members.
|
CHANGE_NICKNAME
Allows for modification of own nickname.
|
CONNECT
Allows for joining of a voice channel.
|
CREATE_INSTANT_INVITE
Allows creation of instant invites.
|
DEAFEN_MEMBERS
Allows for deafening of members in a voice channel.
|
EMBED_LINKS
Links sent by users with this permission will be auto-embedded.
|
KICK_MEMBERS
Allows kicking members.
|
MANAGE_CHANNELS
Allows management and editing of channels.
|
MANAGE_EMOJIS
Allows management and editing of emojis.
|
MANAGE_GUILD
Allows management and editing of the guild.
|
MANAGE_MESSAGES
Allows for deletion of other users messages.
|
MANAGE_NICKNAMES
Allows for modification of other users nicknames.
|
MANAGE_ROLES
Allows management and editing of roles.
|
MANAGE_WEBHOOKS
Allows management and editing of webhooks.
|
MENTION_EVERYONE
Allows for using the @everyone tag to notify all users in a channel, and the @here tag to notify all online users
in a channel.
|
MOVE_MEMBERS
Allows for moving of members between voice channels.
|
MUTE_MEMBERS
Allows for muting members in a voice channel.
|
PRIORITY_SPEAKER
Allows for using priority speaker in a voice channel.
|
READ_MESSAGE_HISTORY
Allows for reading of message history.
|
SEND_MESSAGES
Allows for sending messages in a channel.
|
SEND_TTS_MESSAGES
Allows for sending of /tts messages.
|
SPEAK
Allows for speaking in a voice channel.
|
USE_EXTERNAL_EMOJIS
Allows the usage of custom emojis from other servers.
|
USE_VAD
Allows for using voice-activity-detection in a voice channel.
|
VIEW_AUDIT_LOG
Allows for viewing of audit logs.
|
VIEW_CHANNEL
Allows guild members to view a channel, which includes reading messages in text channels.
|
Modifier and Type | Method and Description |
---|---|
long |
getValue()
Gets the permission's value.
|
boolean |
requiresMfa()
Gets whether the permission requires the owner account to use multi-factor authentication when used on a guild
that has server-side MFA enabled.
|
static Permission |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Permission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Permission CREATE_INSTANT_INVITE
public static final Permission KICK_MEMBERS
public static final Permission BAN_MEMBERS
public static final Permission ADMINISTRATOR
public static final Permission MANAGE_CHANNELS
public static final Permission MANAGE_GUILD
public static final Permission ADD_REACTIONS
public static final Permission VIEW_AUDIT_LOG
public static final Permission PRIORITY_SPEAKER
public static final Permission VIEW_CHANNEL
public static final Permission SEND_MESSAGES
public static final Permission SEND_TTS_MESSAGES
public static final Permission MANAGE_MESSAGES
public static final Permission EMBED_LINKS
public static final Permission ATTACH_FILES
public static final Permission READ_MESSAGE_HISTORY
public static final Permission MENTION_EVERYONE
public static final Permission USE_EXTERNAL_EMOJIS
public static final Permission CONNECT
public static final Permission SPEAK
public static final Permission MUTE_MEMBERS
public static final Permission DEAFEN_MEMBERS
public static final Permission MOVE_MEMBERS
public static final Permission USE_VAD
public static final Permission CHANGE_NICKNAME
public static final Permission MANAGE_NICKNAMES
public static final Permission MANAGE_ROLES
public static final Permission MANAGE_WEBHOOKS
public static final Permission MANAGE_EMOJIS
public static Permission[] values()
for (Permission c : Permission.values()) System.out.println(c);
public static Permission 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 boolean requiresMfa()
true
when the permission requires the owner account to use multi-factor authentication when used
on a guild that has server-side MFA enabled, false
otherwise.public long getValue()