Permissions¶
The permissions of any thing in piscord
List of permissions¶
- CREATE_INSTANT_INVITE:
- Permission to create instant invites for guild
- KICK_MEMBERS:
- Permission to kick members from the guild
- BAN_MEMBERS:
- Permission to ban members from the guild
- ADMINISTRATOR:
- Admin permission of the guild
- MANAGE_CHANNELS:
- Permission to modify channels of the guild
- MANAGE_GUILD:
- Permission to modify guild
- ADD_REACTIONS:
- Permission to add reaction on a message (if the reaction isn’t already here)
- VIEW_AUDIT_LOG:
- Permission to see the guild log
- PRIORITY_SPEAKER:
- Permission to speak on a priority basis in guild
- STREAM:
- Permission to stream in guild voice channel
- VIEW_CHANNEL:
- Permission to view channels in guild
- SEND_MESSAGES:
- Permission to send messages in channel
- SEND_TTS_MESSAGES:
- Permission to send tts messages in channel
- MANAGE_MESSAGES:
- Permission to delete messages of other members
- EMBED_LINKS:
- Permission to auto-embed links
- ATTACH_FILES:
- Permission to send files (images, files..)
- READ_MESSAGE_HISTORY:
- Permission to read previous messages
- MENTION_EVERYONE:
- Permission to mention @everyone or @here
- USE_EXTERNAL_EMOJIS:
- Permission to send emoji from other guilds
- VIEW_GUILD_INSIGHTS:
- Permission to view guild insights
- CONNECT:
- Permission to connect to voice channels
- SPEAK:
- Permission to speak in voice channels
- MUTE_MEMBERS:
- Permission to mute members (can’t speak)
- DEAFEN_MEMBERS:
- Permission to deaf members (can’t hear)
- MOVE_MEMBERS:
- Permission to move members between voice channels
- USE_VAD:
- Permission to use voice-activity-detection
- CHANGE_NICKNAME:
- Permission to change self nickname
- MANAGE_NICKNAMES:
- Permission to change nickname of other members
- MANAGE_ROLES:
- Permission to create/edit roles
- MANAGE_WEBHOOKS:
- Permission to create/edit webhooks
- MANAGE_EMOJIS:
- Permission to create/edit emojis
Use Permission¶
You can use permission to do operations.
- You can verify permission
if role.permissions == Permission.ADMINISTRATOR:
...
- You can add a permission
role.permissions += Permission.CHANGE_NICKNAME
role.edit(permissions = role.permissions)
# ---------------
perm = channel.permission_overwrites
perm.edit(deny = perm.deny + Permission.SEND_MESSAGES)
- You can remove a permission
role.permissions -= Permission.CHANGE_NICKNAME
role.edit(permissions = role.permissions)
# ---------------
perm = channel.permission_overwrites
perm.edit(deny = perm.deny - Permission.SEND_MESSAGES)