-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathPermissions.cs
250 lines (201 loc) · 6.82 KB
/
Permissions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
namespace NetCord;
[Flags]
public enum Permissions : ulong
{
/// <summary>
/// Allows creation of instant invites.
/// </summary>
CreateInstantInvite = 1uL << 0,
/// <summary>
/// Allows kicking guild users.
/// </summary>
KickUsers = 1uL << 1,
/// <summary>
/// Allows banning guild users.
/// </summary>
BanUsers = 1uL << 2,
/// <summary>
/// Allows all permissions and bypasses channel permission overwrites.
/// </summary>
Administrator = 1uL << 3,
/// <summary>
/// Allows management and editing of channels.
/// </summary>
ManageChannels = 1uL << 4,
/// <summary>
/// Allows management and editing of the guild.
/// </summary>
ManageGuild = 1uL << 5,
/// <summary>
/// Allows for the addition of reactions to messages.
/// </summary>
AddReactions = 1uL << 6,
/// <summary>
/// Allows for viewing of audit logs.
/// </summary>
ViewAuditLog = 1uL << 7,
/// <summary>
/// Allows for using priority speaker in a voice channel.
/// </summary>
PrioritySpeaker = 1uL << 8,
/// <summary>
/// Allows the user to go live.
/// </summary>
Stream = 1uL << 9,
/// <summary>
/// Allows guild users to view a channel, which includes reading messages in text channels and joining voice channels.
/// </summary>
ViewChannel = 1uL << 10,
/// <summary>
/// Allows for sending messages in a channel and creating threads in a forum (does not allow sending messages in threads).
/// </summary>
SendMessages = 1uL << 11,
/// <summary>
/// Allows for sending of /tts messages.
/// </summary>
SendTtsMessages = 1uL << 12,
/// <summary>
/// Allows for deletion of other users messages.
/// </summary>
ManageMessages = 1uL << 13,
/// <summary>
/// Links sent by users with this permission will be auto-embedded.
/// </summary>
EmbedLinks = 1uL << 14,
/// <summary>
/// Allows for uploading images and files.
/// </summary>
AttachFiles = 1uL << 15,
/// <summary>
/// Allows for reading of message history.
/// </summary>
ReadMessageHistory = 1uL << 16,
/// <summary>
/// Allows for using the <see langword="@everyone"/> tag to notify all users in a channel, and the <see langword="@here"/> tag to notify all online users in a channel.
/// </summary>
MentionEveryone = 1uL << 17,
/// <summary>
/// Allows the usage of custom emojis from other servers.
/// </summary>
UseExternalEmojis = 1uL << 18,
/// <summary>
/// Allows for viewing guild insights.
/// </summary>
ViewGuildInsights = 1uL << 19,
/// <summary>
/// Allows for joining of a voice channel.
/// </summary>
Connect = 1uL << 20,
/// <summary>
/// Allows for speaking in a voice channel.
/// </summary>
Speak = 1uL << 21,
/// <summary>
/// Allows for muting users in a voice channel.
/// </summary>
MuteUsers = 1uL << 22,
/// <summary>
/// Allows for deafening of users in a voice channel.
/// </summary>
DeafenUsers = 1uL << 23,
/// <summary>
/// Allows for moving of users between voice channels.
/// </summary>
MoveUsers = 1uL << 24,
/// <summary>
/// Allows for using voice-activity-detection in a voice channel.
/// </summary>
UseVoiceActivityDetection = 1uL << 25,
/// <summary>
/// Allows for modification of own nickname.
/// </summary>
ChangeNickname = 1uL << 26,
/// <summary>
/// Allows for modification of other users nicknames.
/// </summary>
ManageNicknames = 1uL << 27,
/// <summary>
/// Allows management and editing of roles.
/// </summary>
ManageRoles = 1uL << 28,
/// <summary>
/// Allows management and editing of webhooks.
/// </summary>
ManageWebhooks = 1uL << 29,
/// <summary>
/// Allows for editing and deleting emojis, stickers, and soundboard sounds created by all users.
/// </summary>
ManageGuildExpressions = 1uL << 30,
/// <summary>
/// Allows users to use application commands, including slash commands and context menu commands.
/// </summary>
UseApplicationCommands = 1uL << 31,
/// <summary>
/// Allows for requesting to speak in stage channels.
/// </summary>
RequestToSpeak = 1uL << 32,
/// <summary>
/// Allows for creating, editing and deleting scheduled events created by all users.
/// </summary>
ManageEvents = 1uL << 33,
/// <summary>
/// Allows for deleting and archiving threads, and viewing all private threads.
/// </summary>
ManageThreads = 1uL << 34,
/// <summary>
/// Allows for creating public and announcement threads.
/// </summary>
CreatePublicThreads = 1uL << 35,
/// <summary>
/// Allows for creating private threads.
/// </summary>
CreatePrivateThreads = 1uL << 36,
/// <summary>
/// Allows the usage of custom stickers from other servers.
/// </summary>
UseExternalStickers = 1uL << 37,
/// <summary>
/// Allows for sending messages in threads.
/// </summary>
SendMessagesInThreads = 1uL << 38,
/// <summary>
/// Allows for using Activities (applications with the <see cref="ApplicationFlags.Embedded"/> flag) in a voice channel.
/// </summary>
StartEmbeddedActivities = 1uL << 39,
/// <summary>
/// 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.
/// </summary>
ModerateUsers = 1uL << 40,
/// <summary>
/// Allows for viewing role subscription insights.
/// </summary>
ViewCreatorMonetizationAnalytics = 1uL << 41,
/// <summary>
/// Allows for using soundboard in a voice channel.
/// </summary>
UseSoundboard = 1uL << 42,
/// <summary>
/// Allows for creating emojis, stickers, and soundboard sounds, and editing and deleting those created by the current user.
/// </summary>
CreateGuildExpressions = 1uL << 43,
/// <summary>
/// Allows for creating scheduled events, and editing and deleting those created by the current user.
/// </summary>
CreateEvents = 1uL << 44,
/// <summary>
/// Allows the usage of custom soundboard sounds from other servers.
/// </summary>
UseExternalSounds = 1uL << 45,
/// <summary>
/// Allows sending voice messages.
/// </summary>
SendVoiceMessages = 1uL << 46,
/// <summary>
/// Allows sending polls.
/// </summary>
SendPolls = 1uL << 49,
/// <summary>
/// Allows user-installed apps to send public responses. When disabled, users will still be allowed to use their apps but the responses will be ephemeral. This only applies to apps not also installed to the server.
/// </summary>
UseExternalApplications = 1uL << 50,
}