Skip to main content
Module

x/denord/mod.ts>Permission

🗣 Discord API module
Latest
enum Permission
Re-export
import { Permission } from "https://deno.land/x/denord@0.1.0/mod.ts";

Members

ADD_REACTIONS = 64

Allows for the addition of reactions to messages (channel types: T)

ADMINISTRATOR = 8

Allows all permissions and bypasses channel permission overwrites (require two-factor auth)

ATTACH_FILES = 32768

Allows for uploading images and files (channel types: T)

BAN_MEMBERS = 4

Allows banning members (require two-factor auth)

CHANGE_NICKNAME = 67108864

Allows for modification of own nickname

CONNECT = 1048576

Allows for joining of a voice channel (channel types: V)

CREATE_INSTANT_INVITE = 1

Allows creation of instant invites (channel types: T, V)

DEAFEN_MEMBERS = 8388608

Allows for deafening of members in a voice channel (channel types: V)

KICK_MEMBERS = 2

Allows kicking members (require two-factor auth)

MANAGE_CHANNELS = 16

Allows management and editing of channels (require two-factor auth) (channel types: T, V)

MANAGE_EMOJIS = 1073741824

Allows management and editing of emojis (require two-factor auth)

MANAGE_GUILD = 32

Allows management and editing of the guild (require two-factor auth)

MANAGE_MESSAGES = 8192

Allows for deletion of other users messages (require two-factor auth) (channel types: T)

MANAGE_NICKNAMES = 134217728

Allows for modification of other users nicknames

MANAGE_ROLES = 268435456

Allows management and editing of roles (require two-factor auth) (channel types: T, V)

MANAGE_WEBHOOKS = 536870912

Allows management and editing of webhooks (require two-factor auth) (channel types: T, V)

MENTION_EVERYONE = 131072

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 (channel types: T)

MOVE_MEMBERS = 16777216

Allows for moving of members between voice channels (channel types: V)

MUTE_MEMBERS = 4194304

Allows for muting members in a voice channel (channel types: V)

PRIORITY_SPEAKER = 256

Allows for using priority speaker in a voice channel (channel types: V)

READ_MESSAGE_HISTORY = 65536

Allows for reading of message history (channel types: T)

SEND_MESSAGES = 2048

Allows for sending messages in a channel (channel types: T)

SEND_TTS_MESSAGES = 4096

Allows for sending of /tts messages (channel types: T)

SPEAK = 2097152

Allows for speaking in a voice channel (channel types: V)

STREAM = 512

Allows the user to go live (channel types: V)

USE_EXTERNAL_EMOJIS = 262144

Allows the usage of custom emojis from other servers (channel types: T)

USE_VAD = 33554432

Allows for using voice-activity-detection in a voice channel (channel types: V)

VIEW_AUDIT_LOG = 128

Allows for viewing of audit logs

VIEW_CHANNEL = 1024

Allows guild members to view a channel, which includes reading messages in text channels (channel types: T, V)

VIEW_GUILD_INSIGHTS = 524288

Allows for viewing guild insights

Members

ADD_REACTIONS = 64

Allows for the addition of reactions to messages (channel types: T)

ADMINISTRATOR = 8

Allows all permissions and bypasses channel permission overwrites (require two-factor auth)

ATTACH_FILES = 32768

Allows for uploading images and files (channel types: T)

BAN_MEMBERS = 4

Allows banning members (require two-factor auth)

CHANGE_NICKNAME = 67108864

Allows for modification of own nickname

CONNECT = 1048576

Allows for joining of a voice channel (channel types: V)

CREATE_INSTANT_INVITE = 1

Allows creation of instant invites (channel types: T, V)

DEAFEN_MEMBERS = 8388608

Allows for deafening of members in a voice channel (channel types: V)

KICK_MEMBERS = 2

Allows kicking members (require two-factor auth)

MANAGE_CHANNELS = 16

Allows management and editing of channels (require two-factor auth) (channel types: T, V)

MANAGE_EMOJIS = 1073741824

Allows management and editing of emojis (require two-factor auth)

MANAGE_GUILD = 32

Allows management and editing of the guild (require two-factor auth)

MANAGE_MESSAGES = 8192

Allows for deletion of other users messages (require two-factor auth) (channel types: T)

MANAGE_NICKNAMES = 134217728

Allows for modification of other users nicknames

MANAGE_ROLES = 268435456

Allows management and editing of roles (require two-factor auth) (channel types: T, V)

MANAGE_WEBHOOKS = 536870912

Allows management and editing of webhooks (require two-factor auth) (channel types: T, V)

MENTION_EVERYONE = 131072

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 (channel types: T)

MOVE_MEMBERS = 16777216

Allows for moving of members between voice channels (channel types: V)

MUTE_MEMBERS = 4194304

Allows for muting members in a voice channel (channel types: V)

PRIORITY_SPEAKER = 256

Allows for using priority speaker in a voice channel (channel types: V)

READ_MESSAGE_HISTORY = 65536

Allows for reading of message history (channel types: T)

SEND_MESSAGES = 2048

Allows for sending messages in a channel (channel types: T)

SEND_TTS_MESSAGES = 4096

Allows for sending of /tts messages (channel types: T)

SPEAK = 2097152

Allows for speaking in a voice channel (channel types: V)

STREAM = 512

Allows the user to go live (channel types: V)

USE_EXTERNAL_EMOJIS = 262144

Allows the usage of custom emojis from other servers (channel types: T)

USE_VAD = 33554432

Allows for using voice-activity-detection in a voice channel (channel types: V)

VIEW_AUDIT_LOG = 128

Allows for viewing of audit logs

VIEW_CHANNEL = 1024

Allows guild members to view a channel, which includes reading messages in text channels (channel types: T, V)

VIEW_GUILD_INSIGHTS = 524288

Allows for viewing guild insights