-
Notifications
You must be signed in to change notification settings - Fork 237
Permissions
SQKo edited this page Apr 15, 2023
·
1 revision
There are two types of permissions - channel permissions and role permissions. They are represented by their individual classes, but both extend the same abstract permission class.
name | type | description |
---|---|---|
bitwise | int | bitwise representation |
create_instant_invite | bool | |
manage_channels | bool | |
view_channel | bool | |
manage_roles | bool |
The rest of the properties are listed under each permission type, all are type of bool
.
Returns a list of valid permissions, in key value form. Static method.
var_dump(ChannelPermission::getPermissions());
// [
// 'priority_speaker' => 8,
// // ...
// ]
Represents permissions for text, voice, and stage instance channels.
create_instant_invite
manage_channels
view_channel
manage_roles
add_reactions
send_messages
send_tts_messages
manage_messages
embed_links
attach_files
read_message_history
mention_everyone
use_external_emojis
manage_webhooks
use_application_commands
manage_threads
create_public_threads
create_private_threads
use_external_stickers
send_messages_in_threads
create_instant_invite
manage_channels
view_channel
manage_roles
priority_speaker
stream
connect
speak
mute_members
deafen_members
move_members
use_vad
manage_events
-
use_embedded_activities
wasstart_embedded_activities
create_instant_invite
manage_channels
view_channel
manage_roles
connect
mute_members
deafen_members
move_members
request_to_speak
manage_events
Represents permissions for roles.
create_instant_invite
manage_channels
view_channel
manage_roles
kick_members
ban_members
administrator
manage_guild
view_audit_log
view_guild_insights
change_nickname
manage_nicknames
manage_emojis_and_stickers
moderate_members
Note: This wiki is currently Work In Progress. Consider reading the docs instead.
- Application Command (Slash based)
Command Client (Message based)
- Activity
- Application
- Guild
- Private Channel
- User
Components
-
ActionRow
- Buttons
- Option (commands)
- SelectMenu
- TextInput
Builders