You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/permissions.go
+41-41Lines changed: 41 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -21,47 +21,47 @@ import (
21
21
)
22
22
23
23
const (
24
-
CreateInstantInviteint64=1<<0
25
-
KickMembersint64=1<<1
26
-
BanMembersint64=1<<2
27
-
Administratorint64=1<<3
28
-
ManageChannelsint64=1<<4
29
-
ManageGuildint64=1<<5
30
-
AddReactionsint64=1<<6
31
-
ViewAuditLogsint64=1<<7
32
-
PrioritySpeakerint64=1<<8
33
-
Streamint64=1<<9
34
-
ViewChannelint64=1<<10
35
-
SendMessagesint64=1<<11// Does not allow for sending messages in Threads
36
-
SendTtsMessagesint64=1<<12
37
-
ManageMessagesint64=1<<13
38
-
EmbedLinksint64=1<<14
39
-
AttachFilesint64=1<<15
40
-
ReadMessageHistoryint64=1<<16
41
-
MentionEveryoneint64=1<<17
42
-
UseExternalEmojisint64=1<<18
43
-
ViewGuildInsightsint64=1<<19
44
-
Connectint64=1<<20
45
-
Speakint64=1<<21
46
-
MuteMembersint64=1<<22
47
-
DeafenMembersint64=1<<23
48
-
MoveMembersint64=1<<24
49
-
UseVoiceActivityint64=1<<25
50
-
ChangeNicknameint64=1<<26
51
-
ManageNicknamesint64=1<<27
52
-
ManageRolesint64=1<<28
53
-
ManageWebhooksint64=1<<29
54
-
ManageEmojisint64=1<<30
55
-
UseSlashCommandsint64=1<<31
56
-
RequestToSpeakint64=1<<32
57
-
_int64=1<<33
58
-
ManageThreadsint64=1<<34
59
-
CreatePublicThreadsint64=1<<35
60
-
CreatePrivateThreadsint64=1<<36
61
-
UseExternalStickersint64=1<<37
62
-
SendMessagesInThreadsint64=1<<38
63
-
StartEmbeddedActivitiesint64=1<<39
64
-
ModerateMembersint64=1<<40
24
+
CreateInstantInviteint64=1<<0// CreateInstantInvite - Allows creation of instant invites
25
+
KickMembersint64=1<<1// KickMembers - Allows kicking members
26
+
BanMembersint64=1<<2// BanMembers - Allows banning members
27
+
Administratorint64=1<<3// Administrator - Allows all permissions and bypasses channel permission overwrites
28
+
ManageChannelsint64=1<<4// ManageChannels - Allows management and editing of channels
29
+
ManageGuildint64=1<<5// ManageGuild - Allows management and editing of the guild
30
+
AddReactionsint64=1<<6// AddReactions - Allows for the addition of reactions to messages
31
+
ViewAuditLogint64=1<<7// ViewAuditLog - Allows for viewing of audit logs
32
+
PrioritySpeakerint64=1<<8// PrioritySpeaker - Allows for using priority speaker in a voice channel
33
+
Streamint64=1<<9// Stream - Allows the user to go live
34
+
ViewChannelint64=1<<10// ViewChannel - Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels
35
+
SendMessagesint64=1<<11// SendMessages - Allows for sending messages in a channel (does not allow sending messages in threads)
36
+
SendTtsMessagesint64=1<<12// SendTtsMessages - Allows for sending of /tts messages
37
+
ManageMessagesint64=1<<13// ManageMessages - Allows for deletion of other users messages
38
+
EmbedLinksint64=1<<14// EmbedLinks - Links sent by users with this permission will be auto-embedded
39
+
AttachFilesint64=1<<15// AttachFiles - Allows for uploading images and files
40
+
ReadMessageHistoryint64=1<<16// ReadMessageHistory - Allows for reading of message history
41
+
MentionEveryoneint64=1<<17// MentionEveryone - 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
42
+
UseExternalEmojisint64=1<<18// UseExternalEmojis - Allows the usage of custom emojis from other servers
43
+
ViewGuildInsightsint64=1<<19// ViewGuildInsights - Allows for viewing guild insights
44
+
Connectint64=1<<20// Connect - Allows for joining of a voice channel
45
+
Speakint64=1<<21// Speak - Allows for speaking in a voice channel
46
+
MuteMembersint64=1<<22// MuteMembers - Allows for muting members in a voice channel
47
+
DeafenMembersint64=1<<23// DeafenMembers - Allows for deafening of members in a voice channel
48
+
MoveMembersint64=1<<24// MoveMembers - Allows for moving of members between voice channels
49
+
UseVoiceActivityint64=1<<25// UseVoiceActivity - Allows for using voice-activity-detection in a voice channel
50
+
ChangeNicknameint64=1<<26// ChangeNickname - Allows for modification of own nickname
51
+
ManageNicknamesint64=1<<27// ManageNicknames - Allows for modification of other users nicknames
52
+
ManageRolesint64=1<<28// ManageRoles - Allows management and editing of roles
53
+
ManageWebhooksint64=1<<29// ManageWebhooks - Allows management and editing of webhooks
54
+
ManageEmojisAndStickersint64=1<<30// ManageEmojisAndStickers - Allows management and editing of emojis and stickers
55
+
UseApplicationCommandsint64=1<<31// UseApplicationCommands - Allows members to use application commands, including slash commands and context menu commands.
56
+
RequestToSpeakint64=1<<32// RequestToSpeak - Allows for requesting to speak in stage channels. (This permission is under active development and may be changed or removed.)
57
+
ManageEventsint64=1<<33// ManageEvents - Allows for creating, editing, and deleting scheduled events
58
+
ManageThreadsint64=1<<34// ManageThreads - Allows for deleting and archiving threads, and viewing all private threads
59
+
CreatePublicThreadsint64=1<<35// CreatePublicThreads - Allows for creating public and announcement threads
60
+
CreatePrivateThreadsint64=1<<36// CreatePrivateThreads - Allows for creating private threads
61
+
UseExternalStickersint64=1<<37// UseExternalStickers - Allows the usage of custom stickers from other servers
62
+
SendMessagesInThreadsint64=1<<38// SendMessagesInThreads - Allows for sending messages in threads
63
+
StartEmbeddedActivitiesint64=1<<39// StartEmbeddedActivities - Allows for launching activities (applications with the EMBEDDED flag) in a voice channel
64
+
ModerateMembersint64=1<<40// ModerateMembers - Allows for timing out users to prevent them from sending or reacting to messages in chat and threads, and from speaking in voice and stage channels
0 commit comments