disgroove 2.2.4-dev.e509559 → 2.2.5-dev.3beface
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/README.md +1 -0
- package/dist/lib/Client.d.ts +76 -9
- package/dist/lib/Client.js +248 -77
- package/dist/lib/constants.d.ts +78 -10
- package/dist/lib/constants.js +79 -6
- package/dist/lib/gateway/Shard.d.ts +3 -1
- package/dist/lib/gateway/Shard.js +51 -0
- package/dist/lib/rest/Endpoints.d.ts +9 -1
- package/dist/lib/rest/Endpoints.js +24 -4
- package/dist/lib/transformers/ApplicationCommands.js +2 -0
- package/dist/lib/transformers/Applications.js +2 -0
- package/dist/lib/transformers/Interactions.d.ts +3 -1
- package/dist/lib/transformers/Interactions.js +42 -0
- package/dist/lib/transformers/Soundboards.d.ts +5 -0
- package/dist/lib/transformers/Soundboards.js +31 -0
- package/dist/lib/transformers/Stickers.js +0 -2
- package/dist/lib/transformers/Subscriptions.d.ts +5 -0
- package/dist/lib/transformers/Subscriptions.js +32 -0
- package/dist/lib/transformers/index.d.ts +2 -0
- package/dist/lib/transformers/index.js +2 -0
- package/dist/lib/types/application-command.d.ts +3 -1
- package/dist/lib/types/application.d.ts +31 -1
- package/dist/lib/types/entitlements.d.ts +1 -1
- package/dist/lib/types/gateway-events.d.ts +43 -1
- package/dist/lib/types/guild.d.ts +2 -0
- package/dist/lib/types/interaction.d.ts +44 -0
- package/dist/lib/types/message.d.ts +26 -5
- package/dist/lib/types/sku.d.ts +1 -1
- package/dist/lib/types/soundboard.d.ts +23 -0
- package/dist/lib/types/soundboard.js +2 -0
- package/dist/lib/types/sticker.d.ts +0 -2
- package/dist/lib/types/subscription.d.ts +25 -0
- package/dist/lib/types/subscription.js +2 -0
- package/dist/lib/utils/CDN.d.ts +1 -0
- package/dist/lib/utils/CDN.js +3 -1
- package/dist/lib/utils/formatters.d.ts +2 -2
- package/dist/lib/utils/formatters.js +5 -2
- package/dist/package.json +4 -4
- package/package.json +35 -35
package/dist/lib/constants.d.ts
CHANGED
@@ -12,7 +12,8 @@ export declare enum TimestampStyles {
|
|
12
12
|
export declare enum GuildNavigationTypes {
|
13
13
|
Customize = "customize",
|
14
14
|
BrowseChannels = "browse",
|
15
|
-
ServerGuide = "guide"
|
15
|
+
ServerGuide = "guide",
|
16
|
+
LinkedRoles = "linked-roles"
|
16
17
|
}
|
17
18
|
/** https://discord.com/developers/docs/reference#image-formatting-image-formats */
|
18
19
|
export declare enum ImageFormats {
|
@@ -62,7 +63,8 @@ export declare enum Locales {
|
|
62
63
|
export declare enum ApplicationCommandTypes {
|
63
64
|
ChatInput = 1,
|
64
65
|
User = 2,
|
65
|
-
Message = 3
|
66
|
+
Message = 3,
|
67
|
+
PrimaryEntryPoint = 4
|
66
68
|
}
|
67
69
|
/** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-type */
|
68
70
|
export declare enum ApplicationCommandOptionType {
|
@@ -78,6 +80,11 @@ export declare enum ApplicationCommandOptionType {
|
|
78
80
|
Number = 10,
|
79
81
|
Attachment = 11
|
80
82
|
}
|
83
|
+
/** https://discord.com/developers/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types */
|
84
|
+
export declare enum EntryPointCommandHandlerTypes {
|
85
|
+
AppHandler = 1,
|
86
|
+
DiscordLaunchActivity = 2
|
87
|
+
}
|
81
88
|
/** https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permission-type */
|
82
89
|
export declare enum ApplicationCommandPermissionType {
|
83
90
|
Role = 1,
|
@@ -118,7 +125,8 @@ export declare enum InteractionCallbackType {
|
|
118
125
|
UpdateMessage = 7,
|
119
126
|
ApplicationCommandAutocompleteResult = 8,
|
120
127
|
Modal = 9,
|
121
|
-
PremiumRequired = 10
|
128
|
+
PremiumRequired = 10,
|
129
|
+
LaunchActivity = 12
|
122
130
|
}
|
123
131
|
/** https://discord.com/developers/docs/interactions/message-components#button-object-button-styles */
|
124
132
|
export declare enum ButtonStyles {
|
@@ -152,6 +160,11 @@ export declare enum ApplicationFlags {
|
|
152
160
|
GatewayMessageContentLimited = 524288,
|
153
161
|
ApplicationCommandBadge = 8388608
|
154
162
|
}
|
163
|
+
/** https://discord.com/developers/docs/resources/application#get-application-activity-instance-activity-location-kind-enum */
|
164
|
+
export declare enum ActivityLocationKind {
|
165
|
+
GuildChannel = "gc",
|
166
|
+
PrivateChannel = "pc"
|
167
|
+
}
|
155
168
|
/** https://discord.com/developers/docs/resources/application-role-connection-metadata#application-role-connection-metadata-object-application-role-connection-metadata-type */
|
156
169
|
export declare enum ApplicationRoleConnectionMetadataType {
|
157
170
|
IntegerLessThanOrEqual = 1,
|
@@ -213,6 +226,9 @@ export declare enum AuditLogEvents {
|
|
213
226
|
ThreadUpdate = 111,
|
214
227
|
ThreadDelete = 112,
|
215
228
|
ApplicationCommandPermissionUpdate = 121,
|
229
|
+
SoundboardSoundCreate = 130,
|
230
|
+
SoundboardSoundUpdate = 131,
|
231
|
+
SoundboardSoundDelete = 132,
|
216
232
|
AutoModerationRuleCreate = 140,
|
217
233
|
AutoModerationRuleUpdate = 141,
|
218
234
|
AutoModerationRuleDelete = 142,
|
@@ -356,6 +372,7 @@ export declare enum GuildFeatures {
|
|
356
372
|
InvitesDisabled = "INVITES_DISABLED",
|
357
373
|
InviteSplash = "INVITE_SPLASH",
|
358
374
|
MemberVerificationGateEnabled = "MEMBER_VERIFICATION_GATE_ENABLED",
|
375
|
+
MoreSoundboard = "MORE_SOUNDBOARD",
|
359
376
|
MoreStickers = "MORE_STICKERS",
|
360
377
|
News = "NEWS",
|
361
378
|
Partnered = "PARTNERED",
|
@@ -364,6 +381,7 @@ export declare enum GuildFeatures {
|
|
364
381
|
RoleIcons = "ROLE_ICONS",
|
365
382
|
RoleSubscriptionsAvailableForPurchase = "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE",
|
366
383
|
RoleSubscriptionsEnabled = "ROLE_SUBSCRIPTIONS_ENABLED",
|
384
|
+
Soundboard = "SOUNDBOARD",
|
367
385
|
TicketedEventsEnabled = "TICKETED_EVENTS_ENABLED",
|
368
386
|
VanityURL = "VANITY_URL",
|
369
387
|
Verified = "VERIFIED",
|
@@ -382,7 +400,12 @@ export declare enum GuildMemberFlags {
|
|
382
400
|
DidRejoin = 1,
|
383
401
|
CompletedOnboarding = 2,
|
384
402
|
BypassesVerification = 4,
|
385
|
-
StartedOnboarding = 8
|
403
|
+
StartedOnboarding = 8,
|
404
|
+
IsGuest = 16,
|
405
|
+
StartedHomeActions = 32,
|
406
|
+
CompletedHomeActions = 64,
|
407
|
+
AutomodQuarantinedUsername = 128,
|
408
|
+
DMSettingsUpsellAckownledge = 512
|
386
409
|
}
|
387
410
|
/** https://discord.com/developers/docs/resources/guild#integration-object-integration-expire-behaviors */
|
388
411
|
export declare enum IntegrationExpireBehaviors {
|
@@ -504,7 +527,8 @@ export declare enum MessageTypes {
|
|
504
527
|
GuildIncidentAlertModeDisabled = 37,
|
505
528
|
GuildIncidentReportRaid = 38,
|
506
529
|
GuildIncidentReportFalseAlarm = 39,
|
507
|
-
PurchaseNotification = 44
|
530
|
+
PurchaseNotification = 44,
|
531
|
+
PollResult = 46
|
508
532
|
}
|
509
533
|
/** https://discord.com/developers/docs/resources/message#message-object-message-activity-types */
|
510
534
|
export declare enum MessageActivityTypes {
|
@@ -532,6 +556,16 @@ export declare enum MessageReferenceTypes {
|
|
532
556
|
Default = 0,
|
533
557
|
Forward = 1
|
534
558
|
}
|
559
|
+
/** https://discord.com/developers/docs/resources/message#embed-object-embed-types */
|
560
|
+
export declare enum EmbedTypes {
|
561
|
+
Rich = "rich",
|
562
|
+
Image = "image",
|
563
|
+
Video = "video",
|
564
|
+
Gifv = "gifv",
|
565
|
+
Article = "article",
|
566
|
+
Link = "link",
|
567
|
+
PollResult = "poll_result"
|
568
|
+
}
|
535
569
|
/** https://discord.com/developers/docs/resources/message#attachment-object-attachment-flags */
|
536
570
|
export declare enum AttachmentFlags {
|
537
571
|
IsRemix = 4
|
@@ -595,6 +629,7 @@ export declare enum PremiumTypes {
|
|
595
629
|
}
|
596
630
|
/** https://discord.com/developers/docs/resources/user#connection-object-services */
|
597
631
|
export declare enum Services {
|
632
|
+
AmazonMusic = "amazon-music",
|
598
633
|
BattleNet = "battlenet",
|
599
634
|
Ebay = "ebay",
|
600
635
|
EpicGames = "epicgames",
|
@@ -621,6 +656,12 @@ export declare enum VisibilityTypes {
|
|
621
656
|
None = 0,
|
622
657
|
Everyone = 1
|
623
658
|
}
|
659
|
+
/** https://discord.com/developers/docs/resources/subscription#subscription-statuses */
|
660
|
+
export declare enum SubscriptionStatuses {
|
661
|
+
Active = 0,
|
662
|
+
Ending = 1,
|
663
|
+
Inactive = 2
|
664
|
+
}
|
624
665
|
/** https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-types */
|
625
666
|
export declare enum WebhookTypes {
|
626
667
|
Incoming = 1,
|
@@ -638,7 +679,7 @@ export declare enum GatewayIntents {
|
|
638
679
|
Guilds = 1,
|
639
680
|
GuildMembers = 2,
|
640
681
|
GuildModeration = 4,
|
641
|
-
|
682
|
+
GuildExpressions = 8,
|
642
683
|
GuildIntegrations = 16,
|
643
684
|
GuildWebhooks = 32,
|
644
685
|
GuildInvites = 64,
|
@@ -711,6 +752,11 @@ export declare enum GatewayEvents {
|
|
711
752
|
GuildScheduledEventDelete = "GUILD_SCHEDULED_EVENT_DELETE",
|
712
753
|
GuildScheduledEventUserAdd = "GUILD_SCHEDULED_EVENT_USER_ADD",
|
713
754
|
GuildScheduledEventUserRemove = "GUILD_SCHEDULED_EVENT_USER_REMOVE",
|
755
|
+
GuildSoundboardSoundCreate = "GUILD_SOUNDBOARD_SOUND_CREATE",
|
756
|
+
GuildSoundboardSoundUpdate = "GUILD_SOUNDBOARD_SOUND_UPDATE",
|
757
|
+
GuildSoundboardSoundDelete = "GUILD_SOUNDBOARD_SOUND_DELETE",
|
758
|
+
GuildSoundboardSoundsUpdate = "GUILD_SOUNDBOARD_SOUNDS_UPDATE",
|
759
|
+
SoundboardSounds = "SOUNDBOARD_SOUNDS",
|
714
760
|
IntegrationCreate = "INTEGRATION_CREATE",
|
715
761
|
IntegrationUpdate = "INTEGRATION_UPDATE",
|
716
762
|
IntegrationDelete = "INTEGRATION_DELETE",
|
@@ -729,8 +775,12 @@ export declare enum GatewayEvents {
|
|
729
775
|
StageInstanceCreate = "STAGE_INSTANCE_CREATE",
|
730
776
|
StageInstanceUpdate = "STAGE_INSTANCE_UPDATE",
|
731
777
|
StageInstanceDelete = "STAGE_INSTANCE_DELETE",
|
778
|
+
SubscriptionCreate = "SUBSCRIPTION_CREATE",
|
779
|
+
SubscriptionUpdate = "SUBSCRIPTION_UPDATE",
|
780
|
+
SubscriptionDelete = "SUBSCRIPTION_DELETE",
|
732
781
|
TypingStart = "TYPING_START",
|
733
782
|
UserUpdate = "USER_UPDATE",
|
783
|
+
VoiceChannelEffectSend = "VOICE_CHANNEL_EFFECT_SEND",
|
734
784
|
VoiceStateUpdate = "VOICE_STATE_UPDATE",
|
735
785
|
VoiceServerUpdate = "VOICE_SERVER_UPDATE",
|
736
786
|
WebhooksUpdate = "WEBHOOKS_UPDATE",
|
@@ -758,6 +808,11 @@ export declare enum ActivityFlags {
|
|
758
808
|
PartyPrivacyVoiceChannel = 128,
|
759
809
|
Embedded = 256
|
760
810
|
}
|
811
|
+
/** https://discord.com/developers/docs/topics/gateway-events#voice-channel-effect-send-animation-types */
|
812
|
+
export declare enum AnimationTypes {
|
813
|
+
Premium = 0,
|
814
|
+
Basic = 1
|
815
|
+
}
|
761
816
|
/** https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes */
|
762
817
|
export declare enum OAuth2Scopes {
|
763
818
|
ActivitiesRead = "activities.read",
|
@@ -801,7 +856,8 @@ export declare enum GatewayOPCodes {
|
|
801
856
|
RequestGuildMembers = 8,
|
802
857
|
InvalidSession = 9,
|
803
858
|
Hello = 10,
|
804
|
-
HeartbeatACK = 11
|
859
|
+
HeartbeatACK = 11,
|
860
|
+
RequestSoundboardSounds = 31
|
805
861
|
}
|
806
862
|
/** https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes */
|
807
863
|
export declare enum GatewayCloseEventCodes {
|
@@ -883,6 +939,7 @@ export declare enum JSONErrorCodes {
|
|
883
939
|
UnknownWebhook = 10015,
|
884
940
|
UnknownWebhookService = 10016,
|
885
941
|
UnknownSession = 10020,
|
942
|
+
UnknownAsset = 10021,
|
886
943
|
UnknownBan = 10026,
|
887
944
|
UnknownSKU = 10027,
|
888
945
|
UnknownStoreListing = 10028,
|
@@ -898,6 +955,7 @@ export declare enum JSONErrorCodes {
|
|
898
955
|
UnknownGuildTemplate = 10057,
|
899
956
|
UnknownDiscoverableServerCategory = 10059,
|
900
957
|
UnknownSticker = 10060,
|
958
|
+
UnknownStickerPack = 10061,
|
901
959
|
UnknownInteraction = 10062,
|
902
960
|
UnknownApplicationCommand = 10063,
|
903
961
|
UnknownVoiceState = 10065,
|
@@ -908,6 +966,7 @@ export declare enum JSONErrorCodes {
|
|
908
966
|
UnknownGuildScheduledEvent = 10070,
|
909
967
|
UnknownGuildScheduledEventUser = 10071,
|
910
968
|
UnknownTag = 10087,
|
969
|
+
UnknownSound = 10091,
|
911
970
|
BotsCannotUseThisEndpoint = 20001,
|
912
971
|
OnlyBotsCanUseThisEndpoint = 20002,
|
913
972
|
ExplicitContentCannotBeSentToTheDesiredRecipient = 20009,
|
@@ -946,6 +1005,7 @@ export declare enum JSONErrorCodes {
|
|
946
1005
|
MaximumNumberOfStickersReached = 30039,
|
947
1006
|
MaximumNumberOfPruneRequestsHasBeenReached = 30040,
|
948
1007
|
MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached = 30042,
|
1008
|
+
MaximumNumberOfSoundboardSoundsReached = 30045,
|
949
1009
|
MaximumNumberOfEditsToMessagesOlderThanOneHourReached = 30046,
|
950
1010
|
MaximumNumberOfPinnedThreadsInForumHasBeenReached = 30047,
|
951
1011
|
MaximumNumberOfTagsInForumHasBeenReached = 30048,
|
@@ -962,6 +1022,8 @@ export declare enum JSONErrorCodes {
|
|
962
1022
|
FeatureTemporarilyDisabledServerSide = 40006,
|
963
1023
|
UserBannedFromThisGuild = 40007,
|
964
1024
|
ConnectionHasBeenRevoked = 40012,
|
1025
|
+
OnlyConsumableSKUsCanBeConsumed = 40018,
|
1026
|
+
YouCanOnlyDeleteSandboxEntitlements = 40019,
|
965
1027
|
TargetUserIsNotConnectedToVoice = 40032,
|
966
1028
|
ThisMessageWasAlreadyCrossposted = 40033,
|
967
1029
|
ApplicationCommandWithThatNameAlreadyExists = 40041,
|
@@ -973,6 +1035,7 @@ export declare enum JSONErrorCodes {
|
|
973
1035
|
ThereAreNoTagsAvailableThatCanBeSetByNonModerators = 40066,
|
974
1036
|
TagRequiredToCreateAForumPostInThisChannel = 40067,
|
975
1037
|
AnEntitlementHasAlreadyBeenGrantedForThisResource = 40074,
|
1038
|
+
ThisInteractionHasHitTheMaximumNumberOfFollowUpMessages = 40094,
|
976
1039
|
CloudflareIsBlockingYourRequestThisCanOftenBeResolvedBySettingAProperUserAgent = 40333,
|
977
1040
|
MissingAccess = 50001,
|
978
1041
|
InvalidAccountType = 50002,
|
@@ -1026,12 +1089,16 @@ export declare enum JSONErrorCodes {
|
|
1026
1089
|
ServerNeedsMonetizationEnabledToPerformThisAction = 50097,
|
1027
1090
|
ServerNeedsMoreBoostsToPerformThisAction = 50101,
|
1028
1091
|
RequestBodyContainsInvalidJSON = 50109,
|
1092
|
+
TheProvidedFileIsInvalid = 50110,
|
1093
|
+
TheProvidedFileTypeIsInvalid = 50123,
|
1094
|
+
TheProvidedFileDurationExceedsMaximumOf5Seconds = 50124,
|
1029
1095
|
OwnerCannotBePendingMember = 50131,
|
1030
1096
|
OwnershipCannotBeMovedToABotUser = 50132,
|
1031
1097
|
FailedToResizeAssetBelowTheMinimumSize = 50138,
|
1032
1098
|
CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji = 50144,
|
1033
1099
|
CannotConvertBetweenPremiumEmojiAndNormalEmoji = 50145,
|
1034
1100
|
UploadedFileNotFound = 50146,
|
1101
|
+
TheSpecifiedEmojiIsInvalid = 50151,
|
1035
1102
|
VoiceMessagesDoNotSupportAdditionalContent = 50159,
|
1036
1103
|
VoiceMessagesMustHaveASingleAudioAttachment = 50160,
|
1037
1104
|
VoiceMessagesMustHaveSupportingMetadata = 50161,
|
@@ -1039,6 +1106,7 @@ export declare enum JSONErrorCodes {
|
|
1039
1106
|
CannotDeleteGuildSubscriptionIntegration = 50163,
|
1040
1107
|
YouCannotSendVoiceMessagesInThisChannel = 50173,
|
1041
1108
|
TheUserAccountMustFirstBeVerified = 50178,
|
1109
|
+
TheProvidedFileDoesNotHaveAValidDuration = 50192,
|
1042
1110
|
YouDoNotHavePermissionToSendThisSticker = 50600,
|
1043
1111
|
TwoFactorAuthenticationIsRequired = 60003,
|
1044
1112
|
NoUsersWithDiscordTagExist = 80004,
|
@@ -1174,20 +1242,20 @@ export declare enum MembershipState {
|
|
1174
1242
|
Invited = 1,
|
1175
1243
|
Accepted = 2
|
1176
1244
|
}
|
1177
|
-
/** https://discord.com/developers/docs/
|
1245
|
+
/** https://discord.com/developers/docs/resources/sku#sku-object-sku-types */
|
1178
1246
|
export declare enum SKUTypes {
|
1179
1247
|
Durable = 2,
|
1180
1248
|
Consumable = 3,
|
1181
1249
|
Subscription = 5,
|
1182
1250
|
SubscriptionGroup = 6
|
1183
1251
|
}
|
1184
|
-
/** https://discord.com/developers/docs/
|
1252
|
+
/** https://discord.com/developers/docs/resources/sku#sku-object-sku-flags */
|
1185
1253
|
export declare enum SKUFlags {
|
1186
1254
|
Available = 4,
|
1187
1255
|
GuildSubscription = 128,
|
1188
1256
|
UserSubscription = 256
|
1189
1257
|
}
|
1190
|
-
/** https://discord.com/developers/docs/
|
1258
|
+
/** https://discord.com/developers/docs/resources/entitlement#entitlement-object-entitlement-types */
|
1191
1259
|
export declare enum EntitlementTypes {
|
1192
1260
|
Purchase = 1,
|
1193
1261
|
PremiumSubscription = 2,
|
package/dist/lib/constants.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.EntitlementTypes = exports.SKUFlags = exports.SKUTypes = exports.MembershipState = exports.TeamMemberRoleTypes = exports.RoleFlags = exports.BitwisePermissionFlags = exports.RPCCloseEventCodes = exports.RPCErrorCodes = exports.JSONErrorCodes = exports.HTTPResponseCodes = exports.VoiceCloseEventCodes = exports.VoiceOPCodes = exports.GatewayCloseEventCodes = exports.GatewayOPCodes = exports.OAuth2Scopes = exports.ActivityFlags = exports.ActivityType = exports.GatewayEvents = exports.StatusTypes = exports.GatewayIntents = exports.DeviceType = exports.WebhookTypes = exports.VisibilityTypes = exports.Services = exports.PremiumTypes = exports.UserFlags = exports.StickerFormatTypes = exports.StickerTypes = exports.PrivacyLevel = exports.LayoutType = exports.ReactionTypes = exports.AllowedMentionTypes = exports.AttachmentFlags = exports.MessageReferenceTypes = exports.MessageFlags = void 0;
|
3
|
+
exports.InviteTargetTypes = exports.InviteTypes = exports.GuildScheduledEventRecurrenceRuleMonth = exports.GuildScheduledEventRecurrenceRuleWeekday = exports.GuildScheduledEventRecurrenceRuleFrequency = exports.GuildScheduledEventStatus = exports.GuildScheduledEventEntityTypes = exports.GuildScheduledEventPrivacyLevel = exports.ImageWidgetStyleOptions = exports.PromptTypes = exports.OnboardingMode = exports.IntegrationExpireBehaviors = exports.GuildMemberFlags = exports.MutableGuildFeatures = exports.GuildFeatures = exports.SystemChannelFlags = exports.PremiumTier = exports.GuildNSFWLevel = exports.VerificationLevel = exports.MFALevel = exports.ExplicitContentFilterLevel = exports.DefaultMessageNotificationLevel = exports.ForumLayoutTypes = exports.SortOrderTypes = exports.ChannelFlags = exports.VideoQualityModes = exports.ChannelTypes = exports.ActionTypes = exports.EventTypes = exports.KeywordPresetTypes = exports.TriggerTypes = exports.AuditLogEvents = exports.ApplicationRoleConnectionMetadataType = exports.ActivityLocationKind = exports.ApplicationFlags = exports.ApplicationIntegrationTypes = exports.TextInputStyles = exports.ButtonStyles = exports.InteractionCallbackType = exports.ComponentTypes = exports.InteractionContextTypes = exports.InteractionType = exports.ApplicationCommandPermissionType = exports.EntryPointCommandHandlerTypes = exports.ApplicationCommandOptionType = exports.ApplicationCommandTypes = exports.Locales = exports.ImageFormats = exports.GuildNavigationTypes = exports.TimestampStyles = void 0;
|
4
|
+
exports.EntitlementTypes = exports.SKUFlags = exports.SKUTypes = exports.MembershipState = exports.TeamMemberRoleTypes = exports.RoleFlags = exports.BitwisePermissionFlags = exports.RPCCloseEventCodes = exports.RPCErrorCodes = exports.JSONErrorCodes = exports.HTTPResponseCodes = exports.VoiceCloseEventCodes = exports.VoiceOPCodes = exports.GatewayCloseEventCodes = exports.GatewayOPCodes = exports.OAuth2Scopes = exports.AnimationTypes = exports.ActivityFlags = exports.ActivityType = exports.GatewayEvents = exports.StatusTypes = exports.GatewayIntents = exports.DeviceType = exports.WebhookTypes = exports.SubscriptionStatuses = exports.VisibilityTypes = exports.Services = exports.PremiumTypes = exports.UserFlags = exports.StickerFormatTypes = exports.StickerTypes = exports.PrivacyLevel = exports.LayoutType = exports.ReactionTypes = exports.AllowedMentionTypes = exports.AttachmentFlags = exports.EmbedTypes = exports.MessageReferenceTypes = exports.MessageFlags = exports.MessageActivityTypes = exports.MessageTypes = void 0;
|
5
5
|
/** https://discord.com/developers/docs/reference#message-formatting-timestamp-styles */
|
6
6
|
var TimestampStyles;
|
7
7
|
(function (TimestampStyles) {
|
@@ -19,6 +19,7 @@ var GuildNavigationTypes;
|
|
19
19
|
GuildNavigationTypes["Customize"] = "customize";
|
20
20
|
GuildNavigationTypes["BrowseChannels"] = "browse";
|
21
21
|
GuildNavigationTypes["ServerGuide"] = "guide";
|
22
|
+
GuildNavigationTypes["LinkedRoles"] = "linked-roles";
|
22
23
|
})(GuildNavigationTypes || (exports.GuildNavigationTypes = GuildNavigationTypes = {}));
|
23
24
|
/** https://discord.com/developers/docs/reference#image-formatting-image-formats */
|
24
25
|
var ImageFormats;
|
@@ -72,6 +73,7 @@ var ApplicationCommandTypes;
|
|
72
73
|
ApplicationCommandTypes[ApplicationCommandTypes["ChatInput"] = 1] = "ChatInput";
|
73
74
|
ApplicationCommandTypes[ApplicationCommandTypes["User"] = 2] = "User";
|
74
75
|
ApplicationCommandTypes[ApplicationCommandTypes["Message"] = 3] = "Message";
|
76
|
+
ApplicationCommandTypes[ApplicationCommandTypes["PrimaryEntryPoint"] = 4] = "PrimaryEntryPoint";
|
75
77
|
})(ApplicationCommandTypes || (exports.ApplicationCommandTypes = ApplicationCommandTypes = {}));
|
76
78
|
/** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-type */
|
77
79
|
var ApplicationCommandOptionType;
|
@@ -88,6 +90,12 @@ var ApplicationCommandOptionType;
|
|
88
90
|
ApplicationCommandOptionType[ApplicationCommandOptionType["Number"] = 10] = "Number";
|
89
91
|
ApplicationCommandOptionType[ApplicationCommandOptionType["Attachment"] = 11] = "Attachment";
|
90
92
|
})(ApplicationCommandOptionType || (exports.ApplicationCommandOptionType = ApplicationCommandOptionType = {}));
|
93
|
+
/** https://discord.com/developers/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types */
|
94
|
+
var EntryPointCommandHandlerTypes;
|
95
|
+
(function (EntryPointCommandHandlerTypes) {
|
96
|
+
EntryPointCommandHandlerTypes[EntryPointCommandHandlerTypes["AppHandler"] = 1] = "AppHandler";
|
97
|
+
EntryPointCommandHandlerTypes[EntryPointCommandHandlerTypes["DiscordLaunchActivity"] = 2] = "DiscordLaunchActivity";
|
98
|
+
})(EntryPointCommandHandlerTypes || (exports.EntryPointCommandHandlerTypes = EntryPointCommandHandlerTypes = {}));
|
91
99
|
/** https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permission-type */
|
92
100
|
var ApplicationCommandPermissionType;
|
93
101
|
(function (ApplicationCommandPermissionType) {
|
@@ -134,6 +142,7 @@ var InteractionCallbackType;
|
|
134
142
|
InteractionCallbackType[InteractionCallbackType["ApplicationCommandAutocompleteResult"] = 8] = "ApplicationCommandAutocompleteResult";
|
135
143
|
InteractionCallbackType[InteractionCallbackType["Modal"] = 9] = "Modal";
|
136
144
|
InteractionCallbackType[InteractionCallbackType["PremiumRequired"] = 10] = "PremiumRequired";
|
145
|
+
InteractionCallbackType[InteractionCallbackType["LaunchActivity"] = 12] = "LaunchActivity";
|
137
146
|
})(InteractionCallbackType || (exports.InteractionCallbackType = InteractionCallbackType = {}));
|
138
147
|
/** https://discord.com/developers/docs/interactions/message-components#button-object-button-styles */
|
139
148
|
var ButtonStyles;
|
@@ -171,6 +180,12 @@ var ApplicationFlags;
|
|
171
180
|
ApplicationFlags[ApplicationFlags["GatewayMessageContentLimited"] = 524288] = "GatewayMessageContentLimited";
|
172
181
|
ApplicationFlags[ApplicationFlags["ApplicationCommandBadge"] = 8388608] = "ApplicationCommandBadge";
|
173
182
|
})(ApplicationFlags || (exports.ApplicationFlags = ApplicationFlags = {}));
|
183
|
+
/** https://discord.com/developers/docs/resources/application#get-application-activity-instance-activity-location-kind-enum */
|
184
|
+
var ActivityLocationKind;
|
185
|
+
(function (ActivityLocationKind) {
|
186
|
+
ActivityLocationKind["GuildChannel"] = "gc";
|
187
|
+
ActivityLocationKind["PrivateChannel"] = "pc";
|
188
|
+
})(ActivityLocationKind || (exports.ActivityLocationKind = ActivityLocationKind = {}));
|
174
189
|
/** https://discord.com/developers/docs/resources/application-role-connection-metadata#application-role-connection-metadata-object-application-role-connection-metadata-type */
|
175
190
|
var ApplicationRoleConnectionMetadataType;
|
176
191
|
(function (ApplicationRoleConnectionMetadataType) {
|
@@ -234,6 +249,9 @@ var AuditLogEvents;
|
|
234
249
|
AuditLogEvents[AuditLogEvents["ThreadUpdate"] = 111] = "ThreadUpdate";
|
235
250
|
AuditLogEvents[AuditLogEvents["ThreadDelete"] = 112] = "ThreadDelete";
|
236
251
|
AuditLogEvents[AuditLogEvents["ApplicationCommandPermissionUpdate"] = 121] = "ApplicationCommandPermissionUpdate";
|
252
|
+
AuditLogEvents[AuditLogEvents["SoundboardSoundCreate"] = 130] = "SoundboardSoundCreate";
|
253
|
+
AuditLogEvents[AuditLogEvents["SoundboardSoundUpdate"] = 131] = "SoundboardSoundUpdate";
|
254
|
+
AuditLogEvents[AuditLogEvents["SoundboardSoundDelete"] = 132] = "SoundboardSoundDelete";
|
237
255
|
AuditLogEvents[AuditLogEvents["AutoModerationRuleCreate"] = 140] = "AutoModerationRuleCreate";
|
238
256
|
AuditLogEvents[AuditLogEvents["AutoModerationRuleUpdate"] = 141] = "AutoModerationRuleUpdate";
|
239
257
|
AuditLogEvents[AuditLogEvents["AutoModerationRuleDelete"] = 142] = "AutoModerationRuleDelete";
|
@@ -394,6 +412,7 @@ var GuildFeatures;
|
|
394
412
|
GuildFeatures["InvitesDisabled"] = "INVITES_DISABLED";
|
395
413
|
GuildFeatures["InviteSplash"] = "INVITE_SPLASH";
|
396
414
|
GuildFeatures["MemberVerificationGateEnabled"] = "MEMBER_VERIFICATION_GATE_ENABLED";
|
415
|
+
GuildFeatures["MoreSoundboard"] = "MORE_SOUNDBOARD";
|
397
416
|
GuildFeatures["MoreStickers"] = "MORE_STICKERS";
|
398
417
|
GuildFeatures["News"] = "NEWS";
|
399
418
|
GuildFeatures["Partnered"] = "PARTNERED";
|
@@ -402,6 +421,7 @@ var GuildFeatures;
|
|
402
421
|
GuildFeatures["RoleIcons"] = "ROLE_ICONS";
|
403
422
|
GuildFeatures["RoleSubscriptionsAvailableForPurchase"] = "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE";
|
404
423
|
GuildFeatures["RoleSubscriptionsEnabled"] = "ROLE_SUBSCRIPTIONS_ENABLED";
|
424
|
+
GuildFeatures["Soundboard"] = "SOUNDBOARD";
|
405
425
|
GuildFeatures["TicketedEventsEnabled"] = "TICKETED_EVENTS_ENABLED";
|
406
426
|
GuildFeatures["VanityURL"] = "VANITY_URL";
|
407
427
|
GuildFeatures["Verified"] = "VERIFIED";
|
@@ -423,6 +443,11 @@ var GuildMemberFlags;
|
|
423
443
|
GuildMemberFlags[GuildMemberFlags["CompletedOnboarding"] = 2] = "CompletedOnboarding";
|
424
444
|
GuildMemberFlags[GuildMemberFlags["BypassesVerification"] = 4] = "BypassesVerification";
|
425
445
|
GuildMemberFlags[GuildMemberFlags["StartedOnboarding"] = 8] = "StartedOnboarding";
|
446
|
+
GuildMemberFlags[GuildMemberFlags["IsGuest"] = 16] = "IsGuest";
|
447
|
+
GuildMemberFlags[GuildMemberFlags["StartedHomeActions"] = 32] = "StartedHomeActions";
|
448
|
+
GuildMemberFlags[GuildMemberFlags["CompletedHomeActions"] = 64] = "CompletedHomeActions";
|
449
|
+
GuildMemberFlags[GuildMemberFlags["AutomodQuarantinedUsername"] = 128] = "AutomodQuarantinedUsername";
|
450
|
+
GuildMemberFlags[GuildMemberFlags["DMSettingsUpsellAckownledge"] = 512] = "DMSettingsUpsellAckownledge";
|
426
451
|
})(GuildMemberFlags || (exports.GuildMemberFlags = GuildMemberFlags = {}));
|
427
452
|
/** https://discord.com/developers/docs/resources/guild#integration-object-integration-expire-behaviors */
|
428
453
|
var IntegrationExpireBehaviors;
|
@@ -558,6 +583,7 @@ var MessageTypes;
|
|
558
583
|
MessageTypes[MessageTypes["GuildIncidentReportRaid"] = 38] = "GuildIncidentReportRaid";
|
559
584
|
MessageTypes[MessageTypes["GuildIncidentReportFalseAlarm"] = 39] = "GuildIncidentReportFalseAlarm";
|
560
585
|
MessageTypes[MessageTypes["PurchaseNotification"] = 44] = "PurchaseNotification";
|
586
|
+
MessageTypes[MessageTypes["PollResult"] = 46] = "PollResult";
|
561
587
|
})(MessageTypes || (exports.MessageTypes = MessageTypes = {}));
|
562
588
|
/** https://discord.com/developers/docs/resources/message#message-object-message-activity-types */
|
563
589
|
var MessageActivityTypes;
|
@@ -588,6 +614,17 @@ var MessageReferenceTypes;
|
|
588
614
|
MessageReferenceTypes[MessageReferenceTypes["Default"] = 0] = "Default";
|
589
615
|
MessageReferenceTypes[MessageReferenceTypes["Forward"] = 1] = "Forward";
|
590
616
|
})(MessageReferenceTypes || (exports.MessageReferenceTypes = MessageReferenceTypes = {}));
|
617
|
+
/** https://discord.com/developers/docs/resources/message#embed-object-embed-types */
|
618
|
+
var EmbedTypes;
|
619
|
+
(function (EmbedTypes) {
|
620
|
+
EmbedTypes["Rich"] = "rich";
|
621
|
+
EmbedTypes["Image"] = "image";
|
622
|
+
EmbedTypes["Video"] = "video";
|
623
|
+
EmbedTypes["Gifv"] = "gifv";
|
624
|
+
EmbedTypes["Article"] = "article";
|
625
|
+
EmbedTypes["Link"] = "link";
|
626
|
+
EmbedTypes["PollResult"] = "poll_result";
|
627
|
+
})(EmbedTypes || (exports.EmbedTypes = EmbedTypes = {}));
|
591
628
|
/** https://discord.com/developers/docs/resources/message#attachment-object-attachment-flags */
|
592
629
|
var AttachmentFlags;
|
593
630
|
(function (AttachmentFlags) {
|
@@ -661,6 +698,7 @@ var PremiumTypes;
|
|
661
698
|
/** https://discord.com/developers/docs/resources/user#connection-object-services */
|
662
699
|
var Services;
|
663
700
|
(function (Services) {
|
701
|
+
Services["AmazonMusic"] = "amazon-music";
|
664
702
|
Services["BattleNet"] = "battlenet";
|
665
703
|
Services["Ebay"] = "ebay";
|
666
704
|
Services["EpicGames"] = "epicgames";
|
@@ -688,6 +726,13 @@ var VisibilityTypes;
|
|
688
726
|
VisibilityTypes[VisibilityTypes["None"] = 0] = "None";
|
689
727
|
VisibilityTypes[VisibilityTypes["Everyone"] = 1] = "Everyone";
|
690
728
|
})(VisibilityTypes || (exports.VisibilityTypes = VisibilityTypes = {}));
|
729
|
+
/** https://discord.com/developers/docs/resources/subscription#subscription-statuses */
|
730
|
+
var SubscriptionStatuses;
|
731
|
+
(function (SubscriptionStatuses) {
|
732
|
+
SubscriptionStatuses[SubscriptionStatuses["Active"] = 0] = "Active";
|
733
|
+
SubscriptionStatuses[SubscriptionStatuses["Ending"] = 1] = "Ending";
|
734
|
+
SubscriptionStatuses[SubscriptionStatuses["Inactive"] = 2] = "Inactive";
|
735
|
+
})(SubscriptionStatuses || (exports.SubscriptionStatuses = SubscriptionStatuses = {}));
|
691
736
|
/** https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-types */
|
692
737
|
var WebhookTypes;
|
693
738
|
(function (WebhookTypes) {
|
@@ -708,7 +753,7 @@ var GatewayIntents;
|
|
708
753
|
GatewayIntents[GatewayIntents["Guilds"] = 1] = "Guilds";
|
709
754
|
GatewayIntents[GatewayIntents["GuildMembers"] = 2] = "GuildMembers";
|
710
755
|
GatewayIntents[GatewayIntents["GuildModeration"] = 4] = "GuildModeration";
|
711
|
-
GatewayIntents[GatewayIntents["
|
756
|
+
GatewayIntents[GatewayIntents["GuildExpressions"] = 8] = "GuildExpressions";
|
712
757
|
GatewayIntents[GatewayIntents["GuildIntegrations"] = 16] = "GuildIntegrations";
|
713
758
|
GatewayIntents[GatewayIntents["GuildWebhooks"] = 32] = "GuildWebhooks";
|
714
759
|
GatewayIntents[GatewayIntents["GuildInvites"] = 64] = "GuildInvites";
|
@@ -783,6 +828,11 @@ var GatewayEvents;
|
|
783
828
|
GatewayEvents["GuildScheduledEventDelete"] = "GUILD_SCHEDULED_EVENT_DELETE";
|
784
829
|
GatewayEvents["GuildScheduledEventUserAdd"] = "GUILD_SCHEDULED_EVENT_USER_ADD";
|
785
830
|
GatewayEvents["GuildScheduledEventUserRemove"] = "GUILD_SCHEDULED_EVENT_USER_REMOVE";
|
831
|
+
GatewayEvents["GuildSoundboardSoundCreate"] = "GUILD_SOUNDBOARD_SOUND_CREATE";
|
832
|
+
GatewayEvents["GuildSoundboardSoundUpdate"] = "GUILD_SOUNDBOARD_SOUND_UPDATE";
|
833
|
+
GatewayEvents["GuildSoundboardSoundDelete"] = "GUILD_SOUNDBOARD_SOUND_DELETE";
|
834
|
+
GatewayEvents["GuildSoundboardSoundsUpdate"] = "GUILD_SOUNDBOARD_SOUNDS_UPDATE";
|
835
|
+
GatewayEvents["SoundboardSounds"] = "SOUNDBOARD_SOUNDS";
|
786
836
|
GatewayEvents["IntegrationCreate"] = "INTEGRATION_CREATE";
|
787
837
|
GatewayEvents["IntegrationUpdate"] = "INTEGRATION_UPDATE";
|
788
838
|
GatewayEvents["IntegrationDelete"] = "INTEGRATION_DELETE";
|
@@ -801,8 +851,12 @@ var GatewayEvents;
|
|
801
851
|
GatewayEvents["StageInstanceCreate"] = "STAGE_INSTANCE_CREATE";
|
802
852
|
GatewayEvents["StageInstanceUpdate"] = "STAGE_INSTANCE_UPDATE";
|
803
853
|
GatewayEvents["StageInstanceDelete"] = "STAGE_INSTANCE_DELETE";
|
854
|
+
GatewayEvents["SubscriptionCreate"] = "SUBSCRIPTION_CREATE";
|
855
|
+
GatewayEvents["SubscriptionUpdate"] = "SUBSCRIPTION_UPDATE";
|
856
|
+
GatewayEvents["SubscriptionDelete"] = "SUBSCRIPTION_DELETE";
|
804
857
|
GatewayEvents["TypingStart"] = "TYPING_START";
|
805
858
|
GatewayEvents["UserUpdate"] = "USER_UPDATE";
|
859
|
+
GatewayEvents["VoiceChannelEffectSend"] = "VOICE_CHANNEL_EFFECT_SEND";
|
806
860
|
GatewayEvents["VoiceStateUpdate"] = "VOICE_STATE_UPDATE";
|
807
861
|
GatewayEvents["VoiceServerUpdate"] = "VOICE_SERVER_UPDATE";
|
808
862
|
GatewayEvents["WebhooksUpdate"] = "WEBHOOKS_UPDATE";
|
@@ -832,6 +886,12 @@ var ActivityFlags;
|
|
832
886
|
ActivityFlags[ActivityFlags["PartyPrivacyVoiceChannel"] = 128] = "PartyPrivacyVoiceChannel";
|
833
887
|
ActivityFlags[ActivityFlags["Embedded"] = 256] = "Embedded";
|
834
888
|
})(ActivityFlags || (exports.ActivityFlags = ActivityFlags = {}));
|
889
|
+
/** https://discord.com/developers/docs/topics/gateway-events#voice-channel-effect-send-animation-types */
|
890
|
+
var AnimationTypes;
|
891
|
+
(function (AnimationTypes) {
|
892
|
+
AnimationTypes[AnimationTypes["Premium"] = 0] = "Premium";
|
893
|
+
AnimationTypes[AnimationTypes["Basic"] = 1] = "Basic";
|
894
|
+
})(AnimationTypes || (exports.AnimationTypes = AnimationTypes = {}));
|
835
895
|
/** https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes */
|
836
896
|
var OAuth2Scopes;
|
837
897
|
(function (OAuth2Scopes) {
|
@@ -878,6 +938,7 @@ var GatewayOPCodes;
|
|
878
938
|
GatewayOPCodes[GatewayOPCodes["InvalidSession"] = 9] = "InvalidSession";
|
879
939
|
GatewayOPCodes[GatewayOPCodes["Hello"] = 10] = "Hello";
|
880
940
|
GatewayOPCodes[GatewayOPCodes["HeartbeatACK"] = 11] = "HeartbeatACK";
|
941
|
+
GatewayOPCodes[GatewayOPCodes["RequestSoundboardSounds"] = 31] = "RequestSoundboardSounds";
|
881
942
|
})(GatewayOPCodes || (exports.GatewayOPCodes = GatewayOPCodes = {}));
|
882
943
|
/** https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes */
|
883
944
|
var GatewayCloseEventCodes;
|
@@ -964,6 +1025,7 @@ var JSONErrorCodes;
|
|
964
1025
|
JSONErrorCodes[JSONErrorCodes["UnknownWebhook"] = 10015] = "UnknownWebhook";
|
965
1026
|
JSONErrorCodes[JSONErrorCodes["UnknownWebhookService"] = 10016] = "UnknownWebhookService";
|
966
1027
|
JSONErrorCodes[JSONErrorCodes["UnknownSession"] = 10020] = "UnknownSession";
|
1028
|
+
JSONErrorCodes[JSONErrorCodes["UnknownAsset"] = 10021] = "UnknownAsset";
|
967
1029
|
JSONErrorCodes[JSONErrorCodes["UnknownBan"] = 10026] = "UnknownBan";
|
968
1030
|
JSONErrorCodes[JSONErrorCodes["UnknownSKU"] = 10027] = "UnknownSKU";
|
969
1031
|
JSONErrorCodes[JSONErrorCodes["UnknownStoreListing"] = 10028] = "UnknownStoreListing";
|
@@ -979,6 +1041,7 @@ var JSONErrorCodes;
|
|
979
1041
|
JSONErrorCodes[JSONErrorCodes["UnknownGuildTemplate"] = 10057] = "UnknownGuildTemplate";
|
980
1042
|
JSONErrorCodes[JSONErrorCodes["UnknownDiscoverableServerCategory"] = 10059] = "UnknownDiscoverableServerCategory";
|
981
1043
|
JSONErrorCodes[JSONErrorCodes["UnknownSticker"] = 10060] = "UnknownSticker";
|
1044
|
+
JSONErrorCodes[JSONErrorCodes["UnknownStickerPack"] = 10061] = "UnknownStickerPack";
|
982
1045
|
JSONErrorCodes[JSONErrorCodes["UnknownInteraction"] = 10062] = "UnknownInteraction";
|
983
1046
|
JSONErrorCodes[JSONErrorCodes["UnknownApplicationCommand"] = 10063] = "UnknownApplicationCommand";
|
984
1047
|
JSONErrorCodes[JSONErrorCodes["UnknownVoiceState"] = 10065] = "UnknownVoiceState";
|
@@ -989,6 +1052,7 @@ var JSONErrorCodes;
|
|
989
1052
|
JSONErrorCodes[JSONErrorCodes["UnknownGuildScheduledEvent"] = 10070] = "UnknownGuildScheduledEvent";
|
990
1053
|
JSONErrorCodes[JSONErrorCodes["UnknownGuildScheduledEventUser"] = 10071] = "UnknownGuildScheduledEventUser";
|
991
1054
|
JSONErrorCodes[JSONErrorCodes["UnknownTag"] = 10087] = "UnknownTag";
|
1055
|
+
JSONErrorCodes[JSONErrorCodes["UnknownSound"] = 10091] = "UnknownSound";
|
992
1056
|
JSONErrorCodes[JSONErrorCodes["BotsCannotUseThisEndpoint"] = 20001] = "BotsCannotUseThisEndpoint";
|
993
1057
|
JSONErrorCodes[JSONErrorCodes["OnlyBotsCanUseThisEndpoint"] = 20002] = "OnlyBotsCanUseThisEndpoint";
|
994
1058
|
JSONErrorCodes[JSONErrorCodes["ExplicitContentCannotBeSentToTheDesiredRecipient"] = 20009] = "ExplicitContentCannotBeSentToTheDesiredRecipient";
|
@@ -1027,6 +1091,7 @@ var JSONErrorCodes;
|
|
1027
1091
|
JSONErrorCodes[JSONErrorCodes["MaximumNumberOfStickersReached"] = 30039] = "MaximumNumberOfStickersReached";
|
1028
1092
|
JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPruneRequestsHasBeenReached"] = 30040] = "MaximumNumberOfPruneRequestsHasBeenReached";
|
1029
1093
|
JSONErrorCodes[JSONErrorCodes["MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached"] = 30042] = "MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached";
|
1094
|
+
JSONErrorCodes[JSONErrorCodes["MaximumNumberOfSoundboardSoundsReached"] = 30045] = "MaximumNumberOfSoundboardSoundsReached";
|
1030
1095
|
JSONErrorCodes[JSONErrorCodes["MaximumNumberOfEditsToMessagesOlderThanOneHourReached"] = 30046] = "MaximumNumberOfEditsToMessagesOlderThanOneHourReached";
|
1031
1096
|
JSONErrorCodes[JSONErrorCodes["MaximumNumberOfPinnedThreadsInForumHasBeenReached"] = 30047] = "MaximumNumberOfPinnedThreadsInForumHasBeenReached";
|
1032
1097
|
JSONErrorCodes[JSONErrorCodes["MaximumNumberOfTagsInForumHasBeenReached"] = 30048] = "MaximumNumberOfTagsInForumHasBeenReached";
|
@@ -1043,6 +1108,8 @@ var JSONErrorCodes;
|
|
1043
1108
|
JSONErrorCodes[JSONErrorCodes["FeatureTemporarilyDisabledServerSide"] = 40006] = "FeatureTemporarilyDisabledServerSide";
|
1044
1109
|
JSONErrorCodes[JSONErrorCodes["UserBannedFromThisGuild"] = 40007] = "UserBannedFromThisGuild";
|
1045
1110
|
JSONErrorCodes[JSONErrorCodes["ConnectionHasBeenRevoked"] = 40012] = "ConnectionHasBeenRevoked";
|
1111
|
+
JSONErrorCodes[JSONErrorCodes["OnlyConsumableSKUsCanBeConsumed"] = 40018] = "OnlyConsumableSKUsCanBeConsumed";
|
1112
|
+
JSONErrorCodes[JSONErrorCodes["YouCanOnlyDeleteSandboxEntitlements"] = 40019] = "YouCanOnlyDeleteSandboxEntitlements";
|
1046
1113
|
JSONErrorCodes[JSONErrorCodes["TargetUserIsNotConnectedToVoice"] = 40032] = "TargetUserIsNotConnectedToVoice";
|
1047
1114
|
JSONErrorCodes[JSONErrorCodes["ThisMessageWasAlreadyCrossposted"] = 40033] = "ThisMessageWasAlreadyCrossposted";
|
1048
1115
|
JSONErrorCodes[JSONErrorCodes["ApplicationCommandWithThatNameAlreadyExists"] = 40041] = "ApplicationCommandWithThatNameAlreadyExists";
|
@@ -1054,6 +1121,7 @@ var JSONErrorCodes;
|
|
1054
1121
|
JSONErrorCodes[JSONErrorCodes["ThereAreNoTagsAvailableThatCanBeSetByNonModerators"] = 40066] = "ThereAreNoTagsAvailableThatCanBeSetByNonModerators";
|
1055
1122
|
JSONErrorCodes[JSONErrorCodes["TagRequiredToCreateAForumPostInThisChannel"] = 40067] = "TagRequiredToCreateAForumPostInThisChannel";
|
1056
1123
|
JSONErrorCodes[JSONErrorCodes["AnEntitlementHasAlreadyBeenGrantedForThisResource"] = 40074] = "AnEntitlementHasAlreadyBeenGrantedForThisResource";
|
1124
|
+
JSONErrorCodes[JSONErrorCodes["ThisInteractionHasHitTheMaximumNumberOfFollowUpMessages"] = 40094] = "ThisInteractionHasHitTheMaximumNumberOfFollowUpMessages";
|
1057
1125
|
JSONErrorCodes[JSONErrorCodes["CloudflareIsBlockingYourRequestThisCanOftenBeResolvedBySettingAProperUserAgent"] = 40333] = "CloudflareIsBlockingYourRequestThisCanOftenBeResolvedBySettingAProperUserAgent";
|
1058
1126
|
JSONErrorCodes[JSONErrorCodes["MissingAccess"] = 50001] = "MissingAccess";
|
1059
1127
|
JSONErrorCodes[JSONErrorCodes["InvalidAccountType"] = 50002] = "InvalidAccountType";
|
@@ -1107,12 +1175,16 @@ var JSONErrorCodes;
|
|
1107
1175
|
JSONErrorCodes[JSONErrorCodes["ServerNeedsMonetizationEnabledToPerformThisAction"] = 50097] = "ServerNeedsMonetizationEnabledToPerformThisAction";
|
1108
1176
|
JSONErrorCodes[JSONErrorCodes["ServerNeedsMoreBoostsToPerformThisAction"] = 50101] = "ServerNeedsMoreBoostsToPerformThisAction";
|
1109
1177
|
JSONErrorCodes[JSONErrorCodes["RequestBodyContainsInvalidJSON"] = 50109] = "RequestBodyContainsInvalidJSON";
|
1178
|
+
JSONErrorCodes[JSONErrorCodes["TheProvidedFileIsInvalid"] = 50110] = "TheProvidedFileIsInvalid";
|
1179
|
+
JSONErrorCodes[JSONErrorCodes["TheProvidedFileTypeIsInvalid"] = 50123] = "TheProvidedFileTypeIsInvalid";
|
1180
|
+
JSONErrorCodes[JSONErrorCodes["TheProvidedFileDurationExceedsMaximumOf5Seconds"] = 50124] = "TheProvidedFileDurationExceedsMaximumOf5Seconds";
|
1110
1181
|
JSONErrorCodes[JSONErrorCodes["OwnerCannotBePendingMember"] = 50131] = "OwnerCannotBePendingMember";
|
1111
1182
|
JSONErrorCodes[JSONErrorCodes["OwnershipCannotBeMovedToABotUser"] = 50132] = "OwnershipCannotBeMovedToABotUser";
|
1112
1183
|
JSONErrorCodes[JSONErrorCodes["FailedToResizeAssetBelowTheMinimumSize"] = 50138] = "FailedToResizeAssetBelowTheMinimumSize";
|
1113
1184
|
JSONErrorCodes[JSONErrorCodes["CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji"] = 50144] = "CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji";
|
1114
1185
|
JSONErrorCodes[JSONErrorCodes["CannotConvertBetweenPremiumEmojiAndNormalEmoji"] = 50145] = "CannotConvertBetweenPremiumEmojiAndNormalEmoji";
|
1115
1186
|
JSONErrorCodes[JSONErrorCodes["UploadedFileNotFound"] = 50146] = "UploadedFileNotFound";
|
1187
|
+
JSONErrorCodes[JSONErrorCodes["TheSpecifiedEmojiIsInvalid"] = 50151] = "TheSpecifiedEmojiIsInvalid";
|
1116
1188
|
JSONErrorCodes[JSONErrorCodes["VoiceMessagesDoNotSupportAdditionalContent"] = 50159] = "VoiceMessagesDoNotSupportAdditionalContent";
|
1117
1189
|
JSONErrorCodes[JSONErrorCodes["VoiceMessagesMustHaveASingleAudioAttachment"] = 50160] = "VoiceMessagesMustHaveASingleAudioAttachment";
|
1118
1190
|
JSONErrorCodes[JSONErrorCodes["VoiceMessagesMustHaveSupportingMetadata"] = 50161] = "VoiceMessagesMustHaveSupportingMetadata";
|
@@ -1120,6 +1192,7 @@ var JSONErrorCodes;
|
|
1120
1192
|
JSONErrorCodes[JSONErrorCodes["CannotDeleteGuildSubscriptionIntegration"] = 50163] = "CannotDeleteGuildSubscriptionIntegration";
|
1121
1193
|
JSONErrorCodes[JSONErrorCodes["YouCannotSendVoiceMessagesInThisChannel"] = 50173] = "YouCannotSendVoiceMessagesInThisChannel";
|
1122
1194
|
JSONErrorCodes[JSONErrorCodes["TheUserAccountMustFirstBeVerified"] = 50178] = "TheUserAccountMustFirstBeVerified";
|
1195
|
+
JSONErrorCodes[JSONErrorCodes["TheProvidedFileDoesNotHaveAValidDuration"] = 50192] = "TheProvidedFileDoesNotHaveAValidDuration";
|
1123
1196
|
JSONErrorCodes[JSONErrorCodes["YouDoNotHavePermissionToSendThisSticker"] = 50600] = "YouDoNotHavePermissionToSendThisSticker";
|
1124
1197
|
JSONErrorCodes[JSONErrorCodes["TwoFactorAuthenticationIsRequired"] = 60003] = "TwoFactorAuthenticationIsRequired";
|
1125
1198
|
JSONErrorCodes[JSONErrorCodes["NoUsersWithDiscordTagExist"] = 80004] = "NoUsersWithDiscordTagExist";
|
@@ -1260,7 +1333,7 @@ var MembershipState;
|
|
1260
1333
|
MembershipState[MembershipState["Invited"] = 1] = "Invited";
|
1261
1334
|
MembershipState[MembershipState["Accepted"] = 2] = "Accepted";
|
1262
1335
|
})(MembershipState || (exports.MembershipState = MembershipState = {}));
|
1263
|
-
/** https://discord.com/developers/docs/
|
1336
|
+
/** https://discord.com/developers/docs/resources/sku#sku-object-sku-types */
|
1264
1337
|
var SKUTypes;
|
1265
1338
|
(function (SKUTypes) {
|
1266
1339
|
SKUTypes[SKUTypes["Durable"] = 2] = "Durable";
|
@@ -1268,14 +1341,14 @@ var SKUTypes;
|
|
1268
1341
|
SKUTypes[SKUTypes["Subscription"] = 5] = "Subscription";
|
1269
1342
|
SKUTypes[SKUTypes["SubscriptionGroup"] = 6] = "SubscriptionGroup";
|
1270
1343
|
})(SKUTypes || (exports.SKUTypes = SKUTypes = {}));
|
1271
|
-
/** https://discord.com/developers/docs/
|
1344
|
+
/** https://discord.com/developers/docs/resources/sku#sku-object-sku-flags */
|
1272
1345
|
var SKUFlags;
|
1273
1346
|
(function (SKUFlags) {
|
1274
1347
|
SKUFlags[SKUFlags["Available"] = 4] = "Available";
|
1275
1348
|
SKUFlags[SKUFlags["GuildSubscription"] = 128] = "GuildSubscription";
|
1276
1349
|
SKUFlags[SKUFlags["UserSubscription"] = 256] = "UserSubscription";
|
1277
1350
|
})(SKUFlags || (exports.SKUFlags = SKUFlags = {}));
|
1278
|
-
/** https://discord.com/developers/docs/
|
1351
|
+
/** https://discord.com/developers/docs/resources/entitlement#entitlement-object-entitlement-types */
|
1279
1352
|
var EntitlementTypes;
|
1280
1353
|
(function (EntitlementTypes) {
|
1281
1354
|
EntitlementTypes[EntitlementTypes["Purchase"] = 1] = "Purchase";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import WebSocket from "ws";
|
2
2
|
import { Client } from "../Client";
|
3
|
-
import type { GatewayPresenceUpdate, GatewayVoiceStateUpdate, Identify, RequestGuildMembers, Resume } from "../types/gateway-events";
|
3
|
+
import type { GatewayPresenceUpdate, GatewayVoiceStateUpdate, Identify, RequestGuildMembers, RequestSoundboardSounds, Resume } from "../types/gateway-events";
|
4
4
|
export declare class Shard {
|
5
5
|
id: number;
|
6
6
|
private heartbeatInterval;
|
@@ -24,6 +24,8 @@ export declare class Shard {
|
|
24
24
|
private onWebSocketClose;
|
25
25
|
/** https://discord.com/developers/docs/topics/gateway-events#request-guild-members */
|
26
26
|
requestGuildMembers(options: RequestGuildMembers): void;
|
27
|
+
/** https://discord.com/developers/docs/topics/gateway-events#request-soundboard-sounds */
|
28
|
+
requestSoundboardSounds(options: RequestSoundboardSounds): void;
|
27
29
|
/** https://discord.com/developers/docs/topics/gateway-events#resume */
|
28
30
|
resume(options: Resume): void;
|
29
31
|
/** https://discord.com/developers/docs/topics/gateway-events#update-presence */
|