dfx 0.21.3 → 0.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/types.js CHANGED
@@ -1,12 +1,3 @@
1
- export var ActionType;
2
- (function (ActionType) {
3
- /** blocks the content of a message according to the rule */
4
- ActionType[ActionType["BLOCK_MESSAGE"] = 1] = "BLOCK_MESSAGE";
5
- /** logs user content to a specified channel */
6
- ActionType[ActionType["SEND_ALERT_MESSAGE"] = 2] = "SEND_ALERT_MESSAGE";
7
- /** timeout user for a specified duration * */
8
- ActionType[ActionType["TIMEOUT"] = 3] = "TIMEOUT";
9
- })(ActionType || (ActionType = {}));
10
1
  export const ActivityFlag = {
11
2
  INSTANCE: 1 << 0,
12
3
  JOIN: 1 << 1,
@@ -18,53 +9,6 @@ export const ActivityFlag = {
18
9
  PARTY_PRIVACY_VOICE_CHANNEL: 1 << 7,
19
10
  EMBEDDED: 1 << 8,
20
11
  };
21
- export var ActivityType;
22
- (function (ActivityType) {
23
- ActivityType[ActivityType["GAME"] = 0] = "GAME";
24
- ActivityType[ActivityType["STREAMING"] = 1] = "STREAMING";
25
- ActivityType[ActivityType["LISTENING"] = 2] = "LISTENING";
26
- ActivityType[ActivityType["WATCHING"] = 3] = "WATCHING";
27
- ActivityType[ActivityType["CUSTOM"] = 4] = "CUSTOM";
28
- ActivityType[ActivityType["COMPETING"] = 5] = "COMPETING";
29
- })(ActivityType || (ActivityType = {}));
30
- export var AllowedMentionType;
31
- (function (AllowedMentionType) {
32
- /** Controls role mentions */
33
- AllowedMentionType["ROLE_MENTIONS"] = "roles";
34
- /** Controls user mentions */
35
- AllowedMentionType["USER_MENTIONS"] = "users";
36
- /** Controls @everyone and @here mentions */
37
- AllowedMentionType["EVERYONE_MENTIONS"] = "everyone";
38
- })(AllowedMentionType || (AllowedMentionType = {}));
39
- export var ApplicationCommandOptionType;
40
- (function (ApplicationCommandOptionType) {
41
- ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND"] = 1] = "SUB_COMMAND";
42
- ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND_GROUP"] = 2] = "SUB_COMMAND_GROUP";
43
- ApplicationCommandOptionType[ApplicationCommandOptionType["STRING"] = 3] = "STRING";
44
- ApplicationCommandOptionType[ApplicationCommandOptionType["INTEGER"] = 4] = "INTEGER";
45
- ApplicationCommandOptionType[ApplicationCommandOptionType["BOOLEAN"] = 5] = "BOOLEAN";
46
- ApplicationCommandOptionType[ApplicationCommandOptionType["USER"] = 6] = "USER";
47
- ApplicationCommandOptionType[ApplicationCommandOptionType["CHANNEL"] = 7] = "CHANNEL";
48
- ApplicationCommandOptionType[ApplicationCommandOptionType["ROLE"] = 8] = "ROLE";
49
- ApplicationCommandOptionType[ApplicationCommandOptionType["MENTIONABLE"] = 9] = "MENTIONABLE";
50
- ApplicationCommandOptionType[ApplicationCommandOptionType["NUMBER"] = 10] = "NUMBER";
51
- ApplicationCommandOptionType[ApplicationCommandOptionType["ATTACHMENT"] = 11] = "ATTACHMENT";
52
- })(ApplicationCommandOptionType || (ApplicationCommandOptionType = {}));
53
- export var ApplicationCommandPermissionType;
54
- (function (ApplicationCommandPermissionType) {
55
- ApplicationCommandPermissionType[ApplicationCommandPermissionType["ROLE"] = 1] = "ROLE";
56
- ApplicationCommandPermissionType[ApplicationCommandPermissionType["USER"] = 2] = "USER";
57
- ApplicationCommandPermissionType[ApplicationCommandPermissionType["CHANNEL"] = 3] = "CHANNEL";
58
- })(ApplicationCommandPermissionType || (ApplicationCommandPermissionType = {}));
59
- export var ApplicationCommandType;
60
- (function (ApplicationCommandType) {
61
- /** Slash commands; a text-based command that shows up when a user types / */
62
- ApplicationCommandType[ApplicationCommandType["CHAT_INPUT"] = 1] = "CHAT_INPUT";
63
- /** A UI-based command that shows up when you right click or tap on a user */
64
- ApplicationCommandType[ApplicationCommandType["USER"] = 2] = "USER";
65
- /** A UI-based command that shows up when you right click or tap on a message */
66
- ApplicationCommandType[ApplicationCommandType["MESSAGE"] = 3] = "MESSAGE";
67
- })(ApplicationCommandType || (ApplicationCommandType = {}));
68
12
  export const ApplicationFlag = {
69
13
  /** Intent required for bots in 100 or more servers to receive presence_update events */
70
14
  GATEWAY_PRESENCE: 1 << 12,
@@ -85,177 +29,12 @@ export const ApplicationFlag = {
85
29
  /** Indicates if an app has registered global application commands */
86
30
  APPLICATION_COMMAND_BADGE: 1 << 23,
87
31
  };
88
- export var AuditLogEvent;
89
- (function (AuditLogEvent) {
90
- /** Server settings were updated */
91
- AuditLogEvent[AuditLogEvent["GUILD_UPDATE"] = 1] = "GUILD_UPDATE";
92
- /** Channel was created */
93
- AuditLogEvent[AuditLogEvent["CHANNEL_CREATE"] = 10] = "CHANNEL_CREATE";
94
- /** Channel settings were updated */
95
- AuditLogEvent[AuditLogEvent["CHANNEL_UPDATE"] = 11] = "CHANNEL_UPDATE";
96
- /** Channel was deleted */
97
- AuditLogEvent[AuditLogEvent["CHANNEL_DELETE"] = 12] = "CHANNEL_DELETE";
98
- /** Permission overwrite was added to a channel */
99
- AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_CREATE"] = 13] = "CHANNEL_OVERWRITE_CREATE";
100
- /** Permission overwrite was updated for a channel */
101
- AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_UPDATE"] = 14] = "CHANNEL_OVERWRITE_UPDATE";
102
- /** Permission overwrite was deleted from a channel */
103
- AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_DELETE"] = 15] = "CHANNEL_OVERWRITE_DELETE";
104
- /** Member was removed from server */
105
- AuditLogEvent[AuditLogEvent["MEMBER_KICK"] = 20] = "MEMBER_KICK";
106
- /** Members were pruned from server */
107
- AuditLogEvent[AuditLogEvent["MEMBER_PRUNE"] = 21] = "MEMBER_PRUNE";
108
- /** Member was banned from server */
109
- AuditLogEvent[AuditLogEvent["MEMBER_BAN_ADD"] = 22] = "MEMBER_BAN_ADD";
110
- /** Server ban was lifted for a member */
111
- AuditLogEvent[AuditLogEvent["MEMBER_BAN_REMOVE"] = 23] = "MEMBER_BAN_REMOVE";
112
- /** Member was updated in server */
113
- AuditLogEvent[AuditLogEvent["MEMBER_UPDATE"] = 24] = "MEMBER_UPDATE";
114
- /** Member was added or removed from a role */
115
- AuditLogEvent[AuditLogEvent["MEMBER_ROLE_UPDATE"] = 25] = "MEMBER_ROLE_UPDATE";
116
- /** Member was moved to a different voice channel */
117
- AuditLogEvent[AuditLogEvent["MEMBER_MOVE"] = 26] = "MEMBER_MOVE";
118
- /** Member was disconnected from a voice channel */
119
- AuditLogEvent[AuditLogEvent["MEMBER_DISCONNECT"] = 27] = "MEMBER_DISCONNECT";
120
- /** Bot user was added to server */
121
- AuditLogEvent[AuditLogEvent["BOT_ADD"] = 28] = "BOT_ADD";
122
- /** Role was created */
123
- AuditLogEvent[AuditLogEvent["ROLE_CREATE"] = 30] = "ROLE_CREATE";
124
- /** Role was edited */
125
- AuditLogEvent[AuditLogEvent["ROLE_UPDATE"] = 31] = "ROLE_UPDATE";
126
- /** Role was deleted */
127
- AuditLogEvent[AuditLogEvent["ROLE_DELETE"] = 32] = "ROLE_DELETE";
128
- /** Server invite was created */
129
- AuditLogEvent[AuditLogEvent["INVITE_CREATE"] = 40] = "INVITE_CREATE";
130
- /** Server invite was updated */
131
- AuditLogEvent[AuditLogEvent["INVITE_UPDATE"] = 41] = "INVITE_UPDATE";
132
- /** Server invite was deleted */
133
- AuditLogEvent[AuditLogEvent["INVITE_DELETE"] = 42] = "INVITE_DELETE";
134
- /** Webhook was created */
135
- AuditLogEvent[AuditLogEvent["WEBHOOK_CREATE"] = 50] = "WEBHOOK_CREATE";
136
- /** Webhook properties or channel were updated */
137
- AuditLogEvent[AuditLogEvent["WEBHOOK_UPDATE"] = 51] = "WEBHOOK_UPDATE";
138
- /** Webhook was deleted */
139
- AuditLogEvent[AuditLogEvent["WEBHOOK_DELETE"] = 52] = "WEBHOOK_DELETE";
140
- /** Emoji was created */
141
- AuditLogEvent[AuditLogEvent["EMOJI_CREATE"] = 60] = "EMOJI_CREATE";
142
- /** Emoji name was updated */
143
- AuditLogEvent[AuditLogEvent["EMOJI_UPDATE"] = 61] = "EMOJI_UPDATE";
144
- /** Emoji was deleted */
145
- AuditLogEvent[AuditLogEvent["EMOJI_DELETE"] = 62] = "EMOJI_DELETE";
146
- /** Single message was deleted */
147
- AuditLogEvent[AuditLogEvent["MESSAGE_DELETE"] = 72] = "MESSAGE_DELETE";
148
- /** Multiple messages were deleted */
149
- AuditLogEvent[AuditLogEvent["MESSAGE_BULK_DELETE"] = 73] = "MESSAGE_BULK_DELETE";
150
- /** Message was pinned to a channel */
151
- AuditLogEvent[AuditLogEvent["MESSAGE_PIN"] = 74] = "MESSAGE_PIN";
152
- /** Message was unpinned from a channel */
153
- AuditLogEvent[AuditLogEvent["MESSAGE_UNPIN"] = 75] = "MESSAGE_UNPIN";
154
- /** App was added to server */
155
- AuditLogEvent[AuditLogEvent["INTEGRATION_CREATE"] = 80] = "INTEGRATION_CREATE";
156
- /** App was updated (as an example, its scopes were updated) */
157
- AuditLogEvent[AuditLogEvent["INTEGRATION_UPDATE"] = 81] = "INTEGRATION_UPDATE";
158
- /** App was removed from server */
159
- AuditLogEvent[AuditLogEvent["INTEGRATION_DELETE"] = 82] = "INTEGRATION_DELETE";
160
- /** Stage instance was created (stage channel becomes live) */
161
- AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_CREATE"] = 83] = "STAGE_INSTANCE_CREATE";
162
- /** Stage instance details were updated */
163
- AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_UPDATE"] = 84] = "STAGE_INSTANCE_UPDATE";
164
- /** Stage instance was deleted (stage channel no longer live) */
165
- AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_DELETE"] = 85] = "STAGE_INSTANCE_DELETE";
166
- /** Sticker was created */
167
- AuditLogEvent[AuditLogEvent["STICKER_CREATE"] = 90] = "STICKER_CREATE";
168
- /** Sticker details were updated */
169
- AuditLogEvent[AuditLogEvent["STICKER_UPDATE"] = 91] = "STICKER_UPDATE";
170
- /** Sticker was deleted */
171
- AuditLogEvent[AuditLogEvent["STICKER_DELETE"] = 92] = "STICKER_DELETE";
172
- /** Event was created */
173
- AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_CREATE"] = 100] = "GUILD_SCHEDULED_EVENT_CREATE";
174
- /** Event was updated */
175
- AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_UPDATE"] = 101] = "GUILD_SCHEDULED_EVENT_UPDATE";
176
- /** Event was cancelled */
177
- AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_DELETE"] = 102] = "GUILD_SCHEDULED_EVENT_DELETE";
178
- /** Thread was created in a channel */
179
- AuditLogEvent[AuditLogEvent["THREAD_CREATE"] = 110] = "THREAD_CREATE";
180
- /** Thread was updated */
181
- AuditLogEvent[AuditLogEvent["THREAD_UPDATE"] = 111] = "THREAD_UPDATE";
182
- /** Thread was deleted */
183
- AuditLogEvent[AuditLogEvent["THREAD_DELETE"] = 112] = "THREAD_DELETE";
184
- /** Permissions were updated for a command */
185
- AuditLogEvent[AuditLogEvent["APPLICATION_COMMAND_PERMISSION_UPDATE"] = 121] = "APPLICATION_COMMAND_PERMISSION_UPDATE";
186
- /** Auto Moderation rule was created */
187
- AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_CREATE"] = 140] = "AUTO_MODERATION_RULE_CREATE";
188
- /** Auto Moderation rule was updated */
189
- AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_UPDATE"] = 141] = "AUTO_MODERATION_RULE_UPDATE";
190
- /** Auto Moderation rule was deleted */
191
- AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_DELETE"] = 142] = "AUTO_MODERATION_RULE_DELETE";
192
- /** Message was blocked by Auto Moderation */
193
- AuditLogEvent[AuditLogEvent["AUTO_MODERATION_BLOCK_MESSAGE"] = 143] = "AUTO_MODERATION_BLOCK_MESSAGE";
194
- /** Message was flagged by Auto Moderation */
195
- AuditLogEvent[AuditLogEvent["AUTO_MODERATION_FLAG_TO_CHANNEL"] = 144] = "AUTO_MODERATION_FLAG_TO_CHANNEL";
196
- /** Member was timed out by Auto Moderation */
197
- AuditLogEvent[AuditLogEvent["AUTO_MODERATION_USER_COMMUNICATION_DISABLED"] = 145] = "AUTO_MODERATION_USER_COMMUNICATION_DISABLED";
198
- })(AuditLogEvent || (AuditLogEvent = {}));
199
- export var ButtonStyle;
200
- (function (ButtonStyle) {
201
- ButtonStyle[ButtonStyle["PRIMARY"] = 1] = "PRIMARY";
202
- ButtonStyle[ButtonStyle["SECONDARY"] = 2] = "SECONDARY";
203
- ButtonStyle[ButtonStyle["SUCCESS"] = 3] = "SUCCESS";
204
- ButtonStyle[ButtonStyle["DANGER"] = 4] = "DANGER";
205
- ButtonStyle[ButtonStyle["LINK"] = 5] = "LINK";
206
- })(ButtonStyle || (ButtonStyle = {}));
207
32
  export const ChannelFlag = {
208
33
  /** this thread is pinned to the top of its parent GUILD_FORUM channel */
209
34
  PINNED: 1 << 1,
210
35
  /** whether a tag is required to be specified when creating a thread in a GUILD_FORUM channel. Tags are specified in the applied_tags field. */
211
36
  REQUIRE_TAG: 1 << 4,
212
37
  };
213
- export var ChannelType;
214
- (function (ChannelType) {
215
- /** a text channel within a server */
216
- ChannelType[ChannelType["GUILD_TEXT"] = 0] = "GUILD_TEXT";
217
- /** a direct message between users */
218
- ChannelType[ChannelType["DM"] = 1] = "DM";
219
- /** a voice channel within a server */
220
- ChannelType[ChannelType["GUILD_VOICE"] = 2] = "GUILD_VOICE";
221
- /** a direct message between multiple users */
222
- ChannelType[ChannelType["GROUP_DM"] = 3] = "GROUP_DM";
223
- /** an organizational category that contains up to 50 channels */
224
- ChannelType[ChannelType["GUILD_CATEGORY"] = 4] = "GUILD_CATEGORY";
225
- /** a channel that users can follow and crosspost into their own server (formerly news channels) */
226
- ChannelType[ChannelType["GUILD_ANNOUNCEMENT"] = 5] = "GUILD_ANNOUNCEMENT";
227
- /** a temporary sub-channel within a GUILD_ANNOUNCEMENT channel */
228
- ChannelType[ChannelType["ANNOUNCEMENT_THREAD"] = 10] = "ANNOUNCEMENT_THREAD";
229
- /** a temporary sub-channel within a GUILD_TEXT or GUILD_FORUM channel */
230
- ChannelType[ChannelType["PUBLIC_THREAD"] = 11] = "PUBLIC_THREAD";
231
- /** a temporary sub-channel within a GUILD_TEXT channel that is only viewable by those invited and those with the MANAGE_THREADS permission */
232
- ChannelType[ChannelType["PRIVATE_THREAD"] = 12] = "PRIVATE_THREAD";
233
- /** a voice channel for hosting events with an audience */
234
- ChannelType[ChannelType["GUILD_STAGE_VOICE"] = 13] = "GUILD_STAGE_VOICE";
235
- /** the channel in a hub containing the listed servers */
236
- ChannelType[ChannelType["GUILD_DIRECTORY"] = 14] = "GUILD_DIRECTORY";
237
- /** Channel that can only contain threads */
238
- ChannelType[ChannelType["GUILD_FORUM"] = 15] = "GUILD_FORUM";
239
- })(ChannelType || (ChannelType = {}));
240
- export var ComponentType;
241
- (function (ComponentType) {
242
- /** Container for other components */
243
- ComponentType[ComponentType["ACTION_ROW"] = 1] = "ACTION_ROW";
244
- /** Button object */
245
- ComponentType[ComponentType["BUTTON"] = 2] = "BUTTON";
246
- /** Select menu for picking from defined text options */
247
- ComponentType[ComponentType["STRING_SELECT"] = 3] = "STRING_SELECT";
248
- /** Text input object */
249
- ComponentType[ComponentType["TEXT_INPUT"] = 4] = "TEXT_INPUT";
250
- /** Select menu for users */
251
- ComponentType[ComponentType["USER_SELECT"] = 5] = "USER_SELECT";
252
- /** Select menu for roles */
253
- ComponentType[ComponentType["ROLE_SELECT"] = 6] = "ROLE_SELECT";
254
- /** Select menu for mentionables (users and roles) */
255
- ComponentType[ComponentType["MENTIONABLE_SELECT"] = 7] = "MENTIONABLE_SELECT";
256
- /** Select menu for channels */
257
- ComponentType[ComponentType["CHANNEL_SELECT"] = 8] = "CHANNEL_SELECT";
258
- })(ComponentType || (ComponentType = {}));
259
38
  export function createRoutes(fetch) {
260
39
  return {
261
40
  addGuildMember: (guildId, userId, params, options) => fetch({
@@ -625,6 +404,11 @@ export function createRoutes(fetch) {
625
404
  url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
626
405
  options,
627
406
  }),
407
+ getApplicationRoleConnectionMetadataRecords: (applicationId, options) => fetch({
408
+ method: "GET",
409
+ url: `/applications/${applicationId}/role-connections/metadata`,
410
+ options,
411
+ }),
628
412
  getAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
629
413
  method: "GET",
630
414
  url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
@@ -893,6 +677,11 @@ export function createRoutes(fetch) {
893
677
  url: `/users/${userId}`,
894
678
  options,
895
679
  }),
680
+ getUserApplicationRoleConnection: (applicationId, options) => fetch({
681
+ method: "GET",
682
+ url: `/users/@me/applications/${applicationId}/role-connection`,
683
+ options,
684
+ }),
896
685
  getUserConnections: (options) => fetch({
897
686
  method: "GET",
898
687
  url: `/users/@me/connections`,
@@ -1199,44 +988,19 @@ export function createRoutes(fetch) {
1199
988
  url: `/channels/${channelId}/pins/${messageId}`,
1200
989
  options,
1201
990
  }),
991
+ updateApplicationRoleConnectionMetadataRecords: (applicationId, options) => fetch({
992
+ method: "PUT",
993
+ url: `/applications/${applicationId}/role-connections/metadata`,
994
+ options,
995
+ }),
996
+ updateUserApplicationRoleConnection: (applicationId, params, options) => fetch({
997
+ method: "PUT",
998
+ url: `/users/@me/applications/${applicationId}/role-connection`,
999
+ params,
1000
+ options,
1001
+ }),
1202
1002
  };
1203
1003
  }
1204
- export var DefaultMessageNotificationLevel;
1205
- (function (DefaultMessageNotificationLevel) {
1206
- /** members will receive notifications for all messages by default */
1207
- DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["ALL_MESSAGES"] = 0] = "ALL_MESSAGES";
1208
- /** members will receive notifications only for messages that @mention them by default */
1209
- DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["ONLY_MENTIONS"] = 1] = "ONLY_MENTIONS";
1210
- })(DefaultMessageNotificationLevel || (DefaultMessageNotificationLevel = {}));
1211
- export var EmbedType;
1212
- (function (EmbedType) {
1213
- /** generic embed rendered from embed attributes */
1214
- EmbedType["RICH"] = "rich";
1215
- /** image embed */
1216
- EmbedType["IMAGE"] = "image";
1217
- /** video embed */
1218
- EmbedType["VIDEO"] = "video";
1219
- /** animated gif image embed rendered as a video embed */
1220
- EmbedType["GIFV"] = "gifv";
1221
- /** article embed */
1222
- EmbedType["ARTICLE"] = "article";
1223
- /** link embed */
1224
- EmbedType["LINK"] = "link";
1225
- })(EmbedType || (EmbedType = {}));
1226
- export var EventType;
1227
- (function (EventType) {
1228
- /** when a member sends or edits a message in the guild */
1229
- EventType[EventType["MESSAGE_SEND"] = 1] = "MESSAGE_SEND";
1230
- })(EventType || (EventType = {}));
1231
- export var ExplicitContentFilterLevel;
1232
- (function (ExplicitContentFilterLevel) {
1233
- /** media content will not be scanned */
1234
- ExplicitContentFilterLevel[ExplicitContentFilterLevel["DISABLED"] = 0] = "DISABLED";
1235
- /** media content sent by members without roles will be scanned */
1236
- ExplicitContentFilterLevel[ExplicitContentFilterLevel["MEMBERS_WITHOUT_ROLES"] = 1] = "MEMBERS_WITHOUT_ROLES";
1237
- /** media content sent by all members will be scanned */
1238
- ExplicitContentFilterLevel[ExplicitContentFilterLevel["ALL_MEMBERS"] = 2] = "ALL_MEMBERS";
1239
- })(ExplicitContentFilterLevel || (ExplicitContentFilterLevel = {}));
1240
1004
  export const GatewayIntents = {
1241
1005
  GUILDS: 1 << 0,
1242
1006
  GUILD_MEMBERS: 1 << 1,
@@ -1258,161 +1022,6 @@ export const GatewayIntents = {
1258
1022
  AUTO_MODERATION_CONFIGURATION: 1 << 20,
1259
1023
  AUTO_MODERATION_EXECUTION: 1 << 21,
1260
1024
  };
1261
- export var GatewayOpcode;
1262
- (function (GatewayOpcode) {
1263
- /** An event was dispatched. */
1264
- GatewayOpcode[GatewayOpcode["DISPATCH"] = 0] = "DISPATCH";
1265
- /** Fired periodically by the client to keep the connection alive. */
1266
- GatewayOpcode[GatewayOpcode["HEARTBEAT"] = 1] = "HEARTBEAT";
1267
- /** Starts a new session during the initial handshake. */
1268
- GatewayOpcode[GatewayOpcode["IDENTIFY"] = 2] = "IDENTIFY";
1269
- /** Update the client's presence. */
1270
- GatewayOpcode[GatewayOpcode["PRESENCE_UPDATE"] = 3] = "PRESENCE_UPDATE";
1271
- /** Used to join/leave or move between voice channels. */
1272
- GatewayOpcode[GatewayOpcode["VOICE_STATE_UPDATE"] = 4] = "VOICE_STATE_UPDATE";
1273
- /** Resume a previous session that was disconnected. */
1274
- GatewayOpcode[GatewayOpcode["RESUME"] = 6] = "RESUME";
1275
- /** You should attempt to reconnect and resume immediately. */
1276
- GatewayOpcode[GatewayOpcode["RECONNECT"] = 7] = "RECONNECT";
1277
- /** Request information about offline guild members in a large guild. */
1278
- GatewayOpcode[GatewayOpcode["REQUEST_GUILD_MEMBERS"] = 8] = "REQUEST_GUILD_MEMBERS";
1279
- /** The session has been invalidated. You should reconnect and identify/resume accordingly. */
1280
- GatewayOpcode[GatewayOpcode["INVALID_SESSION"] = 9] = "INVALID_SESSION";
1281
- /** Sent immediately after connecting, contains the heartbeat_interval to use. */
1282
- GatewayOpcode[GatewayOpcode["HELLO"] = 10] = "HELLO";
1283
- /** Sent in response to receiving a heartbeat to acknowledge that it has been received. */
1284
- GatewayOpcode[GatewayOpcode["HEARTBEAT_ACK"] = 11] = "HEARTBEAT_ACK";
1285
- })(GatewayOpcode || (GatewayOpcode = {}));
1286
- export var GuildFeature;
1287
- (function (GuildFeature) {
1288
- /** guild has access to set an animated guild banner image */
1289
- GuildFeature["ANIMATED_BANNER"] = "ANIMATED_BANNER";
1290
- /** guild has access to set an animated guild icon */
1291
- GuildFeature["ANIMATED_ICON"] = "ANIMATED_ICON";
1292
- /** guild is using the old permissions configuration behavior */
1293
- GuildFeature["APPLICATION_COMMAND_PERMISSIONS_V2"] = "APPLICATION_COMMAND_PERMISSIONS_V2";
1294
- /** guild has set up auto moderation rules */
1295
- GuildFeature["AUTO_MODERATION"] = "AUTO_MODERATION";
1296
- /** guild has access to set a guild banner image */
1297
- GuildFeature["BANNER"] = "BANNER";
1298
- /** guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates */
1299
- GuildFeature["COMMUNITY"] = "COMMUNITY";
1300
- /** guild has been set as a support server on the App Directory */
1301
- GuildFeature["DEVELOPER_SUPPORT_SERVER"] = "DEVELOPER_SUPPORT_SERVER";
1302
- /** guild is able to be discovered in the directory */
1303
- GuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
1304
- /** guild is able to be featured in the directory */
1305
- GuildFeature["FEATURABLE"] = "FEATURABLE";
1306
- /** guild has paused invites, preventing new users from joining */
1307
- GuildFeature["INVITES_DISABLED"] = "INVITES_DISABLED";
1308
- /** guild has access to set an invite splash background */
1309
- GuildFeature["INVITE_SPLASH"] = "INVITE_SPLASH";
1310
- /** guild has enabled Membership Screening */
1311
- GuildFeature["MEMBER_VERIFICATION_GATE_ENABLED"] = "MEMBER_VERIFICATION_GATE_ENABLED";
1312
- /** guild has enabled monetization */
1313
- GuildFeature["MONETIZATION_ENABLED"] = "MONETIZATION_ENABLED";
1314
- /** guild has increased custom sticker slots */
1315
- GuildFeature["MORE_STICKERS"] = "MORE_STICKERS";
1316
- /** guild has access to create announcement channels */
1317
- GuildFeature["NEWS"] = "NEWS";
1318
- /** guild is partnered */
1319
- GuildFeature["PARTNERED"] = "PARTNERED";
1320
- /** guild can be previewed before joining via Membership Screening or the directory */
1321
- GuildFeature["PREVIEW_ENABLED"] = "PREVIEW_ENABLED";
1322
- /** guild is able to set role icons */
1323
- GuildFeature["ROLE_ICONS"] = "ROLE_ICONS";
1324
- /** guild has enabled ticketed events */
1325
- GuildFeature["TICKETED_EVENTS_ENABLED"] = "TICKETED_EVENTS_ENABLED";
1326
- /** guild has access to set a vanity URL */
1327
- GuildFeature["VANITY_URL"] = "VANITY_URL";
1328
- /** guild is verified */
1329
- GuildFeature["VERIFIED"] = "VERIFIED";
1330
- /** guild has access to set 384kbps bitrate in voice (previously VIP voice servers) */
1331
- GuildFeature["VIP_REGIONS"] = "VIP_REGIONS";
1332
- /** guild has enabled the welcome screen */
1333
- GuildFeature["WELCOME_SCREEN_ENABLED"] = "WELCOME_SCREEN_ENABLED";
1334
- })(GuildFeature || (GuildFeature = {}));
1335
- export var GuildNsfwLevel;
1336
- (function (GuildNsfwLevel) {
1337
- GuildNsfwLevel[GuildNsfwLevel["DEFAULT"] = 0] = "DEFAULT";
1338
- GuildNsfwLevel[GuildNsfwLevel["EXPLICIT"] = 1] = "EXPLICIT";
1339
- GuildNsfwLevel[GuildNsfwLevel["SAFE"] = 2] = "SAFE";
1340
- GuildNsfwLevel[GuildNsfwLevel["AGE_RESTRICTED"] = 3] = "AGE_RESTRICTED";
1341
- })(GuildNsfwLevel || (GuildNsfwLevel = {}));
1342
- export var GuildScheduledEventEntityType;
1343
- (function (GuildScheduledEventEntityType) {
1344
- GuildScheduledEventEntityType[GuildScheduledEventEntityType["STAGE_INSTANCE"] = 1] = "STAGE_INSTANCE";
1345
- GuildScheduledEventEntityType[GuildScheduledEventEntityType["VOICE"] = 2] = "VOICE";
1346
- GuildScheduledEventEntityType[GuildScheduledEventEntityType["EXTERNAL"] = 3] = "EXTERNAL";
1347
- })(GuildScheduledEventEntityType || (GuildScheduledEventEntityType = {}));
1348
- export var GuildScheduledEventPrivacyLevel;
1349
- (function (GuildScheduledEventPrivacyLevel) {
1350
- /** the scheduled event is only accessible to guild members */
1351
- GuildScheduledEventPrivacyLevel[GuildScheduledEventPrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
1352
- })(GuildScheduledEventPrivacyLevel || (GuildScheduledEventPrivacyLevel = {}));
1353
- export var GuildScheduledEventStatus;
1354
- (function (GuildScheduledEventStatus) {
1355
- GuildScheduledEventStatus[GuildScheduledEventStatus["SCHEDULED"] = 1] = "SCHEDULED";
1356
- GuildScheduledEventStatus[GuildScheduledEventStatus["ACTIVE"] = 2] = "ACTIVE";
1357
- GuildScheduledEventStatus[GuildScheduledEventStatus["COMPLETED"] = 3] = "COMPLETED";
1358
- GuildScheduledEventStatus[GuildScheduledEventStatus["CANCELED"] = 4] = "CANCELED";
1359
- })(GuildScheduledEventStatus || (GuildScheduledEventStatus = {}));
1360
- export var IntegrationExpireBehavior;
1361
- (function (IntegrationExpireBehavior) {
1362
- IntegrationExpireBehavior[IntegrationExpireBehavior["REMOVE_ROLE"] = 0] = "REMOVE_ROLE";
1363
- IntegrationExpireBehavior[IntegrationExpireBehavior["KICK"] = 1] = "KICK";
1364
- })(IntegrationExpireBehavior || (IntegrationExpireBehavior = {}));
1365
- export var InteractionCallbackType;
1366
- (function (InteractionCallbackType) {
1367
- /** ACK a Ping */
1368
- InteractionCallbackType[InteractionCallbackType["PONG"] = 1] = "PONG";
1369
- /** respond to an interaction with a message */
1370
- InteractionCallbackType[InteractionCallbackType["CHANNEL_MESSAGE_WITH_SOURCE"] = 4] = "CHANNEL_MESSAGE_WITH_SOURCE";
1371
- /** ACK an interaction and edit a response later, the user sees a loading state */
1372
- InteractionCallbackType[InteractionCallbackType["DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE"] = 5] = "DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE";
1373
- /** for components, ACK an interaction and edit the original message later; the user does not see a loading state */
1374
- InteractionCallbackType[InteractionCallbackType["DEFERRED_UPDATE_MESSAGE"] = 6] = "DEFERRED_UPDATE_MESSAGE";
1375
- /** for components, edit the message the component was attached to */
1376
- InteractionCallbackType[InteractionCallbackType["UPDATE_MESSAGE"] = 7] = "UPDATE_MESSAGE";
1377
- /** respond to an autocomplete interaction with suggested choices */
1378
- InteractionCallbackType[InteractionCallbackType["APPLICATION_COMMAND_AUTOCOMPLETE_RESULT"] = 8] = "APPLICATION_COMMAND_AUTOCOMPLETE_RESULT";
1379
- /** respond to an interaction with a popup modal */
1380
- InteractionCallbackType[InteractionCallbackType["MODAL"] = 9] = "MODAL";
1381
- })(InteractionCallbackType || (InteractionCallbackType = {}));
1382
- export var InteractionType;
1383
- (function (InteractionType) {
1384
- InteractionType[InteractionType["PING"] = 1] = "PING";
1385
- InteractionType[InteractionType["APPLICATION_COMMAND"] = 2] = "APPLICATION_COMMAND";
1386
- InteractionType[InteractionType["MESSAGE_COMPONENT"] = 3] = "MESSAGE_COMPONENT";
1387
- InteractionType[InteractionType["APPLICATION_COMMAND_AUTOCOMPLETE"] = 4] = "APPLICATION_COMMAND_AUTOCOMPLETE";
1388
- InteractionType[InteractionType["MODAL_SUBMIT"] = 5] = "MODAL_SUBMIT";
1389
- })(InteractionType || (InteractionType = {}));
1390
- export var InviteTargetType;
1391
- (function (InviteTargetType) {
1392
- InviteTargetType[InviteTargetType["STREAM"] = 1] = "STREAM";
1393
- InviteTargetType[InviteTargetType["EMBEDDED_APPLICATION"] = 2] = "EMBEDDED_APPLICATION";
1394
- })(InviteTargetType || (InviteTargetType = {}));
1395
- export var KeywordPresetType;
1396
- (function (KeywordPresetType) {
1397
- /** Words that may be considered forms of swearing or cursing */
1398
- KeywordPresetType[KeywordPresetType["PROFANITY"] = 1] = "PROFANITY";
1399
- /** Words that refer to sexually explicit behavior or activity */
1400
- KeywordPresetType[KeywordPresetType["SEXUAL_CONTENT"] = 2] = "SEXUAL_CONTENT";
1401
- /** Personal insults or words that may be considered hate speech */
1402
- KeywordPresetType[KeywordPresetType["SLURS"] = 3] = "SLURS";
1403
- })(KeywordPresetType || (KeywordPresetType = {}));
1404
- export var MembershipState;
1405
- (function (MembershipState) {
1406
- MembershipState[MembershipState["INVITED"] = 1] = "INVITED";
1407
- MembershipState[MembershipState["ACCEPTED"] = 2] = "ACCEPTED";
1408
- })(MembershipState || (MembershipState = {}));
1409
- export var MessageActivityType;
1410
- (function (MessageActivityType) {
1411
- MessageActivityType[MessageActivityType["JOIN"] = 1] = "JOIN";
1412
- MessageActivityType[MessageActivityType["SPECTATE"] = 2] = "SPECTATE";
1413
- MessageActivityType[MessageActivityType["LISTEN"] = 3] = "LISTEN";
1414
- MessageActivityType[MessageActivityType["JOIN_REQUEST"] = 5] = "JOIN_REQUEST";
1415
- })(MessageActivityType || (MessageActivityType = {}));
1416
1025
  export const MessageFlag = {
1417
1026
  /** this message has been published to subscribed channels (via Channel Following) */
1418
1027
  CROSSPOSTED: 1 << 0,
@@ -1433,103 +1042,6 @@ export const MessageFlag = {
1433
1042
  /** this message failed to mention some roles and add their members to the thread */
1434
1043
  FAILED_TO_MENTION_SOME_ROLES_IN_THREAD: 1 << 8,
1435
1044
  };
1436
- export var MessageType;
1437
- (function (MessageType) {
1438
- MessageType[MessageType["DEFAULT"] = 0] = "DEFAULT";
1439
- MessageType[MessageType["RECIPIENT_ADD"] = 1] = "RECIPIENT_ADD";
1440
- MessageType[MessageType["RECIPIENT_REMOVE"] = 2] = "RECIPIENT_REMOVE";
1441
- MessageType[MessageType["CALL"] = 3] = "CALL";
1442
- MessageType[MessageType["CHANNEL_NAME_CHANGE"] = 4] = "CHANNEL_NAME_CHANGE";
1443
- MessageType[MessageType["CHANNEL_ICON_CHANGE"] = 5] = "CHANNEL_ICON_CHANGE";
1444
- MessageType[MessageType["CHANNEL_PINNED_MESSAGE"] = 6] = "CHANNEL_PINNED_MESSAGE";
1445
- MessageType[MessageType["USER_JOIN"] = 7] = "USER_JOIN";
1446
- MessageType[MessageType["GUILD_BOOST"] = 8] = "GUILD_BOOST";
1447
- MessageType[MessageType["GUILD_BOOST_TIER_1"] = 9] = "GUILD_BOOST_TIER_1";
1448
- MessageType[MessageType["GUILD_BOOST_TIER_2"] = 10] = "GUILD_BOOST_TIER_2";
1449
- MessageType[MessageType["GUILD_BOOST_TIER_3"] = 11] = "GUILD_BOOST_TIER_3";
1450
- MessageType[MessageType["CHANNEL_FOLLOW_ADD"] = 12] = "CHANNEL_FOLLOW_ADD";
1451
- MessageType[MessageType["GUILD_DISCOVERY_DISQUALIFIED"] = 14] = "GUILD_DISCOVERY_DISQUALIFIED";
1452
- MessageType[MessageType["GUILD_DISCOVERY_REQUALIFIED"] = 15] = "GUILD_DISCOVERY_REQUALIFIED";
1453
- MessageType[MessageType["GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING"] = 16] = "GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING";
1454
- MessageType[MessageType["GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING"] = 17] = "GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING";
1455
- MessageType[MessageType["THREAD_CREATED"] = 18] = "THREAD_CREATED";
1456
- MessageType[MessageType["REPLY"] = 19] = "REPLY";
1457
- MessageType[MessageType["CHAT_INPUT_COMMAND"] = 20] = "CHAT_INPUT_COMMAND";
1458
- MessageType[MessageType["THREAD_STARTER_MESSAGE"] = 21] = "THREAD_STARTER_MESSAGE";
1459
- MessageType[MessageType["GUILD_INVITE_REMINDER"] = 22] = "GUILD_INVITE_REMINDER";
1460
- MessageType[MessageType["CONTEXT_MENU_COMMAND"] = 23] = "CONTEXT_MENU_COMMAND";
1461
- MessageType[MessageType["AUTO_MODERATION_ACTION"] = 24] = "AUTO_MODERATION_ACTION";
1462
- })(MessageType || (MessageType = {}));
1463
- export var MfaLevel;
1464
- (function (MfaLevel) {
1465
- /** guild has no MFA/2FA requirement for moderation actions */
1466
- MfaLevel[MfaLevel["NONE"] = 0] = "NONE";
1467
- /** guild has a 2FA requirement for moderation actions */
1468
- MfaLevel[MfaLevel["ELEVATED"] = 1] = "ELEVATED";
1469
- })(MfaLevel || (MfaLevel = {}));
1470
- export var MutableGuildFeature;
1471
- (function (MutableGuildFeature) {
1472
- MutableGuildFeature["COMMUNITY"] = "COMMUNITY";
1473
- MutableGuildFeature["INVITES_DISABLED"] = "INVITES_DISABLED";
1474
- MutableGuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
1475
- })(MutableGuildFeature || (MutableGuildFeature = {}));
1476
- export var OAuth2Scope;
1477
- (function (OAuth2Scope) {
1478
- /** allows your app to fetch data from a user's "Now Playing/Recently Played" list - requires Discord approval */
1479
- OAuth2Scope["ACTIVITIES_READ"] = "activities.read";
1480
- /** allows your app to update a user's activity - requires Discord approval (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER) */
1481
- OAuth2Scope["ACTIVITIES_WRITE"] = "activities.write";
1482
- /** allows your app to read build data for a user's applications */
1483
- OAuth2Scope["APPLICATIONS_BUILDS_READ"] = "applications.builds.read";
1484
- /** allows your app to upload/update builds for a user's applications - requires Discord approval */
1485
- OAuth2Scope["APPLICATIONS_BUILDS_UPLOAD"] = "applications.builds.upload";
1486
- /** allows your app to use commands in a guild */
1487
- OAuth2Scope["APPLICATIONS_COMMANDS"] = "applications.commands";
1488
- /** allows your app to update its commands using a Bearer token - client credentials grant only */
1489
- OAuth2Scope["APPLICATIONS_COMMANDS_UPDATE"] = "applications.commands.update";
1490
- /** allows your app to update permissions for its commands in a guild a user has permissions to */
1491
- OAuth2Scope["APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE"] = "applications.commands.permissions.update";
1492
- /** allows your app to read entitlements for a user's applications */
1493
- OAuth2Scope["APPLICATIONS_ENTITLEMENTS"] = "applications.entitlements";
1494
- /** allows your app to read and update store data (SKUs, store listings, achievements, etc.) for a user's applications */
1495
- OAuth2Scope["APPLICATIONS_STORE_UPDATE"] = "applications.store.update";
1496
- /** for oauth2 bots, this puts the bot in the user's selected guild by default */
1497
- OAuth2Scope["BOT"] = "bot";
1498
- /** allows /users/@me/connections to return linked third-party accounts */
1499
- OAuth2Scope["CONNECTIONS"] = "connections";
1500
- /** allows your app to see information about the user's DMs and group DMs - requires Discord approval */
1501
- OAuth2Scope["DM_CHANNELS_READ"] = "dm_channels.read";
1502
- /** enables /users/@me to return an email */
1503
- OAuth2Scope["EMAIL"] = "email";
1504
- /** allows your app to join users to a group dm */
1505
- OAuth2Scope["GDM_JOIN"] = "gdm.join";
1506
- /** allows /users/@me/guilds to return basic information about all of a user's guilds */
1507
- OAuth2Scope["GUILDS"] = "guilds";
1508
- /** allows /guilds/{guild.id}/members/{user.id} to be used for joining users to a guild */
1509
- OAuth2Scope["GUILDS_JOIN"] = "guilds.join";
1510
- /** allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild */
1511
- OAuth2Scope["GUILDS_MEMBERS_READ"] = "guilds.members.read";
1512
- /** allows /users/@me without email */
1513
- OAuth2Scope["IDENTIFY"] = "identify";
1514
- /** for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates) */
1515
- OAuth2Scope["MESSAGES_READ"] = "messages.read";
1516
- /** allows your app to know a user's friends and implicit relationships - requires Discord approval */
1517
- OAuth2Scope["RELATIONSHIPS_READ"] = "relationships.read";
1518
- /** for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval */
1519
- OAuth2Scope["RPC"] = "rpc";
1520
- /** for local rpc server access, this allows you to update a user's activity - requires Discord approval */
1521
- OAuth2Scope["RPC_ACTIVITIES_WRITE"] = "rpc.activities.write";
1522
- /** for local rpc server access, this allows you to receive notifications pushed out to the user - requires Discord approval */
1523
- OAuth2Scope["RPC_NOTIFICATIONS_READ"] = "rpc.notifications.read";
1524
- /** for local rpc server access, this allows you to read a user's voice settings and listen for voice events - requires Discord approval */
1525
- OAuth2Scope["RPC_VOICE_READ"] = "rpc.voice.read";
1526
- /** for local rpc server access, this allows you to update a user's voice settings - requires Discord approval */
1527
- OAuth2Scope["RPC_VOICE_WRITE"] = "rpc.voice.write";
1528
- /** allows your app to connect to voice on user's behalf and see all the voice members - requires Discord approval */
1529
- OAuth2Scope["VOICE"] = "voice";
1530
- /** this generates a webhook that is returned in the oauth token response for authorization code grants */
1531
- OAuth2Scope["WEBHOOK_INCOMING"] = "webhook.incoming";
1532
- })(OAuth2Scope || (OAuth2Scope = {}));
1533
1045
  export const PermissionFlag = {
1534
1046
  /** Allows creation of instant invites */
1535
1047
  CREATE_INSTANT_INVITE: BigInt(1) << BigInt(0),
@@ -1614,64 +1126,6 @@ export const PermissionFlag = {
1614
1126
  /** 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 */
1615
1127
  MODERATE_MEMBERS: BigInt(1) << BigInt(40),
1616
1128
  };
1617
- export var PremiumTier;
1618
- (function (PremiumTier) {
1619
- /** guild has not unlocked any Server Boost perks */
1620
- PremiumTier[PremiumTier["NONE"] = 0] = "NONE";
1621
- /** guild has unlocked Server Boost level 1 perks */
1622
- PremiumTier[PremiumTier["TIER_1"] = 1] = "TIER_1";
1623
- /** guild has unlocked Server Boost level 2 perks */
1624
- PremiumTier[PremiumTier["TIER_2"] = 2] = "TIER_2";
1625
- /** guild has unlocked Server Boost level 3 perks */
1626
- PremiumTier[PremiumTier["TIER_3"] = 3] = "TIER_3";
1627
- })(PremiumTier || (PremiumTier = {}));
1628
- export var PremiumType;
1629
- (function (PremiumType) {
1630
- PremiumType[PremiumType["NONE"] = 0] = "NONE";
1631
- PremiumType[PremiumType["NITRO_CLASSIC"] = 1] = "NITRO_CLASSIC";
1632
- PremiumType[PremiumType["NITRO"] = 2] = "NITRO";
1633
- PremiumType[PremiumType["NITRO_BASIC"] = 3] = "NITRO_BASIC";
1634
- })(PremiumType || (PremiumType = {}));
1635
- export var PrivacyLevel;
1636
- (function (PrivacyLevel) {
1637
- /** The Stage instance is visible publicly. (deprecated) */
1638
- PrivacyLevel[PrivacyLevel["PUBLIC"] = 1] = "PUBLIC";
1639
- /** The Stage instance is visible to only guild members. */
1640
- PrivacyLevel[PrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
1641
- })(PrivacyLevel || (PrivacyLevel = {}));
1642
- export var SortOrderType;
1643
- (function (SortOrderType) {
1644
- /** Sort forum posts by activity */
1645
- SortOrderType[SortOrderType["LATEST_ACTIVITY"] = 0] = "LATEST_ACTIVITY";
1646
- /** Sort forum posts by creation time (from most recent to oldest) */
1647
- SortOrderType[SortOrderType["CREATION_DATE"] = 1] = "CREATION_DATE";
1648
- })(SortOrderType || (SortOrderType = {}));
1649
- export var StatusType;
1650
- (function (StatusType) {
1651
- /** Online */
1652
- StatusType["ONLINE"] = "online";
1653
- /** Do Not Disturb */
1654
- StatusType["DND"] = "dnd";
1655
- /** AFK */
1656
- StatusType["IDLE"] = "idle";
1657
- /** Invisible and shown as offline */
1658
- StatusType["INVISIBLE"] = "invisible";
1659
- /** Offline */
1660
- StatusType["OFFLINE"] = "offline";
1661
- })(StatusType || (StatusType = {}));
1662
- export var StickerFormatType;
1663
- (function (StickerFormatType) {
1664
- StickerFormatType[StickerFormatType["PNG"] = 1] = "PNG";
1665
- StickerFormatType[StickerFormatType["APNG"] = 2] = "APNG";
1666
- StickerFormatType[StickerFormatType["LOTTIE"] = 3] = "LOTTIE";
1667
- })(StickerFormatType || (StickerFormatType = {}));
1668
- export var StickerType;
1669
- (function (StickerType) {
1670
- /** an official sticker in a pack, part of Nitro or in a removed purchasable pack */
1671
- StickerType[StickerType["STANDARD"] = 1] = "STANDARD";
1672
- /** a sticker uploaded to a guild for the guild's members */
1673
- StickerType[StickerType["GUILD"] = 2] = "GUILD";
1674
- })(StickerType || (StickerType = {}));
1675
1129
  export const SystemChannelFlag = {
1676
1130
  /** Suppress member join notifications */
1677
1131
  SUPPRESS_JOIN_NOTIFICATIONS: 1 << 0,
@@ -1682,24 +1136,6 @@ export const SystemChannelFlag = {
1682
1136
  /** Hide member join sticker reply buttons */
1683
1137
  SUPPRESS_JOIN_NOTIFICATION_REPLIES: 1 << 3,
1684
1138
  };
1685
- export var TextInputStyle;
1686
- (function (TextInputStyle) {
1687
- /** Single-line input */
1688
- TextInputStyle[TextInputStyle["SHORT"] = 1] = "SHORT";
1689
- /** Multi-line input */
1690
- TextInputStyle[TextInputStyle["PARAGRAPH"] = 2] = "PARAGRAPH";
1691
- })(TextInputStyle || (TextInputStyle = {}));
1692
- export var TriggerType;
1693
- (function (TriggerType) {
1694
- /** check if content contains words from a user defined list of keywords */
1695
- TriggerType[TriggerType["KEYWORD"] = 1] = "KEYWORD";
1696
- /** check if content represents generic spam */
1697
- TriggerType[TriggerType["SPAM"] = 3] = "SPAM";
1698
- /** check if content contains words from internal pre-defined wordsets */
1699
- TriggerType[TriggerType["KEYWORD_PRESET"] = 4] = "KEYWORD_PRESET";
1700
- /** check if content contains more unique mentions than allowed */
1701
- TriggerType[TriggerType["MENTION_SPAM"] = 5] = "MENTION_SPAM";
1702
- })(TriggerType || (TriggerType = {}));
1703
1139
  export const UserFlag = {
1704
1140
  /** Discord Employee */
1705
1141
  STAFF: 1 << 0,
@@ -1725,72 +1161,11 @@ export const UserFlag = {
1725
1161
  VERIFIED_BOT: 1 << 16,
1726
1162
  /** Early Verified Bot Developer */
1727
1163
  VERIFIED_DEVELOPER: 1 << 17,
1728
- /** Discord Certified Moderator */
1164
+ /** Moderator Programs Alumni */
1729
1165
  CERTIFIED_MODERATOR: 1 << 18,
1730
1166
  /** Bot uses only HTTP interactions and is shown in the online member list */
1731
1167
  BOT_HTTP_INTERACTIONS: 1 << 19,
1732
1168
  /** User is an Active Developer */
1733
1169
  ACTIVE_DEVELOPER: 1 << 22,
1734
1170
  };
1735
- export var VerificationLevel;
1736
- (function (VerificationLevel) {
1737
- /** unrestricted */
1738
- VerificationLevel[VerificationLevel["NONE"] = 0] = "NONE";
1739
- /** must have verified email on account */
1740
- VerificationLevel[VerificationLevel["LOW"] = 1] = "LOW";
1741
- /** must be registered on Discord for longer than 5 minutes */
1742
- VerificationLevel[VerificationLevel["MEDIUM"] = 2] = "MEDIUM";
1743
- /** must be a member of the server for longer than 10 minutes */
1744
- VerificationLevel[VerificationLevel["HIGH"] = 3] = "HIGH";
1745
- /** must have a verified phone number */
1746
- VerificationLevel[VerificationLevel["VERY_HIGH"] = 4] = "VERY_HIGH";
1747
- })(VerificationLevel || (VerificationLevel = {}));
1748
- export var VideoQualityMode;
1749
- (function (VideoQualityMode) {
1750
- /** Discord chooses the quality for optimal performance */
1751
- VideoQualityMode[VideoQualityMode["AUTO"] = 1] = "AUTO";
1752
- /** 720p */
1753
- VideoQualityMode[VideoQualityMode["FULL"] = 2] = "FULL";
1754
- })(VideoQualityMode || (VideoQualityMode = {}));
1755
- export var VisibilityType;
1756
- (function (VisibilityType) {
1757
- /** invisible to everyone except the user themselves */
1758
- VisibilityType[VisibilityType["NONE"] = 0] = "NONE";
1759
- /** visible to everyone */
1760
- VisibilityType[VisibilityType["EVERYONE"] = 1] = "EVERYONE";
1761
- })(VisibilityType || (VisibilityType = {}));
1762
- export var VoiceOpcode;
1763
- (function (VoiceOpcode) {
1764
- /** Begin a voice websocket connection. */
1765
- VoiceOpcode[VoiceOpcode["IDENTIFY"] = 0] = "IDENTIFY";
1766
- /** Select the voice protocol. */
1767
- VoiceOpcode[VoiceOpcode["SELECT_PROTOCOL"] = 1] = "SELECT_PROTOCOL";
1768
- /** Complete the websocket handshake. */
1769
- VoiceOpcode[VoiceOpcode["READY"] = 2] = "READY";
1770
- /** Keep the websocket connection alive. */
1771
- VoiceOpcode[VoiceOpcode["HEARTBEAT"] = 3] = "HEARTBEAT";
1772
- /** Describe the session. */
1773
- VoiceOpcode[VoiceOpcode["SESSION_DESCRIPTION"] = 4] = "SESSION_DESCRIPTION";
1774
- /** Indicate which users are speaking. */
1775
- VoiceOpcode[VoiceOpcode["SPEAKING"] = 5] = "SPEAKING";
1776
- /** Sent to acknowledge a received client heartbeat. */
1777
- VoiceOpcode[VoiceOpcode["HEARTBEAT_ACK"] = 6] = "HEARTBEAT_ACK";
1778
- /** Resume a connection. */
1779
- VoiceOpcode[VoiceOpcode["RESUME"] = 7] = "RESUME";
1780
- /** Time to wait between sending heartbeats in milliseconds. */
1781
- VoiceOpcode[VoiceOpcode["HELLO"] = 8] = "HELLO";
1782
- /** Acknowledge a successful session resume. */
1783
- VoiceOpcode[VoiceOpcode["RESUMED"] = 9] = "RESUMED";
1784
- /** A client has disconnected from the voice channel */
1785
- VoiceOpcode[VoiceOpcode["CLIENT_DISCONNECT"] = 13] = "CLIENT_DISCONNECT";
1786
- })(VoiceOpcode || (VoiceOpcode = {}));
1787
- export var WebhookType;
1788
- (function (WebhookType) {
1789
- /** Incoming Webhooks can post messages to channels with a generated token */
1790
- WebhookType[WebhookType["INCOMING"] = 1] = "INCOMING";
1791
- /** Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels */
1792
- WebhookType[WebhookType["CHANNEL_FOLLOWER"] = 2] = "CHANNEL_FOLLOWER";
1793
- /** Application webhooks are webhooks used with Interactions */
1794
- WebhookType[WebhookType["APPLICATION"] = 3] = "APPLICATION";
1795
- })(WebhookType || (WebhookType = {}));
1796
1171
  //# sourceMappingURL=types.js.map