dfx 0.64.1 → 0.65.0

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.
Files changed (44) hide show
  1. package/DiscordConfig.js +1 -2
  2. package/DiscordConfig.js.map +1 -1
  3. package/DiscordGateway/DiscordWS.js +4 -8
  4. package/DiscordGateway/DiscordWS.js.map +1 -1
  5. package/DiscordGateway/Shard.js +3 -6
  6. package/DiscordGateway/Shard.js.map +1 -1
  7. package/DiscordGateway/ShardStore.js +2 -4
  8. package/DiscordGateway/ShardStore.js.map +1 -1
  9. package/DiscordGateway/Sharder.js +2 -4
  10. package/DiscordGateway/Sharder.js.map +1 -1
  11. package/DiscordGateway/WS.js +3 -6
  12. package/DiscordGateway/WS.js.map +1 -1
  13. package/DiscordGateway.js +3 -6
  14. package/DiscordGateway.js.map +1 -1
  15. package/DiscordREST.js +5 -6
  16. package/DiscordREST.js.map +1 -1
  17. package/Helpers/intents.js +6 -12
  18. package/Helpers/intents.js.map +1 -1
  19. package/Helpers/permissions.js +4 -8
  20. package/Helpers/permissions.js.map +1 -1
  21. package/Interactions/builder.js +5 -5
  22. package/Interactions/builder.js.map +1 -1
  23. package/Interactions/context.js +10 -20
  24. package/Interactions/context.js.map +1 -1
  25. package/Interactions/gateway.js +2 -4
  26. package/Interactions/gateway.js.map +1 -1
  27. package/Interactions/webhook.js +1 -2
  28. package/Interactions/webhook.js.map +1 -1
  29. package/Log.js +3 -6
  30. package/Log.js.map +1 -1
  31. package/RateLimit.js +4 -8
  32. package/RateLimit.js.map +1 -1
  33. package/gateway.js +8 -8
  34. package/gateway.js.map +1 -1
  35. package/mjs/version.mjs +1 -1
  36. package/package.json +7 -7
  37. package/src/version.ts +1 -1
  38. package/types.js +11 -72
  39. package/types.js.map +1 -1
  40. package/version.d.ts +1 -1
  41. package/version.js +1 -2
  42. package/version.js.map +1 -1
  43. package/webhooks.js +2 -4
  44. package/webhooks.js.map +1 -1
package/types.js CHANGED
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.WebhookType = exports.VoiceOpcode = exports.VisibilityType = exports.VideoQualityMode = exports.VerificationLevel = exports.UserFlag = exports.TriggerType = exports.TextInputStyle = exports.TeamMemberRoleType = exports.SystemChannelFlag = exports.StickerType = exports.StickerFormatType = exports.StatusType = exports.SortOrderType = exports.RoleFlag = exports.PromptType = exports.PrivacyLevel = exports.PremiumType = exports.PremiumTier = exports.PermissionFlag = exports.OnboardingMode = exports.OAuth2Scope = exports.MutableGuildFeature = exports.MfaLevel = exports.MessageType = exports.MessageFlag = exports.MessageActivityType = exports.MembershipState = exports.KeywordPresetType = exports.InviteTargetType = exports.InteractionType = exports.InteractionCallbackType = exports.IntegrationExpireBehavior = exports.GuildScheduledEventStatus = exports.GuildScheduledEventPrivacyLevel = exports.GuildScheduledEventEntityType = exports.GuildNsfwLevel = exports.GuildMemberFlag = exports.GuildFeature = exports.GatewayOpcode = exports.GatewayIntents = exports.ForumLayoutType = exports.ExplicitContentFilterLevel = exports.EventType = exports.EmbedType = exports.DefaultMessageNotificationLevel = exports.ComponentType = exports.ChannelType = exports.ChannelFlag = exports.ButtonStyle = exports.AuditLogEvent = exports.AttachmentFlag = exports.ApplicationRoleConnectionMetadataType = exports.ApplicationFlag = exports.ApplicationCommandType = exports.ApplicationCommandPermissionType = exports.ApplicationCommandOptionType = exports.AllowedMentionType = exports.ActivityType = exports.ActivityFlag = exports.ActionType = void 0;
7
7
  exports.createRoutes = createRoutes;
8
8
  var ActionType;
9
- exports.ActionType = ActionType;
10
9
  (function (ActionType) {
11
10
  /** blocks a member's message and prevents it from being posted. A custom explanation can be specified and shown to members whenever their message is blocked. */
12
11
  ActionType[ActionType["BLOCK_MESSAGE"] = 1] = "BLOCK_MESSAGE";
@@ -15,7 +14,7 @@ exports.ActionType = ActionType;
15
14
  /** timeout user for a specified duration * */
16
15
  ActionType[ActionType["TIMEOUT"] = 3] = "TIMEOUT";
17
16
  })(ActionType || (exports.ActionType = ActionType = {}));
