seyfert 4.5.0 → 4.6.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.
- package/lib/api/Routes/guilds.d.ts +12 -1
- package/lib/api/Routes/index.d.ts +3 -1
- package/lib/api/Routes/invites.d.ts +1 -1
- package/lib/api/Routes/oauth2.d.ts +11 -0
- package/lib/api/Routes/oauth2.js +2 -0
- package/lib/api/Routes/skus.d.ts +11 -4
- package/lib/api/Routes/users.d.ts +2 -1
- package/lib/api/Routes/voice.d.ts +4 -0
- package/lib/api/Routes/webhooks.d.ts +1 -1
- package/lib/api/api.d.ts +15 -5
- package/lib/api/api.js +243 -114
- package/lib/api/bucket.js +13 -7
- package/lib/api/shared.d.ts +3 -1
- package/lib/api/utils/constants.d.ts +1 -1
- package/lib/api/utils/constants.js +1 -1
- package/lib/builders/Attachment.d.ts +6 -1
- package/lib/builders/Attachment.js +13 -9
- package/lib/builders/CheckboxGroup.js +1 -1
- package/lib/builders/FileUpload.d.ts +8 -1
- package/lib/builders/FileUpload.js +9 -0
- package/lib/builders/RadioGroup.js +1 -1
- package/lib/client/base.d.ts +3 -3
- package/lib/client/collectors.d.ts +10 -8
- package/lib/client/transformers.d.ts +5 -0
- package/lib/client/workerclient.d.ts +8 -1
- package/lib/client/workerclient.js +28 -9
- package/lib/commands/applications/chat.d.ts +6 -4
- package/lib/commands/applications/options.d.ts +6 -4
- package/lib/commands/applications/shared.d.ts +2 -2
- package/lib/commands/handle.d.ts +7 -3
- package/lib/commands/handle.js +36 -11
- package/lib/commands/handler.js +11 -0
- package/lib/commands/optionresolver.d.ts +6 -7
- package/lib/common/it/error.d.ts +13 -0
- package/lib/common/it/error.js +15 -1
- package/lib/common/it/logger.js +12 -9
- package/lib/common/shorters/application.d.ts +1 -1
- package/lib/common/shorters/application.js +1 -1
- package/lib/common/shorters/bans.js +1 -1
- package/lib/common/shorters/guilds.js +5 -1
- package/lib/common/shorters/interaction.js +7 -4
- package/lib/common/shorters/invites.d.ts +5 -0
- package/lib/common/shorters/members.js +2 -1
- package/lib/common/shorters/messages.js +2 -2
- package/lib/common/shorters/threads.js +1 -1
- package/lib/common/shorters/webhook.js +3 -3
- package/lib/common/types/util.d.ts +7 -0
- package/lib/components/componentcommand.js +2 -2
- package/lib/components/customId.d.ts +3 -0
- package/lib/components/customId.js +11 -0
- package/lib/components/handler.js +2 -3
- package/lib/components/modalcommand.js +2 -2
- package/lib/events/hooks/invite.d.ts +1 -0
- package/lib/events/hooks/presence.d.ts +1 -0
- package/lib/events/hooks/thread.d.ts +1 -0
- package/lib/structures/AnonymousGuild.d.ts +1 -1
- package/lib/structures/AnonymousGuild.js +1 -1
- package/lib/structures/Guild.d.ts +3 -0
- package/lib/structures/GuildMember.d.ts +2 -2
- package/lib/structures/GuildMember.js +22 -4
- package/lib/structures/GuildPreview.d.ts +1 -1
- package/lib/structures/GuildPreview.js +1 -1
- package/lib/structures/GuildRole.d.ts +13 -0
- package/lib/structures/GuildRole.js +21 -0
- package/lib/structures/GuildTemplate.js +1 -1
- package/lib/structures/Interaction.d.ts +7 -7
- package/lib/structures/Interaction.js +35 -21
- package/lib/structures/Message.d.ts +2 -1
- package/lib/structures/channels.d.ts +29 -16
- package/lib/structures/channels.js +59 -19
- package/lib/structures/extra/BaseGuild.d.ts +4 -4
- package/lib/structures/extra/BaseGuild.js +4 -4
- package/lib/types/gateway.d.ts +243 -239
- package/lib/types/index.d.ts +2 -2
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/attachment.d.ts +5 -2
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/shared.d.ts +2 -2
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/shared.js +1 -1
- package/lib/types/payloads/_interactions/_applicationCommands/chatInput.d.ts +7 -7
- package/lib/types/payloads/_interactions/_applicationCommands/contextMenu.d.ts +13 -13
- package/lib/types/payloads/_interactions/_applicationCommands/permissions.d.ts +4 -4
- package/lib/types/payloads/_interactions/_applicationCommands/permissions.js +2 -2
- package/lib/types/payloads/_interactions/applicationCommands.d.ts +10 -10
- package/lib/types/payloads/_interactions/applicationCommands.js +4 -4
- package/lib/types/payloads/_interactions/autocomplete.d.ts +2 -2
- package/lib/types/payloads/_interactions/base.d.ts +13 -7
- package/lib/types/payloads/_interactions/modalSubmit.d.ts +4 -4
- package/lib/types/payloads/_interactions/responses.d.ts +10 -10
- package/lib/types/payloads/_interactions/responses.js +2 -2
- package/lib/types/payloads/application.d.ts +21 -15
- package/lib/types/payloads/application.js +7 -7
- package/lib/types/payloads/auditLog.d.ts +22 -17
- package/lib/types/payloads/auditLog.js +7 -2
- package/lib/types/payloads/autoModeration.d.ts +11 -11
- package/lib/types/payloads/autoModeration.js +5 -5
- package/lib/types/payloads/channel.d.ts +87 -78
- package/lib/types/payloads/channel.js +16 -11
- package/lib/types/payloads/components.d.ts +41 -31
- package/lib/types/payloads/components.js +9 -5
- package/lib/types/payloads/emoji.d.ts +2 -2
- package/lib/types/payloads/emoji.js +1 -1
- package/lib/types/payloads/gateway.d.ts +33 -29
- package/lib/types/payloads/gateway.js +5 -5
- package/lib/types/payloads/guild.d.ts +68 -68
- package/lib/types/payloads/guild.js +14 -14
- package/lib/types/payloads/guildScheduledEvent.d.ts +11 -11
- package/lib/types/payloads/guildScheduledEvent.js +3 -3
- package/lib/types/payloads/index.d.ts +2 -2
- package/lib/types/payloads/interactions.d.ts +3 -3
- package/lib/types/payloads/invite.d.ts +11 -11
- package/lib/types/payloads/invite.js +3 -3
- package/lib/types/payloads/monetization.d.ts +4 -4
- package/lib/types/payloads/monetization.js +2 -2
- package/lib/types/payloads/oauth2.d.ts +21 -17
- package/lib/types/payloads/oauth2.js +21 -17
- package/lib/types/payloads/permissions.d.ts +5 -5
- package/lib/types/payloads/permissions.js +2 -2
- package/lib/types/payloads/poll.d.ts +7 -7
- package/lib/types/payloads/poll.js +2 -2
- package/lib/types/payloads/soundboard.d.ts +2 -2
- package/lib/types/payloads/soundboard.js +1 -1
- package/lib/types/payloads/stageInstance.d.ts +5 -5
- package/lib/types/payloads/stageInstance.js +1 -1
- package/lib/types/payloads/sticker.d.ts +8 -8
- package/lib/types/payloads/sticker.js +3 -3
- package/lib/types/payloads/teams.d.ts +8 -8
- package/lib/types/payloads/teams.js +3 -3
- package/lib/types/payloads/template.d.ts +3 -3
- package/lib/types/payloads/template.js +1 -1
- package/lib/types/payloads/user.d.ts +24 -22
- package/lib/types/payloads/user.js +7 -5
- package/lib/types/payloads/voice.d.ts +4 -4
- package/lib/types/payloads/voice.js +1 -1
- package/lib/types/payloads/webhokEvents.d.ts +5 -5
- package/lib/types/payloads/webhokEvents.js +2 -2
- package/lib/types/payloads/webhook.d.ts +4 -4
- package/lib/types/payloads/webhook.js +1 -1
- package/lib/types/rest/application.d.ts +14 -14
- package/lib/types/rest/auditLog.d.ts +1 -1
- package/lib/types/rest/autoModeration.d.ts +7 -7
- package/lib/types/rest/channel.d.ts +79 -74
- package/lib/types/rest/channel.js +1 -1
- package/lib/types/rest/emoji.d.ts +8 -8
- package/lib/types/rest/gateway.d.ts +2 -2
- package/lib/types/rest/guild.d.ts +98 -98
- package/lib/types/rest/guild.js +5 -5
- package/lib/types/rest/guildScheduledEvent.d.ts +11 -11
- package/lib/types/rest/index.d.ts +34 -3
- package/lib/types/rest/index.js +33 -2
- package/lib/types/rest/interactions.d.ts +48 -48
- package/lib/types/rest/invite.d.ts +5 -5
- package/lib/types/rest/monetization.d.ts +9 -9
- package/lib/types/rest/monetization.js +1 -1
- package/lib/types/rest/oauth2.d.ts +22 -18
- package/lib/types/rest/poll.d.ts +4 -4
- package/lib/types/rest/soundboard.d.ts +8 -8
- package/lib/types/rest/stageInstance.d.ts +6 -6
- package/lib/types/rest/sticker.d.ts +10 -10
- package/lib/types/rest/template.d.ts +11 -11
- package/lib/types/rest/user.d.ts +18 -14
- package/lib/types/rest/voice.d.ts +5 -5
- package/lib/types/rest/webhook.d.ts +38 -38
- package/lib/types/utils/index.d.ts +19 -19
- package/lib/types/utils/index.js +19 -19
- package/lib/websocket/SharedTypes.d.ts +2 -2
- package/lib/websocket/constants/index.js +2 -2
- package/lib/websocket/discord/heartbeater.d.ts +1 -0
- package/lib/websocket/discord/heartbeater.js +8 -0
- package/lib/websocket/discord/shard.d.ts +19 -10
- package/lib/websocket/discord/shard.js +254 -121
- package/lib/websocket/discord/sharder.d.ts +2 -2
- package/lib/websocket/discord/sharder.js +1 -1
- package/lib/websocket/discord/shared.d.ts +7 -2
- package/lib/websocket/discord/workermanager.d.ts +3 -1
- package/lib/websocket/discord/workermanager.js +31 -24
- package/package.json +2 -2
package/lib/types/rest/guild.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GuildSearchSortOrder = exports.GuildSearchSortBy = exports.GuildSearchEmbedType = exports.GuildSearchHasType = exports.GuildSearchAuthorType = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* https://discord.com/developers/
|
|
5
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
6
6
|
*/
|
|
7
7
|
var GuildSearchAuthorType;
|
|
8
8
|
(function (GuildSearchAuthorType) {
|
|
@@ -11,7 +11,7 @@ var GuildSearchAuthorType;
|
|
|
11
11
|
GuildSearchAuthorType["Webhook"] = "webhook";
|
|
12
12
|
})(GuildSearchAuthorType || (exports.GuildSearchAuthorType = GuildSearchAuthorType = {}));
|
|
13
13
|
/**
|
|
14
|
-
* https://discord.com/developers/
|
|
14
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
15
15
|
*/
|
|
16
16
|
var GuildSearchHasType;
|
|
17
17
|
(function (GuildSearchHasType) {
|
|
@@ -26,7 +26,7 @@ var GuildSearchHasType;
|
|
|
26
26
|
GuildSearchHasType["Snapshot"] = "snapshot";
|
|
27
27
|
})(GuildSearchHasType || (exports.GuildSearchHasType = GuildSearchHasType = {}));
|
|
28
28
|
/**
|
|
29
|
-
* https://discord.com/developers/
|
|
29
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
30
30
|
*/
|
|
31
31
|
var GuildSearchEmbedType;
|
|
32
32
|
(function (GuildSearchEmbedType) {
|
|
@@ -37,7 +37,7 @@ var GuildSearchEmbedType;
|
|
|
37
37
|
GuildSearchEmbedType["Article"] = "article";
|
|
38
38
|
})(GuildSearchEmbedType || (exports.GuildSearchEmbedType = GuildSearchEmbedType = {}));
|
|
39
39
|
/**
|
|
40
|
-
* https://discord.com/developers/
|
|
40
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
41
41
|
*/
|
|
42
42
|
var GuildSearchSortBy;
|
|
43
43
|
(function (GuildSearchSortBy) {
|
|
@@ -45,7 +45,7 @@ var GuildSearchSortBy;
|
|
|
45
45
|
GuildSearchSortBy["Relevance"] = "relevance";
|
|
46
46
|
})(GuildSearchSortBy || (exports.GuildSearchSortBy = GuildSearchSortBy = {}));
|
|
47
47
|
/**
|
|
48
|
-
* https://discord.com/developers/
|
|
48
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
49
49
|
*/
|
|
50
50
|
var GuildSearchSortOrder;
|
|
51
51
|
(function (GuildSearchSortOrder) {
|
|
@@ -2,7 +2,7 @@ import type { Snowflake } from '..';
|
|
|
2
2
|
import type { APIGuildScheduledEvent, APIGuildScheduledEventEntityMetadata, APIGuildScheduledEventUser, GuildScheduledEventEntityType, GuildScheduledEventPrivacyLevel, GuildScheduledEventStatus } from '../payloads';
|
|
3
3
|
import type { StrictPartial } from '../utils';
|
|
4
4
|
/**
|
|
5
|
-
* https://discord.com/developers/
|
|
5
|
+
* https://docs.discord.com/developers/resources/guild-scheduled-event#list-scheduled-events-for-guild
|
|
6
6
|
*/
|
|
7
7
|
export interface RESTGetAPIGuildScheduledEventsQuery {
|
|
8
8
|
/**
|
|
@@ -11,11 +11,11 @@ export interface RESTGetAPIGuildScheduledEventsQuery {
|
|
|
11
11
|
with_user_count?: boolean;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* https://discord.com/developers/
|
|
14
|
+
* https://docs.discord.com/developers/resources/guild-scheduled-event#list-scheduled-events-for-guild
|
|
15
15
|
*/
|
|
16
16
|
export type RESTGetAPIGuildScheduledEventsResult = APIGuildScheduledEvent[];
|
|
17
17
|
/**
|
|
18
|
-
* https://discord.com/developers/
|
|
18
|
+
* https://docs.discord.com/developers/resources/guild-scheduled-event#create-guild-scheduled-event
|
|
19
19
|
*/
|
|
20
20
|
export interface RESTPostAPIGuildScheduledEventJSONBody {
|
|
21
21
|
/**
|
|
@@ -56,11 +56,11 @@ export interface RESTPostAPIGuildScheduledEventJSONBody {
|
|
|
56
56
|
image?: string | null | undefined;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* https://discord.com/developers/
|
|
59
|
+
* https://docs.discord.com/developers/resources/guild-scheduled-event#create-guild-scheduled-event
|
|
60
60
|
*/
|
|
61
61
|
export type RESTPostAPIGuildScheduledEventResult = APIGuildScheduledEvent;
|
|
62
62
|
/**
|
|
63
|
-
* https://discord.com/developers/
|
|
63
|
+
* https://docs.discord.com/developers/resources/guild-scheduled-event#get-guild-scheduled-event
|
|
64
64
|
*/
|
|
65
65
|
export interface RESTGetAPIGuildScheduledEventQuery {
|
|
66
66
|
/**
|
|
@@ -69,11 +69,11 @@ export interface RESTGetAPIGuildScheduledEventQuery {
|
|
|
69
69
|
with_user_count?: boolean;
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
* https://discord.com/developers/
|
|
72
|
+
* https://docs.discord.com/developers/resources/guild-scheduled-event#get-guild-scheduled-event
|
|
73
73
|
*/
|
|
74
74
|
export type RESTGetAPIGuildScheduledEventResult = APIGuildScheduledEvent;
|
|
75
75
|
/**
|
|
76
|
-
* https://discord.com/developers/
|
|
76
|
+
* https://docs.discord.com/developers/resources/guild-scheduled-event#modify-guild-scheduled-event
|
|
77
77
|
*/
|
|
78
78
|
export type RESTPatchAPIGuildScheduledEventJSONBody = StrictPartial<Omit<RESTPostAPIGuildScheduledEventJSONBody, 'description' | 'entity_metadata' | 'recurrence_rule'>> & {
|
|
79
79
|
/**
|
|
@@ -82,15 +82,15 @@ export type RESTPatchAPIGuildScheduledEventJSONBody = StrictPartial<Omit<RESTPos
|
|
|
82
82
|
status?: GuildScheduledEventStatus | undefined;
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
85
|
-
* https://discord.com/developers/
|
|
85
|
+
* https://docs.discord.com/developers/resources/guild-scheduled-event#modify-guild-scheduled-event
|
|
86
86
|
*/
|
|
87
87
|
export type RESTPatchAPIGuildScheduledEventResult = APIGuildScheduledEvent;
|
|
88
88
|
/**
|
|
89
|
-
* https://discord.com/developers/
|
|
89
|
+
* https://docs.discord.com/developers/resources/guild-scheduled-event#delete-guild-scheduled-event
|
|
90
90
|
*/
|
|
91
91
|
export type RESTDeleteAPIGuildScheduledEventResult = undefined;
|
|
92
92
|
/**
|
|
93
|
-
* https://discord.com/developers/
|
|
93
|
+
* https://docs.discord.com/developers/resources/guild-scheduled-event#get-guild-scheduled-event-users
|
|
94
94
|
*/
|
|
95
95
|
export interface RESTGetAPIGuildScheduledEventUsersQuery {
|
|
96
96
|
/**
|
|
@@ -113,6 +113,6 @@ export interface RESTGetAPIGuildScheduledEventUsersQuery {
|
|
|
113
113
|
after?: Snowflake;
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
* https://discord.com/developers/
|
|
116
|
+
* https://docs.discord.com/developers/resources/guild-scheduled-event#get-guild-scheduled-event-users
|
|
117
117
|
*/
|
|
118
118
|
export type RESTGetAPIGuildScheduledEventUsersResult = APIGuildScheduledEventUser[];
|
|
@@ -41,7 +41,7 @@ export type RoleIconFormat = Exclude<ImageFormat, ImageFormat.GIF | ImageFormat.
|
|
|
41
41
|
export type GuildScheduledEventCoverFormat = Exclude<ImageFormat, ImageFormat.GIF | ImageFormat.Lottie>;
|
|
42
42
|
export type GuildMemberBannerFormat = Exclude<ImageFormat, ImageFormat.Lottie>;
|
|
43
43
|
/**
|
|
44
|
-
* https://discord.com/developers/
|
|
44
|
+
* https://docs.discord.com/developers/topics/opcodes-and-status-codes#json-json-error-codes
|
|
45
45
|
*/
|
|
46
46
|
export declare enum RESTJSONErrorCodes {
|
|
47
47
|
GeneralError = 0,
|
|
@@ -62,6 +62,7 @@ export declare enum RESTJSONErrorCodes {
|
|
|
62
62
|
UnknownWebhook = 10015,
|
|
63
63
|
UnknownWebhookService = 10016,
|
|
64
64
|
UnknownSession = 10020,
|
|
65
|
+
UnknownAsset = 10021,
|
|
65
66
|
UnknownBan = 10026,
|
|
66
67
|
UnknownSKU = 10027,
|
|
67
68
|
UnknownStoreListing = 10028,
|
|
@@ -88,11 +89,16 @@ export declare enum RESTJSONErrorCodes {
|
|
|
88
89
|
UnknownGuildScheduledEvent = 10070,
|
|
89
90
|
UnknownGuildScheduledEventUser = 10071,
|
|
90
91
|
UnknownTag = 10087,
|
|
92
|
+
UnknownSound = 10097,
|
|
93
|
+
UnknownInviteTargetUsersJob = 10124,
|
|
94
|
+
UnknownInviteTargetUsers = 10129,
|
|
91
95
|
BotsCannotUseThisEndpoint = 20001,
|
|
92
96
|
OnlyBotsCanUseThisEndpoint = 20002,
|
|
93
97
|
ExplicitContentCannotBeSentToTheDesiredRecipient = 20009,
|
|
94
98
|
NotAuthorizedToPerformThisActionOnThisApplication = 20012,
|
|
99
|
+
ThisActionRequiresAPremiumSubscription = 20015,
|
|
95
100
|
ActionCannotBePerformedDueToSlowmodeRateLimit = 20016,
|
|
101
|
+
/** @deprecated This error code is no longer documented by Discord. */
|
|
96
102
|
TheMazeIsntMeantForYou = 20017,
|
|
97
103
|
OnlyTheOwnerOfThisAccountCanPerformThisAction = 20018,
|
|
98
104
|
AnnouncementEditLimitExceeded = 20022,
|
|
@@ -126,6 +132,7 @@ export declare enum RESTJSONErrorCodes {
|
|
|
126
132
|
MaximumNumberOfStickersReached = 30039,
|
|
127
133
|
MaximumNumberOfPruneRequestsHasBeenReached = 30040,
|
|
128
134
|
MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached = 30042,
|
|
135
|
+
MaximumNumberOfSoundboardSoundsReached = 30045,
|
|
129
136
|
MaximumNumberOfEditsToMessagesOlderThanOneHourReached = 30046,
|
|
130
137
|
MaximumNumberOfPinnedThreadsInForumHasBeenReached = 30047,
|
|
131
138
|
MaximumNumberOfTagsInForumHasBeenReached = 30048,
|
|
@@ -141,7 +148,10 @@ export declare enum RESTJSONErrorCodes {
|
|
|
141
148
|
RequestEntityTooLarge = 40005,
|
|
142
149
|
FeatureTemporarilyDisabledServerSide = 40006,
|
|
143
150
|
UserBannedFromThisGuild = 40007,
|
|
151
|
+
OnlyOneChannelCanHaveAParentIdModifiedAtATime = 40009,
|
|
144
152
|
ConnectionHasBeenRevoked = 40012,
|
|
153
|
+
OnlyConsumableSKUsCanBeConsumed = 40018,
|
|
154
|
+
CanOnlyDeleteSandboxEntitlements = 40019,
|
|
145
155
|
TargetUserIsNotConnectedToVoice = 40032,
|
|
146
156
|
ThisMessageWasAlreadyCrossposted = 40033,
|
|
147
157
|
ApplicationCommandWithThatNameAlreadyExists = 40041,
|
|
@@ -153,6 +163,7 @@ export declare enum RESTJSONErrorCodes {
|
|
|
153
163
|
ThereAreNoTagsAvailableThatCanBeSetByNonModerators = 40066,
|
|
154
164
|
TagRequiredToCreateAForumPostInThisChannel = 40067,
|
|
155
165
|
AnEntitlementHasAlreadyBeenGrantedForThisResource = 40074,
|
|
166
|
+
MaximumNumberOfFollowUpMessagesReached = 40094,
|
|
156
167
|
CloudflareIsBlockingYourRequest = 40333,
|
|
157
168
|
MissingAccess = 50001,
|
|
158
169
|
InvalidAccountType = 50002,
|
|
@@ -206,24 +217,34 @@ export declare enum RESTJSONErrorCodes {
|
|
|
206
217
|
ServerNeedsMonetizationEnabledToPerformThisAction = 50097,
|
|
207
218
|
ServerNeedsMoreBoostsToPerformThisAction = 50101,
|
|
208
219
|
RequestBodyContainsInvalidJSON = 50109,
|
|
220
|
+
ProvidedFileIsInvalid = 50110,
|
|
221
|
+
ProvidedFileTypeIsInvalid = 50123,
|
|
222
|
+
ProvidedFileDurationExceedsMaximumOf5Point2Seconds = 50124,
|
|
209
223
|
OwnerCannotBePendingMember = 50131,
|
|
210
224
|
OwnershipCannotBeMovedToABotUser = 50132,
|
|
225
|
+
FailedToResizeAssetBelowTheMaximumSize = 50138,
|
|
226
|
+
/** @deprecated Use {@link FailedToResizeAssetBelowTheMaximumSize}. */
|
|
211
227
|
FailedToResizeAssetBelowTheMinimumSize = 50138,
|
|
212
228
|
CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji = 50144,
|
|
213
229
|
CannotConvertBetweenPremiumEmojiAndNormalEmoji = 50145,
|
|
214
230
|
UploadedFileNotFound = 50146,
|
|
231
|
+
SpecifiedEmojiIsInvalid = 50151,
|
|
215
232
|
VoiceMessagesDoNotSupportAdditionalContent = 50159,
|
|
216
233
|
VoiceMessagesMustHaveASingleAudioAttachment = 50160,
|
|
217
234
|
VoiceMessagesMustHaveSupportingMetadata = 50161,
|
|
218
235
|
VoiceMessagesCannotBeEdited = 50162,
|
|
219
236
|
CannotDeleteGuildSubscriptionIntegration = 50163,
|
|
237
|
+
CannotSendVoiceEffectWhenUserIsServerMutedDeafenedOrSuppressed = 50167,
|
|
220
238
|
YouCannotSendVoiceMessagesInThisChannel = 50173,
|
|
221
239
|
TheUserAccountMustFirstBeVerified = 50178,
|
|
240
|
+
ProvidedFileDoesNotHaveAValidDuration = 50192,
|
|
241
|
+
CannotSendMessagesToThisUserDueToNoMutualGuilds = 50278,
|
|
222
242
|
YouDoNotHavePermissionToSendThisSticker = 50600,
|
|
223
243
|
TwoFactorAuthenticationIsRequired = 60003,
|
|
224
244
|
NoUsersWithDiscordTagExist = 80004,
|
|
225
245
|
ReactionWasBlocked = 90001,
|
|
226
246
|
UserCannotUseBurstReactions = 90002,
|
|
247
|
+
IndexNotYetAvailable = 110000,
|
|
227
248
|
ApplicationNotYetAvailable = 110001,
|
|
228
249
|
APIResourceOverloaded = 130000,
|
|
229
250
|
TheStageIsAlreadyOpen = 150006,
|
|
@@ -232,6 +253,7 @@ export declare enum RESTJSONErrorCodes {
|
|
|
232
253
|
ThreadLocked = 160005,
|
|
233
254
|
MaximumActiveThreads = 160006,
|
|
234
255
|
MaximumActiveAnnouncementThreads = 160007,
|
|
256
|
+
CannotForwardAMessageWhoseContentYouCannotRead = 160014,
|
|
235
257
|
InvalidJSONForUploadedLottieFile = 170001,
|
|
236
258
|
UploadedLottiesCannotContainRasterizedImages = 170002,
|
|
237
259
|
StickerMaximumFramerateExceeded = 170003,
|
|
@@ -248,18 +270,27 @@ export declare enum RESTJSONErrorCodes {
|
|
|
248
270
|
WebhooksCanOnlyCreateThreadsInForumChannels = 220003,
|
|
249
271
|
WebhookServicesCannotBeUsedInForumChannels = 220004,
|
|
250
272
|
MessageBlockedByHarmfulLinksFilter = 240000,
|
|
273
|
+
AccessToJoiningNewServersHasBeenLimitedForTheUser = 340015,
|
|
251
274
|
CannotEnableOnboardingRequirementsAreNotMet = 350000,
|
|
252
275
|
CannotUpdateOnboardingWhileBelowRequirements = 350001,
|
|
276
|
+
AccessToFileUploadsHasBeenLimitedForThisGuild = 400001,
|
|
253
277
|
FailedToBanUsers = 500000,
|
|
254
278
|
PollVotingBlocked = 520000,
|
|
255
279
|
PollExpired = 520001,
|
|
256
280
|
InvalidChannelTypeForPollCreation = 520002,
|
|
257
281
|
CannotEditAPollMessage = 520003,
|
|
258
282
|
CannotUseAnEmojiIncludedWithThePoll = 520004,
|
|
259
|
-
CannotExpireANonPollMessage = 520006
|
|
283
|
+
CannotExpireANonPollMessage = 520006,
|
|
284
|
+
DiscordApplicationNotGrantedPermissionToUseProvisionalAccounts = 530000,
|
|
285
|
+
IDTokenJWTExpired = 530001,
|
|
286
|
+
IDTokenJWTIssuerMismatch = 530002,
|
|
287
|
+
IDTokenJWTAudienceMismatch = 530003,
|
|
288
|
+
IDTokenIssuedTooLongAgo = 530004,
|
|
289
|
+
FailedToGenerateUniqueUsername = 530006,
|
|
290
|
+
InvalidClientSecret = 530007
|
|
260
291
|
}
|
|
261
292
|
/**
|
|
262
|
-
* https://discord.com/developers/
|
|
293
|
+
* https://docs.discord.com/developers/reference#locales
|
|
263
294
|
*/
|
|
264
295
|
export declare enum Locale {
|
|
265
296
|
Indonesian = "id",
|
package/lib/types/rest/index.js
CHANGED
|
@@ -36,7 +36,7 @@ __exportStar(require("./user"), exports);
|
|
|
36
36
|
__exportStar(require("./voice"), exports);
|
|
37
37
|
__exportStar(require("./webhook"), exports);
|
|
38
38
|
/**
|
|
39
|
-
* https://discord.com/developers/
|
|
39
|
+
* https://docs.discord.com/developers/topics/opcodes-and-status-codes#json-json-error-codes
|
|
40
40
|
*/
|
|
41
41
|
var RESTJSONErrorCodes;
|
|
42
42
|
(function (RESTJSONErrorCodes) {
|
|
@@ -58,6 +58,7 @@ var RESTJSONErrorCodes;
|
|
|
58
58
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownWebhook"] = 10015] = "UnknownWebhook";
|
|
59
59
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownWebhookService"] = 10016] = "UnknownWebhookService";
|
|
60
60
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownSession"] = 10020] = "UnknownSession";
|
|
61
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownAsset"] = 10021] = "UnknownAsset";
|
|
61
62
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownBan"] = 10026] = "UnknownBan";
|
|
62
63
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownSKU"] = 10027] = "UnknownSKU";
|
|
63
64
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownStoreListing"] = 10028] = "UnknownStoreListing";
|
|
@@ -84,11 +85,16 @@ var RESTJSONErrorCodes;
|
|
|
84
85
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownGuildScheduledEvent"] = 10070] = "UnknownGuildScheduledEvent";
|
|
85
86
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownGuildScheduledEventUser"] = 10071] = "UnknownGuildScheduledEventUser";
|
|
86
87
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownTag"] = 10087] = "UnknownTag";
|
|
88
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownSound"] = 10097] = "UnknownSound";
|
|
89
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownInviteTargetUsersJob"] = 10124] = "UnknownInviteTargetUsersJob";
|
|
90
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownInviteTargetUsers"] = 10129] = "UnknownInviteTargetUsers";
|
|
87
91
|
RESTJSONErrorCodes[RESTJSONErrorCodes["BotsCannotUseThisEndpoint"] = 20001] = "BotsCannotUseThisEndpoint";
|
|
88
92
|
RESTJSONErrorCodes[RESTJSONErrorCodes["OnlyBotsCanUseThisEndpoint"] = 20002] = "OnlyBotsCanUseThisEndpoint";
|
|
89
93
|
RESTJSONErrorCodes[RESTJSONErrorCodes["ExplicitContentCannotBeSentToTheDesiredRecipient"] = 20009] = "ExplicitContentCannotBeSentToTheDesiredRecipient";
|
|
90
94
|
RESTJSONErrorCodes[RESTJSONErrorCodes["NotAuthorizedToPerformThisActionOnThisApplication"] = 20012] = "NotAuthorizedToPerformThisActionOnThisApplication";
|
|
95
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["ThisActionRequiresAPremiumSubscription"] = 20015] = "ThisActionRequiresAPremiumSubscription";
|
|
91
96
|
RESTJSONErrorCodes[RESTJSONErrorCodes["ActionCannotBePerformedDueToSlowmodeRateLimit"] = 20016] = "ActionCannotBePerformedDueToSlowmodeRateLimit";
|
|
97
|
+
/** @deprecated This error code is no longer documented by Discord. */
|
|
92
98
|
RESTJSONErrorCodes[RESTJSONErrorCodes["TheMazeIsntMeantForYou"] = 20017] = "TheMazeIsntMeantForYou";
|
|
93
99
|
RESTJSONErrorCodes[RESTJSONErrorCodes["OnlyTheOwnerOfThisAccountCanPerformThisAction"] = 20018] = "OnlyTheOwnerOfThisAccountCanPerformThisAction";
|
|
94
100
|
RESTJSONErrorCodes[RESTJSONErrorCodes["AnnouncementEditLimitExceeded"] = 20022] = "AnnouncementEditLimitExceeded";
|
|
@@ -122,6 +128,7 @@ var RESTJSONErrorCodes;
|
|
|
122
128
|
RESTJSONErrorCodes[RESTJSONErrorCodes["MaximumNumberOfStickersReached"] = 30039] = "MaximumNumberOfStickersReached";
|
|
123
129
|
RESTJSONErrorCodes[RESTJSONErrorCodes["MaximumNumberOfPruneRequestsHasBeenReached"] = 30040] = "MaximumNumberOfPruneRequestsHasBeenReached";
|
|
124
130
|
RESTJSONErrorCodes[RESTJSONErrorCodes["MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached"] = 30042] = "MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached";
|
|
131
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["MaximumNumberOfSoundboardSoundsReached"] = 30045] = "MaximumNumberOfSoundboardSoundsReached";
|
|
125
132
|
RESTJSONErrorCodes[RESTJSONErrorCodes["MaximumNumberOfEditsToMessagesOlderThanOneHourReached"] = 30046] = "MaximumNumberOfEditsToMessagesOlderThanOneHourReached";
|
|
126
133
|
RESTJSONErrorCodes[RESTJSONErrorCodes["MaximumNumberOfPinnedThreadsInForumHasBeenReached"] = 30047] = "MaximumNumberOfPinnedThreadsInForumHasBeenReached";
|
|
127
134
|
RESTJSONErrorCodes[RESTJSONErrorCodes["MaximumNumberOfTagsInForumHasBeenReached"] = 30048] = "MaximumNumberOfTagsInForumHasBeenReached";
|
|
@@ -137,7 +144,10 @@ var RESTJSONErrorCodes;
|
|
|
137
144
|
RESTJSONErrorCodes[RESTJSONErrorCodes["RequestEntityTooLarge"] = 40005] = "RequestEntityTooLarge";
|
|
138
145
|
RESTJSONErrorCodes[RESTJSONErrorCodes["FeatureTemporarilyDisabledServerSide"] = 40006] = "FeatureTemporarilyDisabledServerSide";
|
|
139
146
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UserBannedFromThisGuild"] = 40007] = "UserBannedFromThisGuild";
|
|
147
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["OnlyOneChannelCanHaveAParentIdModifiedAtATime"] = 40009] = "OnlyOneChannelCanHaveAParentIdModifiedAtATime";
|
|
140
148
|
RESTJSONErrorCodes[RESTJSONErrorCodes["ConnectionHasBeenRevoked"] = 40012] = "ConnectionHasBeenRevoked";
|
|
149
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["OnlyConsumableSKUsCanBeConsumed"] = 40018] = "OnlyConsumableSKUsCanBeConsumed";
|
|
150
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["CanOnlyDeleteSandboxEntitlements"] = 40019] = "CanOnlyDeleteSandboxEntitlements";
|
|
141
151
|
RESTJSONErrorCodes[RESTJSONErrorCodes["TargetUserIsNotConnectedToVoice"] = 40032] = "TargetUserIsNotConnectedToVoice";
|
|
142
152
|
RESTJSONErrorCodes[RESTJSONErrorCodes["ThisMessageWasAlreadyCrossposted"] = 40033] = "ThisMessageWasAlreadyCrossposted";
|
|
143
153
|
RESTJSONErrorCodes[RESTJSONErrorCodes["ApplicationCommandWithThatNameAlreadyExists"] = 40041] = "ApplicationCommandWithThatNameAlreadyExists";
|
|
@@ -149,6 +159,7 @@ var RESTJSONErrorCodes;
|
|
|
149
159
|
RESTJSONErrorCodes[RESTJSONErrorCodes["ThereAreNoTagsAvailableThatCanBeSetByNonModerators"] = 40066] = "ThereAreNoTagsAvailableThatCanBeSetByNonModerators";
|
|
150
160
|
RESTJSONErrorCodes[RESTJSONErrorCodes["TagRequiredToCreateAForumPostInThisChannel"] = 40067] = "TagRequiredToCreateAForumPostInThisChannel";
|
|
151
161
|
RESTJSONErrorCodes[RESTJSONErrorCodes["AnEntitlementHasAlreadyBeenGrantedForThisResource"] = 40074] = "AnEntitlementHasAlreadyBeenGrantedForThisResource";
|
|
162
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["MaximumNumberOfFollowUpMessagesReached"] = 40094] = "MaximumNumberOfFollowUpMessagesReached";
|
|
152
163
|
RESTJSONErrorCodes[RESTJSONErrorCodes["CloudflareIsBlockingYourRequest"] = 40333] = "CloudflareIsBlockingYourRequest";
|
|
153
164
|
RESTJSONErrorCodes[RESTJSONErrorCodes["MissingAccess"] = 50001] = "MissingAccess";
|
|
154
165
|
RESTJSONErrorCodes[RESTJSONErrorCodes["InvalidAccountType"] = 50002] = "InvalidAccountType";
|
|
@@ -202,24 +213,34 @@ var RESTJSONErrorCodes;
|
|
|
202
213
|
RESTJSONErrorCodes[RESTJSONErrorCodes["ServerNeedsMonetizationEnabledToPerformThisAction"] = 50097] = "ServerNeedsMonetizationEnabledToPerformThisAction";
|
|
203
214
|
RESTJSONErrorCodes[RESTJSONErrorCodes["ServerNeedsMoreBoostsToPerformThisAction"] = 50101] = "ServerNeedsMoreBoostsToPerformThisAction";
|
|
204
215
|
RESTJSONErrorCodes[RESTJSONErrorCodes["RequestBodyContainsInvalidJSON"] = 50109] = "RequestBodyContainsInvalidJSON";
|
|
216
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["ProvidedFileIsInvalid"] = 50110] = "ProvidedFileIsInvalid";
|
|
217
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["ProvidedFileTypeIsInvalid"] = 50123] = "ProvidedFileTypeIsInvalid";
|
|
218
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["ProvidedFileDurationExceedsMaximumOf5Point2Seconds"] = 50124] = "ProvidedFileDurationExceedsMaximumOf5Point2Seconds";
|
|
205
219
|
RESTJSONErrorCodes[RESTJSONErrorCodes["OwnerCannotBePendingMember"] = 50131] = "OwnerCannotBePendingMember";
|
|
206
220
|
RESTJSONErrorCodes[RESTJSONErrorCodes["OwnershipCannotBeMovedToABotUser"] = 50132] = "OwnershipCannotBeMovedToABotUser";
|
|
221
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["FailedToResizeAssetBelowTheMaximumSize"] = 50138] = "FailedToResizeAssetBelowTheMaximumSize";
|
|
222
|
+
/** @deprecated Use {@link FailedToResizeAssetBelowTheMaximumSize}. */
|
|
207
223
|
RESTJSONErrorCodes[RESTJSONErrorCodes["FailedToResizeAssetBelowTheMinimumSize"] = 50138] = "FailedToResizeAssetBelowTheMinimumSize";
|
|
208
224
|
RESTJSONErrorCodes[RESTJSONErrorCodes["CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji"] = 50144] = "CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji";
|
|
209
225
|
RESTJSONErrorCodes[RESTJSONErrorCodes["CannotConvertBetweenPremiumEmojiAndNormalEmoji"] = 50145] = "CannotConvertBetweenPremiumEmojiAndNormalEmoji";
|
|
210
226
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UploadedFileNotFound"] = 50146] = "UploadedFileNotFound";
|
|
227
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["SpecifiedEmojiIsInvalid"] = 50151] = "SpecifiedEmojiIsInvalid";
|
|
211
228
|
RESTJSONErrorCodes[RESTJSONErrorCodes["VoiceMessagesDoNotSupportAdditionalContent"] = 50159] = "VoiceMessagesDoNotSupportAdditionalContent";
|
|
212
229
|
RESTJSONErrorCodes[RESTJSONErrorCodes["VoiceMessagesMustHaveASingleAudioAttachment"] = 50160] = "VoiceMessagesMustHaveASingleAudioAttachment";
|
|
213
230
|
RESTJSONErrorCodes[RESTJSONErrorCodes["VoiceMessagesMustHaveSupportingMetadata"] = 50161] = "VoiceMessagesMustHaveSupportingMetadata";
|
|
214
231
|
RESTJSONErrorCodes[RESTJSONErrorCodes["VoiceMessagesCannotBeEdited"] = 50162] = "VoiceMessagesCannotBeEdited";
|
|
215
232
|
RESTJSONErrorCodes[RESTJSONErrorCodes["CannotDeleteGuildSubscriptionIntegration"] = 50163] = "CannotDeleteGuildSubscriptionIntegration";
|
|
233
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["CannotSendVoiceEffectWhenUserIsServerMutedDeafenedOrSuppressed"] = 50167] = "CannotSendVoiceEffectWhenUserIsServerMutedDeafenedOrSuppressed";
|
|
216
234
|
RESTJSONErrorCodes[RESTJSONErrorCodes["YouCannotSendVoiceMessagesInThisChannel"] = 50173] = "YouCannotSendVoiceMessagesInThisChannel";
|
|
217
235
|
RESTJSONErrorCodes[RESTJSONErrorCodes["TheUserAccountMustFirstBeVerified"] = 50178] = "TheUserAccountMustFirstBeVerified";
|
|
236
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["ProvidedFileDoesNotHaveAValidDuration"] = 50192] = "ProvidedFileDoesNotHaveAValidDuration";
|
|
237
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["CannotSendMessagesToThisUserDueToNoMutualGuilds"] = 50278] = "CannotSendMessagesToThisUserDueToNoMutualGuilds";
|
|
218
238
|
RESTJSONErrorCodes[RESTJSONErrorCodes["YouDoNotHavePermissionToSendThisSticker"] = 50600] = "YouDoNotHavePermissionToSendThisSticker";
|
|
219
239
|
RESTJSONErrorCodes[RESTJSONErrorCodes["TwoFactorAuthenticationIsRequired"] = 60003] = "TwoFactorAuthenticationIsRequired";
|
|
220
240
|
RESTJSONErrorCodes[RESTJSONErrorCodes["NoUsersWithDiscordTagExist"] = 80004] = "NoUsersWithDiscordTagExist";
|
|
221
241
|
RESTJSONErrorCodes[RESTJSONErrorCodes["ReactionWasBlocked"] = 90001] = "ReactionWasBlocked";
|
|
222
242
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UserCannotUseBurstReactions"] = 90002] = "UserCannotUseBurstReactions";
|
|
243
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["IndexNotYetAvailable"] = 110000] = "IndexNotYetAvailable";
|
|
223
244
|
RESTJSONErrorCodes[RESTJSONErrorCodes["ApplicationNotYetAvailable"] = 110001] = "ApplicationNotYetAvailable";
|
|
224
245
|
RESTJSONErrorCodes[RESTJSONErrorCodes["APIResourceOverloaded"] = 130000] = "APIResourceOverloaded";
|
|
225
246
|
RESTJSONErrorCodes[RESTJSONErrorCodes["TheStageIsAlreadyOpen"] = 150006] = "TheStageIsAlreadyOpen";
|
|
@@ -228,6 +249,7 @@ var RESTJSONErrorCodes;
|
|
|
228
249
|
RESTJSONErrorCodes[RESTJSONErrorCodes["ThreadLocked"] = 160005] = "ThreadLocked";
|
|
229
250
|
RESTJSONErrorCodes[RESTJSONErrorCodes["MaximumActiveThreads"] = 160006] = "MaximumActiveThreads";
|
|
230
251
|
RESTJSONErrorCodes[RESTJSONErrorCodes["MaximumActiveAnnouncementThreads"] = 160007] = "MaximumActiveAnnouncementThreads";
|
|
252
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["CannotForwardAMessageWhoseContentYouCannotRead"] = 160014] = "CannotForwardAMessageWhoseContentYouCannotRead";
|
|
231
253
|
RESTJSONErrorCodes[RESTJSONErrorCodes["InvalidJSONForUploadedLottieFile"] = 170001] = "InvalidJSONForUploadedLottieFile";
|
|
232
254
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UploadedLottiesCannotContainRasterizedImages"] = 170002] = "UploadedLottiesCannotContainRasterizedImages";
|
|
233
255
|
RESTJSONErrorCodes[RESTJSONErrorCodes["StickerMaximumFramerateExceeded"] = 170003] = "StickerMaximumFramerateExceeded";
|
|
@@ -244,8 +266,10 @@ var RESTJSONErrorCodes;
|
|
|
244
266
|
RESTJSONErrorCodes[RESTJSONErrorCodes["WebhooksCanOnlyCreateThreadsInForumChannels"] = 220003] = "WebhooksCanOnlyCreateThreadsInForumChannels";
|
|
245
267
|
RESTJSONErrorCodes[RESTJSONErrorCodes["WebhookServicesCannotBeUsedInForumChannels"] = 220004] = "WebhookServicesCannotBeUsedInForumChannels";
|
|
246
268
|
RESTJSONErrorCodes[RESTJSONErrorCodes["MessageBlockedByHarmfulLinksFilter"] = 240000] = "MessageBlockedByHarmfulLinksFilter";
|
|
269
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["AccessToJoiningNewServersHasBeenLimitedForTheUser"] = 340015] = "AccessToJoiningNewServersHasBeenLimitedForTheUser";
|
|
247
270
|
RESTJSONErrorCodes[RESTJSONErrorCodes["CannotEnableOnboardingRequirementsAreNotMet"] = 350000] = "CannotEnableOnboardingRequirementsAreNotMet";
|
|
248
271
|
RESTJSONErrorCodes[RESTJSONErrorCodes["CannotUpdateOnboardingWhileBelowRequirements"] = 350001] = "CannotUpdateOnboardingWhileBelowRequirements";
|
|
272
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["AccessToFileUploadsHasBeenLimitedForThisGuild"] = 400001] = "AccessToFileUploadsHasBeenLimitedForThisGuild";
|
|
249
273
|
RESTJSONErrorCodes[RESTJSONErrorCodes["FailedToBanUsers"] = 500000] = "FailedToBanUsers";
|
|
250
274
|
RESTJSONErrorCodes[RESTJSONErrorCodes["PollVotingBlocked"] = 520000] = "PollVotingBlocked";
|
|
251
275
|
RESTJSONErrorCodes[RESTJSONErrorCodes["PollExpired"] = 520001] = "PollExpired";
|
|
@@ -253,9 +277,16 @@ var RESTJSONErrorCodes;
|
|
|
253
277
|
RESTJSONErrorCodes[RESTJSONErrorCodes["CannotEditAPollMessage"] = 520003] = "CannotEditAPollMessage";
|
|
254
278
|
RESTJSONErrorCodes[RESTJSONErrorCodes["CannotUseAnEmojiIncludedWithThePoll"] = 520004] = "CannotUseAnEmojiIncludedWithThePoll";
|
|
255
279
|
RESTJSONErrorCodes[RESTJSONErrorCodes["CannotExpireANonPollMessage"] = 520006] = "CannotExpireANonPollMessage";
|
|
280
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["DiscordApplicationNotGrantedPermissionToUseProvisionalAccounts"] = 530000] = "DiscordApplicationNotGrantedPermissionToUseProvisionalAccounts";
|
|
281
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["IDTokenJWTExpired"] = 530001] = "IDTokenJWTExpired";
|
|
282
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["IDTokenJWTIssuerMismatch"] = 530002] = "IDTokenJWTIssuerMismatch";
|
|
283
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["IDTokenJWTAudienceMismatch"] = 530003] = "IDTokenJWTAudienceMismatch";
|
|
284
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["IDTokenIssuedTooLongAgo"] = 530004] = "IDTokenIssuedTooLongAgo";
|
|
285
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["FailedToGenerateUniqueUsername"] = 530006] = "FailedToGenerateUniqueUsername";
|
|
286
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["InvalidClientSecret"] = 530007] = "InvalidClientSecret";
|
|
256
287
|
})(RESTJSONErrorCodes || (exports.RESTJSONErrorCodes = RESTJSONErrorCodes = {}));
|
|
257
288
|
/**
|
|
258
|
-
* https://discord.com/developers/
|
|
289
|
+
* https://docs.discord.com/developers/reference#locales
|
|
259
290
|
*/
|
|
260
291
|
var Locale;
|
|
261
292
|
(function (Locale) {
|