18
- const ActivityFlag = {
17
+ const ActivityFlag = exports.ActivityFlag = {
19
18
  INSTANCE: 1 << 0,
20
19
  JOIN: 1 << 1,
21
20
  SPECTATE: 1 << 2,
@@ -26,9 +25,7 @@ const ActivityFlag = {
26
25
  PARTY_PRIVACY_VOICE_CHANNEL: 1 << 7,
27
26
  EMBEDDED: 1 << 8
28
27
  };
29
- exports.ActivityFlag = ActivityFlag;
30
28
  var ActivityType;
31
- exports.ActivityType = ActivityType;
32
29
  (function (ActivityType) {
33
30
  ActivityType[ActivityType["GAME"] = 0] = "GAME";
34
31
  ActivityType[ActivityType["STREAMING"] = 1] = "STREAMING";
@@ -38,7 +35,6 @@ exports.ActivityType = ActivityType;
38
35
  ActivityType[ActivityType["COMPETING"] = 5] = "COMPETING";
39
36
  })(ActivityType || (exports.ActivityType = ActivityType = {}));
40
37
  var AllowedMentionType;
41
- exports.AllowedMentionType = AllowedMentionType;
42
38
  (function (AllowedMentionType) {
43
39
  /** Controls role mentions */
44
40
  AllowedMentionType["ROLE_MENTIONS"] = "roles";
@@ -48,7 +44,6 @@ exports.AllowedMentionType = AllowedMentionType;
48
44
  AllowedMentionType["EVERYONE_MENTIONS"] = "everyone";
49
45
  })(AllowedMentionType || (exports.AllowedMentionType = AllowedMentionType = {}));
50
46
  var ApplicationCommandOptionType;
51
- exports.ApplicationCommandOptionType = ApplicationCommandOptionType;
52
47
  (function (ApplicationCommandOptionType) {
53
48
  ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND"] = 1] = "SUB_COMMAND";
54
49
  ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND_GROUP"] = 2] = "SUB_COMMAND_GROUP";
@@ -63,14 +58,12 @@ exports.ApplicationCommandOptionType = ApplicationCommandOptionType;
63
58
  ApplicationCommandOptionType[ApplicationCommandOptionType["ATTACHMENT"] = 11] = "ATTACHMENT";
64
59
  })(ApplicationCommandOptionType || (exports.ApplicationCommandOptionType = ApplicationCommandOptionType = {}));
65
60
  var ApplicationCommandPermissionType;
66
- exports.ApplicationCommandPermissionType = ApplicationCommandPermissionType;
67
61
  (function (ApplicationCommandPermissionType) {
68
62
  ApplicationCommandPermissionType[ApplicationCommandPermissionType["ROLE"] = 1] = "ROLE";
69
63
  ApplicationCommandPermissionType[ApplicationCommandPermissionType["USER"] = 2] = "USER";
70
64
  ApplicationCommandPermissionType[ApplicationCommandPermissionType["CHANNEL"] = 3] = "CHANNEL";
71
65
  })(ApplicationCommandPermissionType || (exports.ApplicationCommandPermissionType = ApplicationCommandPermissionType = {}));
72
66
  var ApplicationCommandType;
73
- exports.ApplicationCommandType = ApplicationCommandType;
74
67
  (function (ApplicationCommandType) {
75
68
  /** Slash commands; a text-based command that shows up when a user types / */
76
69
  ApplicationCommandType[ApplicationCommandType["CHAT_INPUT"] = 1] = "CHAT_INPUT";
@@ -79,7 +72,7 @@ exports.ApplicationCommandType = ApplicationCommandType;
79
72
  /** A UI-based command that shows up when you right click or tap on a message */
80
73
  ApplicationCommandType[ApplicationCommandType["MESSAGE"] = 3] = "MESSAGE";
81
74
  })(ApplicationCommandType || (exports.ApplicationCommandType = ApplicationCommandType = {}));
82
- const ApplicationFlag = {
75
+ const ApplicationFlag = exports.ApplicationFlag = {
83
76
  /** Indicates if an app uses the Auto Moderation API */
84
77
  APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE: 1 << 6,
85
78
  /** Intent required for bots in 100 or more servers to receive presence_update events */
@@ -101,9 +94,7 @@ const ApplicationFlag = {
101
94
  /** Indicates if an app has registered global application commands */
102
95
  APPLICATION_COMMAND_BADGE: 1 << 23
103
96
  };
104
- exports.ApplicationFlag = ApplicationFlag;
105
97
  var ApplicationRoleConnectionMetadataType;
106
- exports.ApplicationRoleConnectionMetadataType = ApplicationRoleConnectionMetadataType;
107
98
  (function (ApplicationRoleConnectionMetadataType) {
108
99
  /** the metadata value (integer) is less than or equal to the guild's configured value (integer) */
109
100
  ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["INTEGER_LESS_THAN_OR_EQUAL"] = 1] = "INTEGER_LESS_THAN_OR_EQUAL";
@@ -122,13 +113,11 @@ exports.ApplicationRoleConnectionMetadataType = ApplicationRoleConnectionMetadat
122
113
  /** the metadata value (integer) is not equal to the guild's configured value (integer; 1) */
123
114
  ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["BOOLEAN_NOT_EQUAL"] = 8] = "BOOLEAN_NOT_EQUAL";
124
115
  })(ApplicationRoleConnectionMetadataType || (exports.ApplicationRoleConnectionMetadataType = ApplicationRoleConnectionMetadataType = {}));
125
- const AttachmentFlag = {
116
+ const AttachmentFlag = exports.AttachmentFlag = {
126
117
  /** this attachment has been edited using the remix feature on mobile */
127
118
  IS_REMIX: 1 << 2
128
119
  };
129
- exports.AttachmentFlag = AttachmentFlag;
130
120
  var AuditLogEvent;
131
- exports.AuditLogEvent = AuditLogEvent;
132
121
  (function (AuditLogEvent) {
133
122
  /** Server settings were updated */
134
123
  AuditLogEvent[AuditLogEvent["GUILD_UPDATE"] = 1] = "GUILD_UPDATE";
@@ -244,7 +233,6 @@ exports.AuditLogEvent = AuditLogEvent;
244
233
  AuditLogEvent[AuditLogEvent["CREATOR_MONETIZATION_TERMS_ACCEPTED"] = 151] = "CREATOR_MONETIZATION_TERMS_ACCEPTED";
245
234
  })(AuditLogEvent || (exports.AuditLogEvent = AuditLogEvent = {}));
246
235
  var ButtonStyle;
247
- exports.ButtonStyle = ButtonStyle;
248
236
  (function (ButtonStyle) {
249
237
  ButtonStyle[ButtonStyle["PRIMARY"] = 1] = "PRIMARY";
250
238
  ButtonStyle[ButtonStyle["SECONDARY"] = 2] = "SECONDARY";
@@ -252,7 +240,7 @@ exports.ButtonStyle = ButtonStyle;
252
240
  ButtonStyle[ButtonStyle["DANGER"] = 4] = "DANGER";
253
241
  ButtonStyle[ButtonStyle["LINK"] = 5] = "LINK";
254
242
  })(ButtonStyle || (exports.ButtonStyle = ButtonStyle = {}));
255
- const ChannelFlag = {
243
+ const ChannelFlag = exports.ChannelFlag = {
256
244
  /** this thread is pinned to the top of its parent GUILD_FORUM or GUILD_MEDIA channel */
257
245
  PINNED: 1 << 1,
258
246
  /** whether a tag is required to be specified when creating a thread in a GUILD_FORUM or a GUILD_MEDIA channel. Tags are specified in the applied_tags field. */
@@ -260,9 +248,7 @@ const ChannelFlag = {
260
248
  /** when set hides the embedded media download options. Available only for media channels */
261
249
  HIDE_MEDIA_DOWNLOAD_OPTIONS: 1 << 15
262
250
  };
263
- exports.ChannelFlag = ChannelFlag;
264
251
  var ChannelType;
265
- exports.ChannelType = ChannelType;
266
252
  (function (ChannelType) {
267
253
  /** a text channel within a server */
268
254
  ChannelType[ChannelType["GUILD_TEXT"] = 0] = "GUILD_TEXT";
@@ -292,7 +278,6 @@ exports.ChannelType = ChannelType;
292
278
  ChannelType[ChannelType["GUILD_MEDIA"] = 16] = "GUILD_MEDIA";
293
279
  })(ChannelType || (exports.ChannelType = ChannelType = {}));
294
280
  var ComponentType;
295
- exports.ComponentType = ComponentType;
296
281
  (function (ComponentType) {
297
282
  /** Container for other components */
298
283
  ComponentType[ComponentType["ACTION_ROW"] = 1] = "ACTION_ROW";
@@ -1301,7 +1286,6 @@ function createRoutes(fetch) {
1301
1286
  };
1302
1287
  }
1303
1288
  var DefaultMessageNotificationLevel;
1304
- exports.DefaultMessageNotificationLevel = DefaultMessageNotificationLevel;
1305
1289
  (function (DefaultMessageNotificationLevel) {
1306
1290
  /** members will receive notifications for all messages by default */
1307
1291
  DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["ALL_MESSAGES"] = 0] = "ALL_MESSAGES";
@@ -1309,7 +1293,6 @@ exports.DefaultMessageNotificationLevel = DefaultMessageNotificationLevel;
1309
1293
  DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["ONLY_MENTIONS"] = 1] = "ONLY_MENTIONS";
1310
1294
  })(DefaultMessageNotificationLevel || (exports.DefaultMessageNotificationLevel = DefaultMessageNotificationLevel = {}));
1311
1295
  var EmbedType;
1312
- exports.EmbedType = EmbedType;
1313
1296
  (function (EmbedType) {
1314
1297
  /** generic embed rendered from embed attributes */
1315
1298
  EmbedType["RICH"] = "rich";
@@ -1325,13 +1308,11 @@ exports.EmbedType = EmbedType;
1325
1308
  EmbedType["LINK"] = "link";
1326
1309
  })(EmbedType || (exports.EmbedType = EmbedType = {}));
1327
1310
  var EventType;
1328
- exports.EventType = EventType;
1329
1311
  (function (EventType) {
1330
1312
  /** when a member sends or edits a message in the guild */
1331
1313
  EventType[EventType["MESSAGE_SEND"] = 1] = "MESSAGE_SEND";
1332
1314
  })(EventType || (exports.EventType = EventType = {}));
1333
1315
  var ExplicitContentFilterLevel;
1334
- exports.ExplicitContentFilterLevel = ExplicitContentFilterLevel;
1335
1316
  (function (ExplicitContentFilterLevel) {
1336
1317
  /** media content will not be scanned */
1337
1318
  ExplicitContentFilterLevel[ExplicitContentFilterLevel["DISABLED"] = 0] = "DISABLED";
@@ -1341,7 +1322,6 @@ exports.ExplicitContentFilterLevel = ExplicitContentFilterLevel;
1341
1322
  ExplicitContentFilterLevel[ExplicitContentFilterLevel["ALL_MEMBERS"] = 2] = "ALL_MEMBERS";
1342
1323
  })(ExplicitContentFilterLevel || (exports.ExplicitContentFilterLevel = ExplicitContentFilterLevel = {}));
1343
1324
  var ForumLayoutType;
1344
- exports.ForumLayoutType = ForumLayoutType;
1345
1325
  (function (ForumLayoutType) {
1346
1326
  /** No default has been set for forum channel */
1347
1327
  ForumLayoutType[ForumLayoutType["NOT_SET"] = 0] = "NOT_SET";
@@ -1350,7 +1330,7 @@ exports.ForumLayoutType = ForumLayoutType;
1350
1330
  /** Display posts as a collection of tiles */
1351
1331
  ForumLayoutType[ForumLayoutType["GALLERY_VIEW"] = 2] = "GALLERY_VIEW";
1352
1332
  })(ForumLayoutType || (exports.ForumLayoutType = ForumLayoutType = {}));
1353
- const GatewayIntents = {
1333
+ const GatewayIntents = exports.GatewayIntents = {
1354
1334
  GUILDS: 1 << 0,
1355
1335
  GUILD_MEMBERS: 1 << 1,
1356
1336
  GUILD_MODERATION: 1 << 2,
@@ -1371,9 +1351,7 @@ const GatewayIntents = {
1371
1351
  AUTO_MODERATION_CONFIGURATION: 1 << 20,
1372
1352
  AUTO_MODERATION_EXECUTION: 1 << 21
1373
1353
  };
1374
- exports.GatewayIntents = GatewayIntents;
1375
1354
  var GatewayOpcode;
1376
- exports.GatewayOpcode = GatewayOpcode;
1377
1355
  (function (GatewayOpcode) {
1378
1356
  /** An event was dispatched. */
1379
1357
  GatewayOpcode[GatewayOpcode["DISPATCH"] = 0] = "DISPATCH";
@@ -1399,7 +1377,6 @@ exports.GatewayOpcode = GatewayOpcode;
1399
1377
  GatewayOpcode[GatewayOpcode["HEARTBEAT_ACK"] = 11] = "HEARTBEAT_ACK";
1400
1378
  })(GatewayOpcode || (exports.GatewayOpcode = GatewayOpcode = {}));
1401
1379
  var GuildFeature;
1402
- exports.GuildFeature = GuildFeature;
1403
1380
  (function (GuildFeature) {
1404
1381
  /** guild has access to set an animated guild banner image */
1405
1382
  GuildFeature["ANIMATED_BANNER"] = "ANIMATED_BANNER";
@@ -1456,7 +1433,7 @@ exports.GuildFeature = GuildFeature;
1456
1433
  /** guild has enabled the welcome screen */
1457
1434
  GuildFeature["WELCOME_SCREEN_ENABLED"] = "WELCOME_SCREEN_ENABLED";
1458
1435
  })(GuildFeature || (exports.GuildFeature = GuildFeature = {}));
1459
- const GuildMemberFlag = {
1436
+ const GuildMemberFlag = exports.GuildMemberFlag = {
1460
1437
  /** Member has left and rejoined the guild */
1461
1438
  DID_REJOIN: 1 << 0,
1462
1439
  /** Member has completed onboarding */
@@ -1466,9 +1443,7 @@ const GuildMemberFlag = {
1466
1443
  /** Member has started onboarding */
1467
1444
  STARTED_ONBOARDING: 1 << 3
1468
1445
  };
1469
- exports.GuildMemberFlag = GuildMemberFlag;
1470
1446
  var GuildNsfwLevel;
1471
- exports.GuildNsfwLevel = GuildNsfwLevel;
1472
1447
  (function (GuildNsfwLevel) {
1473
1448
  GuildNsfwLevel[GuildNsfwLevel["DEFAULT"] = 0] = "DEFAULT";
1474
1449
  GuildNsfwLevel[GuildNsfwLevel["EXPLICIT"] = 1] = "EXPLICIT";
@@ -1476,20 +1451,17 @@ exports.GuildNsfwLevel = GuildNsfwLevel;
1476
1451
  GuildNsfwLevel[GuildNsfwLevel["AGE_RESTRICTED"] = 3] = "AGE_RESTRICTED";
1477
1452
  })(GuildNsfwLevel || (exports.GuildNsfwLevel = GuildNsfwLevel = {}));
1478
1453
  var GuildScheduledEventEntityType;
1479
- exports.GuildScheduledEventEntityType = GuildScheduledEventEntityType;
1480
1454
  (function (GuildScheduledEventEntityType) {
1481
1455
  GuildScheduledEventEntityType[GuildScheduledEventEntityType["STAGE_INSTANCE"] = 1] = "STAGE_INSTANCE";
1482
1456
  GuildScheduledEventEntityType[GuildScheduledEventEntityType["VOICE"] = 2] = "VOICE";
1483
1457
  GuildScheduledEventEntityType[GuildScheduledEventEntityType["EXTERNAL"] = 3] = "EXTERNAL";
1484
1458
  })(GuildScheduledEventEntityType || (exports.GuildScheduledEventEntityType = GuildScheduledEventEntityType = {}));
1485
1459
  var GuildScheduledEventPrivacyLevel;
1486
- exports.GuildScheduledEventPrivacyLevel = GuildScheduledEventPrivacyLevel;
1487
1460
  (function (GuildScheduledEventPrivacyLevel) {
1488
1461
  /** the scheduled event is only accessible to guild members */
1489
1462
  GuildScheduledEventPrivacyLevel[GuildScheduledEventPrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
1490
1463
  })(GuildScheduledEventPrivacyLevel || (exports.GuildScheduledEventPrivacyLevel = GuildScheduledEventPrivacyLevel = {}));
1491
1464
  var GuildScheduledEventStatus;
1492
- exports.GuildScheduledEventStatus = GuildScheduledEventStatus;
1493
1465
  (function (GuildScheduledEventStatus) {
1494
1466
  GuildScheduledEventStatus[GuildScheduledEventStatus["SCHEDULED"] = 1] = "SCHEDULED";
1495
1467
  GuildScheduledEventStatus[GuildScheduledEventStatus["ACTIVE"] = 2] = "ACTIVE";
@@ -1497,13 +1469,11 @@ exports.GuildScheduledEventStatus = GuildScheduledEventStatus;
1497
1469
  GuildScheduledEventStatus[GuildScheduledEventStatus["CANCELED"] = 4] = "CANCELED";
1498
1470
  })(GuildScheduledEventStatus || (exports.GuildScheduledEventStatus = GuildScheduledEventStatus = {}));
1499
1471
  var IntegrationExpireBehavior;
1500
- exports.IntegrationExpireBehavior = IntegrationExpireBehavior;
1501
1472
  (function (IntegrationExpireBehavior) {
1502
1473
  IntegrationExpireBehavior[IntegrationExpireBehavior["REMOVE_ROLE"] = 0] = "REMOVE_ROLE";
1503
1474
  IntegrationExpireBehavior[IntegrationExpireBehavior["KICK"] = 1] = "KICK";
1504
1475
  })(IntegrationExpireBehavior || (exports.IntegrationExpireBehavior = IntegrationExpireBehavior = {}));
1505
1476
  var InteractionCallbackType;
1506
- exports.InteractionCallbackType = InteractionCallbackType;
1507
1477
  (function (InteractionCallbackType) {
1508
1478
  /** ACK a Ping */
1509
1479
  InteractionCallbackType[InteractionCallbackType["PONG"] = 1] = "PONG";
@@ -1521,7 +1491,6 @@ exports.InteractionCallbackType = InteractionCallbackType;
1521
1491
  InteractionCallbackType[InteractionCallbackType["MODAL"] = 9] = "MODAL";
1522
1492
  })(InteractionCallbackType || (exports.InteractionCallbackType = InteractionCallbackType = {}));
1523
1493
  var InteractionType;
1524
- exports.InteractionType = InteractionType;
1525
1494
  (function (InteractionType) {
1526
1495
  InteractionType[InteractionType["PING"] = 1] = "PING";
1527
1496
  InteractionType[InteractionType["APPLICATION_COMMAND"] = 2] = "APPLICATION_COMMAND";
@@ -1530,13 +1499,11 @@ exports.InteractionType = InteractionType;
1530
1499
  InteractionType[InteractionType["MODAL_SUBMIT"] = 5] = "MODAL_SUBMIT";
1531
1500
  })(InteractionType || (exports.InteractionType = InteractionType = {}));
1532
1501
  var InviteTargetType;
1533
- exports.InviteTargetType = InviteTargetType;
1534
1502
  (function (InviteTargetType) {
1535
1503
  InviteTargetType[InviteTargetType["STREAM"] = 1] = "STREAM";
1536
1504
  InviteTargetType[InviteTargetType["EMBEDDED_APPLICATION"] = 2] = "EMBEDDED_APPLICATION";
1537
1505
  })(InviteTargetType || (exports.InviteTargetType = InviteTargetType = {}));
1538
1506
  var KeywordPresetType;
1539
- exports.KeywordPresetType = KeywordPresetType;
1540
1507
  (function (KeywordPresetType) {
1541
1508
  /** words that may be considered forms of swearing or cursing */
1542
1509
  KeywordPresetType[KeywordPresetType["PROFANITY"] = 1] = "PROFANITY";
@@ -1546,20 +1513,18 @@ exports.KeywordPresetType = KeywordPresetType;
1546
1513
  KeywordPresetType[KeywordPresetType["SLURS"] = 3] = "SLURS";
1547
1514
  })(KeywordPresetType || (exports.KeywordPresetType = KeywordPresetType = {}));
1548
1515
  var MembershipState;
1549
- exports.MembershipState = MembershipState;
1550
1516
  (function (MembershipState) {
1551
1517
  MembershipState[MembershipState["INVITED"] = 1] = "INVITED";
1552
1518
  MembershipState[MembershipState["ACCEPTED"] = 2] = "ACCEPTED";
1553
1519
  })(MembershipState || (exports.MembershipState = MembershipState = {}));
1554
1520
  var MessageActivityType;
1555
- exports.MessageActivityType = MessageActivityType;
1556
1521
  (function (MessageActivityType) {
1557
1522
  MessageActivityType[MessageActivityType["JOIN"] = 1] = "JOIN";
1558
1523
  MessageActivityType[MessageActivityType["SPECTATE"] = 2] = "SPECTATE";
1559
1524
  MessageActivityType[MessageActivityType["LISTEN"] = 3] = "LISTEN";
1560
1525
  MessageActivityType[MessageActivityType["JOIN_REQUEST"] = 5] = "JOIN_REQUEST";
1561
1526
  })(MessageActivityType || (exports.MessageActivityType = MessageActivityType = {}));
1562
- const MessageFlag = {
1527
+ const MessageFlag = exports.MessageFlag = {
1563
1528
  /** this message has been published to subscribed channels (via Channel Following) */
1564
1529
  CROSSPOSTED: 1 << 0,
1565
1530
  /** this message originated from a message in another channel (via Channel Following) */
@@ -1583,9 +1548,7 @@ const MessageFlag = {
1583
1548
  /** this message is a voice message */
1584
1549
  IS_VOICE_MESSAGE: 1 << 13
1585
1550
  };
1586
- exports.MessageFlag = MessageFlag;
1587
1551
  var MessageType;
1588
- exports.MessageType = MessageType;
1589
1552
  (function (MessageType) {
1590
1553
  MessageType[MessageType["DEFAULT"] = 0] = "DEFAULT";
1591
1554
  MessageType[MessageType["RECIPIENT_ADD"] = 1] = "RECIPIENT_ADD";
@@ -1620,7 +1583,6 @@ exports.MessageType = MessageType;
1620
1583
  MessageType[MessageType["GUILD_APPLICATION_PREMIUM_SUBSCRIPTION"] = 32] = "GUILD_APPLICATION_PREMIUM_SUBSCRIPTION";
1621
1584
  })(MessageType || (exports.MessageType = MessageType = {}));
1622
1585
  var MfaLevel;
1623
- exports.MfaLevel = MfaLevel;
1624
1586
  (function (MfaLevel) {
1625
1587
  /** guild has no MFA/2FA requirement for moderation actions */
1626
1588
  MfaLevel[MfaLevel["NONE"] = 0] = "NONE";
@@ -1628,7 +1590,6 @@ exports.MfaLevel = MfaLevel;
1628
1590
  MfaLevel[MfaLevel["ELEVATED"] = 1] = "ELEVATED";
1629
1591
  })(MfaLevel || (exports.MfaLevel = MfaLevel = {}));
1630
1592
  var MutableGuildFeature;
1631
- exports.MutableGuildFeature = MutableGuildFeature;
1632
1593
  (function (MutableGuildFeature) {
1633
1594
  MutableGuildFeature["COMMUNITY"] = "COMMUNITY";
1634
1595
  MutableGuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
@@ -1636,7 +1597,6 @@ exports.MutableGuildFeature = MutableGuildFeature;
1636
1597
  MutableGuildFeature["RAID_ALERTS_DISABLED"] = "RAID_ALERTS_DISABLED";
1637
1598
  })(MutableGuildFeature || (exports.MutableGuildFeature = MutableGuildFeature = {}));
1638
1599
  var OAuth2Scope;
1639
- exports.OAuth2Scope = OAuth2Scope;
1640
1600
  (function (OAuth2Scope) {
1641
1601
  /** allows your app to fetch data from a user's "Now Playing/Recently Played" list — not currently available for apps */
1642
1602
  OAuth2Scope["ACTIVITIES_READ"] = "activities.read";
@@ -1696,14 +1656,13 @@ exports.OAuth2Scope = OAuth2Scope;
1696
1656
  OAuth2Scope["WEBHOOK_INCOMING"] = "webhook.incoming";
1697
1657
  })(OAuth2Scope || (exports.OAuth2Scope = OAuth2Scope = {}));
1698
1658
  var OnboardingMode;
1699
- exports.OnboardingMode = OnboardingMode;
1700
1659
  (function (OnboardingMode) {
1701
1660
  /** Counts only Default Channels towards constraints */
1702
1661
  OnboardingMode[OnboardingMode["ONBOARDING_DEFAULT"] = 0] = "ONBOARDING_DEFAULT";
1703
1662
  /** Counts Default Channels and Questions towards constraints */
1704
1663
  OnboardingMode[OnboardingMode["ONBOARDING_ADVANCED"] = 1] = "ONBOARDING_ADVANCED";
1705
1664
  })(OnboardingMode || (exports.OnboardingMode = OnboardingMode = {}));
1706
- const PermissionFlag = {
1665
+ const PermissionFlag = exports.PermissionFlag = {
1707
1666
  /** Allows creation of instant invites */
1708
1667
  CREATE_INSTANT_INVITE: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(0),
1709
1668
  /** Allows kicking members */
@@ -1795,9 +1754,7 @@ const PermissionFlag = {
1795
1754
  /** Allows sending voice messages */
1796
1755
  SEND_VOICE_MESSAGES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(46)
1797
1756
  };
1798
- exports.PermissionFlag = PermissionFlag;
1799
1757
  var PremiumTier;
1800
- exports.PremiumTier = PremiumTier;
1801
1758
  (function (PremiumTier) {
1802
1759
  /** guild has not unlocked any Server Boost perks */
1803
1760
  PremiumTier[PremiumTier["NONE"] = 0] = "NONE";
@@ -1809,7 +1766,6 @@ exports.PremiumTier = PremiumTier;
1809
1766
  PremiumTier[PremiumTier["TIER_3"] = 3] = "TIER_3";
1810
1767
  })(PremiumTier || (exports.PremiumTier = PremiumTier = {}));
1811
1768
  var PremiumType;
1812
- exports.PremiumType = PremiumType;
1813
1769
  (function (PremiumType) {
1814
1770
  PremiumType[PremiumType["NONE"] = 0] = "NONE";
1815
1771
  PremiumType[PremiumType["NITRO_CLASSIC"] = 1] = "NITRO_CLASSIC";
@@ -1817,7 +1773,6 @@ exports.PremiumType = PremiumType;
1817
1773
  PremiumType[PremiumType["NITRO_BASIC"] = 3] = "NITRO_BASIC";
1818
1774
  })(PremiumType || (exports.PremiumType = PremiumType = {}));
1819
1775
  var PrivacyLevel;
1820
- exports.PrivacyLevel = PrivacyLevel;
1821
1776
  (function (PrivacyLevel) {
1822
1777
  /** The Stage instance is visible publicly. (deprecated) */
1823
1778
  PrivacyLevel[PrivacyLevel["PUBLIC"] = 1] = "PUBLIC";
@@ -1825,18 +1780,15 @@ exports.PrivacyLevel = PrivacyLevel;
1825
1780
  PrivacyLevel[PrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
1826
1781
  })(PrivacyLevel || (exports.PrivacyLevel = PrivacyLevel = {}));
1827
1782
  var PromptType;
1828
- exports.PromptType = PromptType;
1829
1783
  (function (PromptType) {
1830
1784
  PromptType[PromptType["MULTIPLE_CHOICE"] = 0] = "MULTIPLE_CHOICE";
1831
1785
  PromptType[PromptType["DROPDOWN"] = 1] = "DROPDOWN";
1832
1786
  })(PromptType || (exports.PromptType = PromptType = {}));
1833
- const RoleFlag = {
1787
+ const RoleFlag = exports.RoleFlag = {
1834
1788
  /** role can be selected by members in an onboarding prompt */
1835
1789
  IN_PROMPT: 1 << 0
1836
1790
  };
1837
- exports.RoleFlag = RoleFlag;
1838
1791
  var SortOrderType;
1839
- exports.SortOrderType = SortOrderType;
1840
1792
  (function (SortOrderType) {
1841
1793
  /** Sort forum posts by activity */
1842
1794
  SortOrderType[SortOrderType["LATEST_ACTIVITY"] = 0] = "LATEST_ACTIVITY";
@@ -1844,7 +1796,6 @@ exports.SortOrderType = SortOrderType;
1844
1796
  SortOrderType[SortOrderType["CREATION_DATE"] = 1] = "CREATION_DATE";
1845
1797
  })(SortOrderType || (exports.SortOrderType = SortOrderType = {}));
1846
1798
  var StatusType;
1847
- exports.StatusType = StatusType;
1848
1799
  (function (StatusType) {
1849
1800
  /** Online */
1850
1801
  StatusType["ONLINE"] = "online";
@@ -1858,7 +1809,6 @@ exports.StatusType = StatusType;
1858
1809
  StatusType["OFFLINE"] = "offline";
1859
1810
  })(StatusType || (exports.StatusType = StatusType = {}));
1860
1811
  var StickerFormatType;
1861
- exports.StickerFormatType = StickerFormatType;
1862
1812
  (function (StickerFormatType) {
1863
1813
  StickerFormatType[StickerFormatType["PNG"] = 1] = "PNG";
1864
1814
  StickerFormatType[StickerFormatType["APNG"] = 2] = "APNG";
@@ -1866,14 +1816,13 @@ exports.StickerFormatType = StickerFormatType;
1866
1816
  StickerFormatType[StickerFormatType["GIF"] = 4] = "GIF";
1867
1817
  })(StickerFormatType || (exports.StickerFormatType = StickerFormatType = {}));
1868
1818
  var StickerType;
1869
- exports.StickerType = StickerType;
1870
1819
  (function (StickerType) {
1871
1820
  /** an official sticker in a pack */
1872
1821
  StickerType[StickerType["STANDARD"] = 1] = "STANDARD";
1873
1822
  /** a sticker uploaded to a guild for the guild's members */
1874
1823
  StickerType[StickerType["GUILD"] = 2] = "GUILD";
1875
1824
  })(StickerType || (exports.StickerType = StickerType = {}));
1876
- const SystemChannelFlag = {
1825
+ const SystemChannelFlag = exports.SystemChannelFlag = {
1877
1826
  /** Suppress member join notifications */
1878
1827
  SUPPRESS_JOIN_NOTIFICATIONS: 1 << 0,
1879
1828
  /** Suppress server boost notifications */
@@ -1887,9 +1836,7 @@ const SystemChannelFlag = {
1887
1836
  /** Hide role subscription sticker reply buttons */
1888
1837
  SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES: 1 << 5
1889
1838
  };
1890
- exports.SystemChannelFlag = SystemChannelFlag;
1891
1839
  var TeamMemberRoleType;
1892
- exports.TeamMemberRoleType = TeamMemberRoleType;
1893
1840
  (function (TeamMemberRoleType) {
1894
1841
  /** Owners are the most permissiable role, and can take destructive, irreversible actions like deleting team-owned apps or the team itself. Teams are limited to 1 owner. */
1895
1842
  TeamMemberRoleType["OWNER"] = "";
@@ -1901,7 +1848,6 @@ exports.TeamMemberRoleType = TeamMemberRoleType;
1901
1848
  TeamMemberRoleType["READONLY"] = "read_only";
1902
1849
  })(TeamMemberRoleType || (exports.TeamMemberRoleType = TeamMemberRoleType = {}));
1903
1850
  var TextInputStyle;
1904
- exports.TextInputStyle = TextInputStyle;
1905
1851
  (function (TextInputStyle) {
1906
1852
  /** Single-line input */
1907
1853
  TextInputStyle[TextInputStyle["SHORT"] = 1] = "SHORT";
@@ -1909,7 +1855,6 @@ exports.TextInputStyle = TextInputStyle;
1909
1855
  TextInputStyle[TextInputStyle["PARAGRAPH"] = 2] = "PARAGRAPH";
1910
1856
  })(TextInputStyle || (exports.TextInputStyle = TextInputStyle = {}));
1911
1857
  var TriggerType;
1912
- exports.TriggerType = TriggerType;
1913
1858
  (function (TriggerType) {
1914
1859
  /** check if content contains words from a user defined list of keywords */
1915
1860
  TriggerType[TriggerType["KEYWORD"] = 1] = "KEYWORD";
@@ -1920,7 +1865,7 @@ exports.TriggerType = TriggerType;
1920
1865
  /** check if content contains more unique mentions than allowed */
1921
1866
  TriggerType[TriggerType["MENTION_SPAM"] = 5] = "MENTION_SPAM";
1922
1867
  })(TriggerType || (exports.TriggerType = TriggerType = {}));
1923
- const UserFlag = {
1868
+ const UserFlag = exports.UserFlag = {
1924
1869
  /** Discord Employee */
1925
1870
  STAFF: 1 << 0,
1926
1871
  /** Partnered Server Owner */
@@ -1952,9 +1897,7 @@ const UserFlag = {
1952
1897
  /** User is an Active Developer */
1953
1898
  ACTIVE_DEVELOPER: 1 << 22
1954
1899
  };
1955
- exports.UserFlag = UserFlag;
1956
1900
  var VerificationLevel;
1957
- exports.VerificationLevel = VerificationLevel;
1958
1901
  (function (VerificationLevel) {
1959
1902
  /** unrestricted */
1960
1903
  VerificationLevel[VerificationLevel["NONE"] = 0] = "NONE";
@@ -1968,7 +1911,6 @@ exports.VerificationLevel = VerificationLevel;
1968
1911
  VerificationLevel[VerificationLevel["VERY_HIGH"] = 4] = "VERY_HIGH";
1969
1912
  })(VerificationLevel || (exports.VerificationLevel = VerificationLevel = {}));
1970
1913
  var VideoQualityMode;
1971
- exports.VideoQualityMode = VideoQualityMode;
1972
1914
  (function (VideoQualityMode) {
1973
1915
  /** Discord chooses the quality for optimal performance */
1974
1916
  VideoQualityMode[VideoQualityMode["AUTO"] = 1] = "AUTO";
@@ -1976,7 +1918,6 @@ exports.VideoQualityMode = VideoQualityMode;
1976
1918
  VideoQualityMode[VideoQualityMode["FULL"] = 2] = "FULL";
1977
1919
  })(VideoQualityMode || (exports.VideoQualityMode = VideoQualityMode = {}));
1978
1920
  var VisibilityType;
1979
- exports.VisibilityType = VisibilityType;
1980
1921
  (function (VisibilityType) {
1981
1922
  /** invisible to everyone except the user themselves */
1982
1923
  VisibilityType[VisibilityType["NONE"] = 0] = "NONE";
@@ -1984,7 +1925,6 @@ exports.VisibilityType = VisibilityType;
1984
1925
  VisibilityType[VisibilityType["EVERYONE"] = 1] = "EVERYONE";
1985
1926
  })(VisibilityType || (exports.VisibilityType = VisibilityType = {}));
1986
1927
  var VoiceOpcode;
1987
- exports.VoiceOpcode = VoiceOpcode;
1988
1928
  (function (VoiceOpcode) {
1989
1929
  /** Begin a voice websocket connection. */
1990
1930
  VoiceOpcode[VoiceOpcode["IDENTIFY"] = 0] = "IDENTIFY";
@@ -2010,7 +1950,6 @@ exports.VoiceOpcode = VoiceOpcode;
2010
1950
  VoiceOpcode[VoiceOpcode["CLIENT_DISCONNECT"] = 13] = "CLIENT_DISCONNECT";
2011
1951
  })(VoiceOpcode || (exports.VoiceOpcode = VoiceOpcode = {}));
2012
1952
  var WebhookType;
2013
- exports.WebhookType = WebhookType;
2014
1953
  (function (WebhookType) {
2015
1954
  /** Incoming Webhooks can post messages to channels with a generated token */
2016
1955
  WebhookType[WebhookType["INCOMING"] = 1] = "INCOMING";