seyfert 4.4.1 → 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/README.md +7 -1
- 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/client.d.ts +1 -1
- package/lib/client/client.js +5 -4
- 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 +34 -14
- 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/index.d.ts +1 -1
- package/lib/index.js +2 -1
- 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 +255 -122
- package/lib/websocket/discord/sharder.d.ts +2 -2
- package/lib/websocket/discord/sharder.js +2 -2
- 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 +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Types extracted from https://discord.com/developers/
|
|
2
|
+
* Types extracted from https://docs.discord.com/developers/resources/application
|
|
3
3
|
*/
|
|
4
4
|
import type { MakeRequired } from '../../common';
|
|
5
5
|
import type { Permissions, Snowflake } from '..';
|
|
@@ -10,7 +10,7 @@ import type { OAuth2Scopes } from './oauth2';
|
|
|
10
10
|
import type { APITeam } from './teams';
|
|
11
11
|
import type { APIUser } from './user';
|
|
12
12
|
/**
|
|
13
|
-
* https://discord.com/developers/
|
|
13
|
+
* https://docs.discord.com/developers/resources/application#application-object
|
|
14
14
|
*/
|
|
15
15
|
export interface APIApplication {
|
|
16
16
|
/**
|
|
@@ -56,19 +56,19 @@ export interface APIApplication {
|
|
|
56
56
|
/**
|
|
57
57
|
* Partial user object containing info on the owner of the application
|
|
58
58
|
*
|
|
59
|
-
* See https://discord.com/developers/
|
|
59
|
+
* See https://docs.discord.com/developers/resources/user#user-object
|
|
60
60
|
*/
|
|
61
61
|
owner?: APIUser;
|
|
62
62
|
/**
|
|
63
63
|
* The hexadecimal encoded key for verification in interactions and the GameSDK's GetTicket function
|
|
64
64
|
*
|
|
65
|
-
* See https://discord.com/developers/
|
|
65
|
+
* See https://docs.discord.com/developers/game-sdk/applications#getticket
|
|
66
66
|
*/
|
|
67
67
|
verify_key: string;
|
|
68
68
|
/**
|
|
69
69
|
* The team this application belongs to
|
|
70
70
|
*
|
|
71
|
-
* See https://discord.com/developers/
|
|
71
|
+
* See https://docs.discord.com/developers/topics/teams#data-models-team-object
|
|
72
72
|
*/
|
|
73
73
|
team: APITeam | null;
|
|
74
74
|
/**
|
|
@@ -94,9 +94,15 @@ export interface APIApplication {
|
|
|
94
94
|
/**
|
|
95
95
|
* The application's public flags
|
|
96
96
|
*
|
|
97
|
-
* See https://discord.com/developers/
|
|
97
|
+
* See https://docs.discord.com/developers/resources/application#application-object-application-flags
|
|
98
98
|
*/
|
|
99
99
|
flags: ApplicationFlags;
|
|
100
|
+
/**
|
|
101
|
+
* The application's public flags, including bits beyond bit 30, serialized as a string
|
|
102
|
+
*
|
|
103
|
+
* This field is only returned in responses. Requests that accept application flags use `flags`.
|
|
104
|
+
*/
|
|
105
|
+
flags_new?: string;
|
|
100
106
|
/**
|
|
101
107
|
* Approximate count of guilds the application has been added to
|
|
102
108
|
*/
|
|
@@ -148,7 +154,7 @@ export type APIApplicationIntegrationTypesConfigMap = {
|
|
|
148
154
|
[key in ApplicationIntegrationType]?: APIApplicationIntegrationTypeConfiguration;
|
|
149
155
|
};
|
|
150
156
|
/**
|
|
151
|
-
* https://discord.com/developers/
|
|
157
|
+
* https://docs.discord.com/developers/resources/application#application-object-application-flags
|
|
152
158
|
*/
|
|
153
159
|
export declare enum ApplicationFlags {
|
|
154
160
|
/**
|
|
@@ -185,12 +191,12 @@ export declare enum ApplicationFlags {
|
|
|
185
191
|
GatewayPresenceLimited = 8192,
|
|
186
192
|
/**
|
|
187
193
|
* Intent required for bots in 100 or more servers to receive member-related events like `guild_member_add`.
|
|
188
|
-
* See list of member-related events [under `GUILD_MEMBERS`](https://discord.com/developers/
|
|
194
|
+
* See list of member-related events [under `GUILD_MEMBERS`](https://docs.discord.com/developers/topics/gateway#list-of-intents)
|
|
189
195
|
*/
|
|
190
196
|
GatewayGuildMembers = 16384,
|
|
191
197
|
/**
|
|
192
198
|
* Intent required for bots in under 100 servers to receive member-related events like `guild_member_add`, found in Bot Settings.
|
|
193
|
-
* See list of member-related events [under `GUILD_MEMBERS`](https://discord.com/developers/
|
|
199
|
+
* See list of member-related events [under `GUILD_MEMBERS`](https://docs.discord.com/developers/topics/gateway#list-of-intents)
|
|
194
200
|
*/
|
|
195
201
|
GatewayGuildMembersLimited = 32768,
|
|
196
202
|
/**
|
|
@@ -215,12 +221,12 @@ export declare enum ApplicationFlags {
|
|
|
215
221
|
*/
|
|
216
222
|
EmbeddedFirstParty = 1048576,
|
|
217
223
|
/**
|
|
218
|
-
* Indicates if an app has registered global [application commands](https://discord.com/developers/
|
|
224
|
+
* Indicates if an app has registered global [application commands](https://docs.discord.com/developers/interactions/application-commands)
|
|
219
225
|
*/
|
|
220
226
|
ApplicationCommandBadge = 8388608
|
|
221
227
|
}
|
|
222
228
|
/**
|
|
223
|
-
* https://discord.com/developers/
|
|
229
|
+
* https://docs.discord.com/developers/resources/application-role-connection-metadata#application-role-connection-metadata-object-application-role-connection-metadata-structure
|
|
224
230
|
*/
|
|
225
231
|
export interface APIApplicationRoleConnectionMetadata {
|
|
226
232
|
/**
|
|
@@ -249,7 +255,7 @@ export interface APIApplicationRoleConnectionMetadata {
|
|
|
249
255
|
description_localizations?: LocalizationMap;
|
|
250
256
|
}
|
|
251
257
|
/**
|
|
252
|
-
* https://discord.com/developers/
|
|
258
|
+
* https://docs.discord.com/developers/resources/application-role-connection-metadata#application-role-connection-metadata-object-application-role-connection-metadata-type
|
|
253
259
|
*/
|
|
254
260
|
export declare enum ApplicationRoleConnectionMetadataType {
|
|
255
261
|
/**
|
|
@@ -286,7 +292,7 @@ export declare enum ApplicationRoleConnectionMetadataType {
|
|
|
286
292
|
BooleanNotEqual = 8
|
|
287
293
|
}
|
|
288
294
|
/**
|
|
289
|
-
* https://discord.com/developers/
|
|
295
|
+
* https://docs.discord.com/developers/resources/application#get-application-activity-instance-activity-instance-object
|
|
290
296
|
*/
|
|
291
297
|
export interface APIActivityInstance {
|
|
292
298
|
application_id: string;
|
|
@@ -297,7 +303,7 @@ export interface APIActivityInstance {
|
|
|
297
303
|
users: string[];
|
|
298
304
|
}
|
|
299
305
|
/**
|
|
300
|
-
* https://discord.com/developers/
|
|
306
|
+
* https://docs.discord.com/developers/resources/application#get-application-activity-instance-activity-location-object
|
|
301
307
|
*/
|
|
302
308
|
export interface APIActivityLocation {
|
|
303
309
|
id: string;
|
|
@@ -307,7 +313,7 @@ export interface APIActivityLocation {
|
|
|
307
313
|
guild_id?: string | null;
|
|
308
314
|
}
|
|
309
315
|
/**
|
|
310
|
-
* https://discord.com/developers/
|
|
316
|
+
* https://docs.discord.com/developers/resources/application#get-application-activity-instance-activity-location-kind-enum
|
|
311
317
|
*/
|
|
312
318
|
export declare enum ActivityLocation {
|
|
313
319
|
GuildChannel = "gc",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Types extracted from https://discord.com/developers/
|
|
3
|
+
* Types extracted from https://docs.discord.com/developers/resources/application
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ActivityLocation = exports.ApplicationRoleConnectionMetadataType = exports.ApplicationFlags = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* https://discord.com/developers/
|
|
8
|
+
* https://docs.discord.com/developers/resources/application#application-object-application-flags
|
|
9
9
|
*/
|
|
10
10
|
var ApplicationFlags;
|
|
11
11
|
(function (ApplicationFlags) {
|
|
@@ -43,12 +43,12 @@ var ApplicationFlags;
|
|
|
43
43
|
ApplicationFlags[ApplicationFlags["GatewayPresenceLimited"] = 8192] = "GatewayPresenceLimited";
|
|
44
44
|
/**
|
|
45
45
|
* Intent required for bots in 100 or more servers to receive member-related events like `guild_member_add`.
|
|
46
|
-
* See list of member-related events [under `GUILD_MEMBERS`](https://discord.com/developers/
|
|
46
|
+
* See list of member-related events [under `GUILD_MEMBERS`](https://docs.discord.com/developers/topics/gateway#list-of-intents)
|
|
47
47
|
*/
|
|
48
48
|
ApplicationFlags[ApplicationFlags["GatewayGuildMembers"] = 16384] = "GatewayGuildMembers";
|
|
49
49
|
/**
|
|
50
50
|
* Intent required for bots in under 100 servers to receive member-related events like `guild_member_add`, found in Bot Settings.
|
|
51
|
-
* See list of member-related events [under `GUILD_MEMBERS`](https://discord.com/developers/
|
|
51
|
+
* See list of member-related events [under `GUILD_MEMBERS`](https://docs.discord.com/developers/topics/gateway#list-of-intents)
|
|
52
52
|
*/
|
|
53
53
|
ApplicationFlags[ApplicationFlags["GatewayGuildMembersLimited"] = 32768] = "GatewayGuildMembersLimited";
|
|
54
54
|
/**
|
|
@@ -73,12 +73,12 @@ var ApplicationFlags;
|
|
|
73
73
|
*/
|
|
74
74
|
ApplicationFlags[ApplicationFlags["EmbeddedFirstParty"] = 1048576] = "EmbeddedFirstParty";
|
|
75
75
|
/**
|
|
76
|
-
* Indicates if an app has registered global [application commands](https://discord.com/developers/
|
|
76
|
+
* Indicates if an app has registered global [application commands](https://docs.discord.com/developers/interactions/application-commands)
|
|
77
77
|
*/
|
|
78
78
|
ApplicationFlags[ApplicationFlags["ApplicationCommandBadge"] = 8388608] = "ApplicationCommandBadge";
|
|
79
79
|
})(ApplicationFlags || (exports.ApplicationFlags = ApplicationFlags = {}));
|
|
80
80
|
/**
|
|
81
|
-
* https://discord.com/developers/
|
|
81
|
+
* https://docs.discord.com/developers/resources/application-role-connection-metadata#application-role-connection-metadata-object-application-role-connection-metadata-type
|
|
82
82
|
*/
|
|
83
83
|
var ApplicationRoleConnectionMetadataType;
|
|
84
84
|
(function (ApplicationRoleConnectionMetadataType) {
|
|
@@ -116,7 +116,7 @@ var ApplicationRoleConnectionMetadataType;
|
|
|
116
116
|
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["BooleanNotEqual"] = 8] = "BooleanNotEqual";
|
|
117
117
|
})(ApplicationRoleConnectionMetadataType || (exports.ApplicationRoleConnectionMetadataType = ApplicationRoleConnectionMetadataType = {}));
|
|
118
118
|
/**
|
|
119
|
-
* https://discord.com/developers/
|
|
119
|
+
* https://docs.discord.com/developers/resources/application#get-application-activity-instance-activity-location-kind-enum
|
|
120
120
|
*/
|
|
121
121
|
var ActivityLocation;
|
|
122
122
|
(function (ActivityLocation) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Types extracted from https://discord.com/developers/
|
|
2
|
+
* Types extracted from https://docs.discord.com/developers/resources/audit-log
|
|
3
3
|
*/
|
|
4
4
|
import type { Snowflake } from '..';
|
|
5
5
|
import type { APIAutoModerationAction, APIAutoModerationRule, APIAutoModerationRuleTriggerMetadata, AutoModerationRuleEventType, AutoModerationRuleTriggerType } from './autoModeration';
|
|
@@ -13,43 +13,43 @@ import type { StickerFormatType } from './sticker';
|
|
|
13
13
|
import type { APIUser } from './user';
|
|
14
14
|
import type { APIWebhook } from './webhook';
|
|
15
15
|
/**
|
|
16
|
-
* https://discord.com/developers/
|
|
16
|
+
* https://docs.discord.com/developers/resources/audit-log#audit-log-object-audit-log-structure
|
|
17
17
|
*/
|
|
18
18
|
export interface APIAuditLog {
|
|
19
19
|
/**
|
|
20
20
|
* List of application commands found in the audit log
|
|
21
21
|
*
|
|
22
|
-
* See https://discord.com/developers/
|
|
22
|
+
* See https://docs.discord.com/developers/interactions/application-commands#application-command-object
|
|
23
23
|
*/
|
|
24
24
|
application_commands: APIApplicationCommand[];
|
|
25
25
|
/**
|
|
26
26
|
* Webhooks found in the audit log
|
|
27
27
|
*
|
|
28
|
-
* See https://discord.com/developers/
|
|
28
|
+
* See https://docs.discord.com/developers/resources/webhook#webhook-object
|
|
29
29
|
*/
|
|
30
30
|
webhooks: APIWebhook[];
|
|
31
31
|
/**
|
|
32
32
|
* Users found in the audit log
|
|
33
33
|
*
|
|
34
|
-
* See https://discord.com/developers/
|
|
34
|
+
* See https://docs.discord.com/developers/resources/user#user-object
|
|
35
35
|
*/
|
|
36
36
|
users: APIUser[];
|
|
37
37
|
/**
|
|
38
38
|
* Audit log entries
|
|
39
39
|
*
|
|
40
|
-
* See https://discord.com/developers/
|
|
40
|
+
* See https://docs.discord.com/developers/resources/audit-log#audit-log-entry-object
|
|
41
41
|
*/
|
|
42
42
|
audit_log_entries: APIAuditLogEntry[];
|
|
43
43
|
/**
|
|
44
44
|
* List of auto moderation rules referenced in the audit log
|
|
45
45
|
*
|
|
46
|
-
* See https://discord.com/developers/
|
|
46
|
+
* See https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-rule-object
|
|
47
47
|
*/
|
|
48
48
|
auto_moderation_rules: APIAutoModerationRule[];
|
|
49
49
|
/**
|
|
50
50
|
* Partial integration objects
|
|
51
51
|
*
|
|
52
|
-
* See https://discord.com/developers/
|
|
52
|
+
* See https://docs.discord.com/developers/resources/guild#integration-object
|
|
53
53
|
*/
|
|
54
54
|
integrations: APIGuildIntegration[];
|
|
55
55
|
/**
|
|
@@ -57,18 +57,18 @@ export interface APIAuditLog {
|
|
|
57
57
|
*
|
|
58
58
|
* Threads referenced in THREAD_CREATE and THREAD_UPDATE events are included in the threads map, since archived threads might not be kept in memory by clients.
|
|
59
59
|
*
|
|
60
|
-
* See https://discord.com/developers/
|
|
60
|
+
* See https://docs.discord.com/developers/resources/channel#channel-object
|
|
61
61
|
*/
|
|
62
62
|
threads: APIChannel[];
|
|
63
63
|
/**
|
|
64
64
|
* The guild scheduled events in the audit log
|
|
65
65
|
*
|
|
66
|
-
* See https://discord.com/developers/
|
|
66
|
+
* See https://docs.discord.com/developers/resources/guild-scheduled-event#guild-scheduled-event-object
|
|
67
67
|
*/
|
|
68
68
|
guild_scheduled_events: APIGuildScheduledEvent[];
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
|
-
* https://discord.com/developers/
|
|
71
|
+
* https://docs.discord.com/developers/resources/audit-log#audit-log-entry-object-audit-log-entry-structure
|
|
72
72
|
*/
|
|
73
73
|
export interface APIAuditLogEntry {
|
|
74
74
|
/**
|
|
@@ -78,7 +78,7 @@ export interface APIAuditLogEntry {
|
|
|
78
78
|
/**
|
|
79
79
|
* Changes made to the `target_id`
|
|
80
80
|
*
|
|
81
|
-
* See https://discord.com/developers/
|
|
81
|
+
* See https://docs.discord.com/developers/resources/audit-log#audit-log-change-object
|
|
82
82
|
*/
|
|
83
83
|
changes?: APIAuditLogChange[];
|
|
84
84
|
/**
|
|
@@ -94,13 +94,13 @@ export interface APIAuditLogEntry {
|
|
|
94
94
|
/**
|
|
95
95
|
* Type of action that occurred
|
|
96
96
|
*
|
|
97
|
-
* See https://discord.com/developers/
|
|
97
|
+
* See https://docs.discord.com/developers/resources/audit-log#audit-log-entry-object-audit-log-events
|
|
98
98
|
*/
|
|
99
99
|
action_type: AuditLogEvent;
|
|
100
100
|
/**
|
|
101
101
|
* Additional info for certain action types
|
|
102
102
|
*
|
|
103
|
-
* See https://discord.com/developers/
|
|
103
|
+
* See https://docs.discord.com/developers/resources/audit-log#audit-log-entry-object-optional-audit-entry-info
|
|
104
104
|
*/
|
|
105
105
|
options?: APIAuditLogOptions;
|
|
106
106
|
/**
|
|
@@ -109,7 +109,7 @@ export interface APIAuditLogEntry {
|
|
|
109
109
|
reason?: string;
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
-
* https://discord.com/developers/
|
|
112
|
+
* https://docs.discord.com/developers/resources/audit-log#audit-log-entry-object-audit-log-events
|
|
113
113
|
*/
|
|
114
114
|
export declare enum AuditLogEvent {
|
|
115
115
|
GuildUpdate = 1,
|
|
@@ -178,11 +178,16 @@ export declare enum AuditLogEvent {
|
|
|
178
178
|
OnboardingUpdate = 167,
|
|
179
179
|
HomeSettingsCreate = 190,
|
|
180
180
|
HomeSettingsUpdate = 191,
|
|
181
|
+
VoiceChannelStatusCreate = 192,
|
|
182
|
+
/**
|
|
183
|
+
* @deprecated Use {@link VoiceChannelStatusCreate} instead.
|
|
184
|
+
* Declared after the canonical name to preserve the v4 reverse lookup for value 192.
|
|
185
|
+
*/
|
|
181
186
|
VoiceChannelStatusUpdate = 192,
|
|
182
187
|
VoiceChannelStatusDelete = 193
|
|
183
188
|
}
|
|
184
189
|
/**
|
|
185
|
-
* https://discord.com/developers/
|
|
190
|
+
* https://docs.discord.com/developers/resources/audit-log#audit-log-entry-object-optional-audit-entry-info
|
|
186
191
|
*/
|
|
187
192
|
export interface APIAuditLogOptions {
|
|
188
193
|
/**
|
|
@@ -304,7 +309,7 @@ export declare enum AuditLogOptionsType {
|
|
|
304
309
|
}
|
|
305
310
|
export type AuditLogRuleTriggerType = `${AutoModerationRuleTriggerType}`;
|
|
306
311
|
/**
|
|
307
|
-
* https://discord.com/developers/
|
|
312
|
+
* https://docs.discord.com/developers/resources/audit-log#audit-log-change-object-audit-log-change-structure
|
|
308
313
|
*/
|
|
309
314
|
export type APIAuditLogChange = APIAuditLogChangeKey$Add | APIAuditLogChangeKey$Remove | APIAuditLogChangeKeyActions | APIAuditLogChangeKeyAFKChannelId | APIAuditLogChangeKeyAFKTimeout | APIAuditLogChangeKeyAllow | APIAuditLogChangeKeyApplicationId | APIAuditLogChangeKeyArchived | APIAuditLogChangeKeyAsset | APIAuditLogChangeKeyAutoArchiveDuration | APIAuditLogChangeKeyAvailable | APIAuditLogChangeKeyAvailableTags | APIAuditLogChangeKeyAvatarHash | APIAuditLogChangeKeyBannerHash | APIAuditLogChangeKeyBitrate | APIAuditLogChangeKeyChannelId | APIAuditLogChangeKeyCode | APIAuditLogChangeKeyColor | APIAuditLogChangeKeyCommunicationDisabledUntil | APIAuditLogChangeKeyDeaf | APIAuditLogChangeKeyDefaultAutoArchiveDuration | APIAuditLogChangeKeyDefaultMessageNotifications | APIAuditLogChangeKeyDefaultReactionEmoji | APIAuditLogChangeKeyDefaultThreadRateLimitPerUser | APIAuditLogChangeKeyDeny | APIAuditLogChangeKeyDescription | APIAuditLogChangeKeyDiscoverySplashHash | APIAuditLogChangeKeyEmojiId | APIAuditLogChangeKeyEmojiName | APIAuditLogChangeKeyEnabled | APIAuditLogChangeKeyEnableEmoticons | APIAuditLogChangeKeyEntityType | APIAuditLogChangeKeyEventType | APIAuditLogChangeKeyExemptChannels | APIAuditLogChangeKeyExemptRoles | APIAuditLogChangeKeyExpireBehavior | APIAuditLogChangeKeyExpireGracePeriod | APIAuditLogChangeKeyExplicitContentFilter | APIAuditLogChangeKeyFlags | APIAuditLogChangeKeyFormatType | APIAuditLogChangeKeyGuildId | APIAuditLogChangeKeyHoist | APIAuditLogChangeKeyIconHash | APIAuditLogChangeKeyId | APIAuditLogChangeKeyImageHash | APIAuditLogChangeKeyInviterId | APIAuditLogChangeKeyLocation | APIAuditLogChangeKeyLocked | APIAuditLogChangeKeyMaxAge | APIAuditLogChangeKeyMaxUses | APIAuditLogChangeKeyMentionable | APIAuditLogChangeKeyMFALevel | APIAuditLogChangeKeyMute | APIAuditLogChangeKeyName | APIAuditLogChangeKeyNick | APIAuditLogChangeKeyNSFW | APIAuditLogChangeKeyOwnerId | APIAuditLogChangeKeyPermissionOverwrites | APIAuditLogChangeKeyPermissions | APIAuditLogChangeKeyPosition | APIAuditLogChangeKeyPreferredLocale | APIAuditLogChangeKeyPremiumProgressBarEnabled | APIAuditLogChangeKeyPrivacyLevel | APIAuditLogChangeKeyPruneDeleteDays | APIAuditLogChangeKeyPublicUpdatesChannelId | APIAuditLogChangeKeyRateLimitPerUser | APIAuditLogChangeKeyRegion | APIAuditLogChangeKeyRulesChannelId | APIAuditLogChangeKeySoundId | APIAuditLogChangeKeySplashHash | APIAuditLogChangeKeyStatus | APIAuditLogChangeKeySystemChannelFlags | APIAuditLogChangeKeySystemChannelId | APIAuditLogChangeKeyTags | APIAuditLogChangeKeyTemporary | APIAuditLogChangeKeyTopic | APIAuditLogChangeKeyTriggerMetadata | APIAuditLogChangeKeyTriggerType | APIAuditLogChangeKeyType | APIAuditLogChangeKeyUserId | APIAuditLogChangeKeyUserLimit | APIAuditLogChangeKeyUses | APIAuditLogChangeKeyVanityURLCode | APIAuditLogChangeKeyVerificationLevel | APIAuditLogChangeKeyVolume | APIAuditLogChangeKeyWidgetChannelId | APIAuditLogChangeKeyWidgetEnabled;
|
|
310
315
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Types extracted from https://discord.com/developers/
|
|
3
|
+
* Types extracted from https://docs.discord.com/developers/resources/audit-log
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AuditLogOptionsType = exports.AuditLogEvent = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* https://discord.com/developers/
|
|
8
|
+
* https://docs.discord.com/developers/resources/audit-log#audit-log-entry-object-audit-log-events
|
|
9
9
|
*/
|
|
10
10
|
var AuditLogEvent;
|
|
11
11
|
(function (AuditLogEvent) {
|
|
@@ -75,6 +75,11 @@ var AuditLogEvent;
|
|
|
75
75
|
AuditLogEvent[AuditLogEvent["OnboardingUpdate"] = 167] = "OnboardingUpdate";
|
|
76
76
|
AuditLogEvent[AuditLogEvent["HomeSettingsCreate"] = 190] = "HomeSettingsCreate";
|
|
77
77
|
AuditLogEvent[AuditLogEvent["HomeSettingsUpdate"] = 191] = "HomeSettingsUpdate";
|
|
78
|
+
AuditLogEvent[AuditLogEvent["VoiceChannelStatusCreate"] = 192] = "VoiceChannelStatusCreate";
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated Use {@link VoiceChannelStatusCreate} instead.
|
|
81
|
+
* Declared after the canonical name to preserve the v4 reverse lookup for value 192.
|
|
82
|
+
*/
|
|
78
83
|
AuditLogEvent[AuditLogEvent["VoiceChannelStatusUpdate"] = 192] = "VoiceChannelStatusUpdate";
|
|
79
84
|
AuditLogEvent[AuditLogEvent["VoiceChannelStatusDelete"] = 193] = "VoiceChannelStatusDelete";
|
|
80
85
|
})(AuditLogEvent || (exports.AuditLogEvent = AuditLogEvent = {}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Types extracted from https://discord.com/developers/
|
|
2
|
+
* Types extracted from https://docs.discord.com/developers/resources/auto-moderation
|
|
3
3
|
*/
|
|
4
4
|
import type { Snowflake } from '../index';
|
|
5
5
|
/**
|
|
6
|
-
* https://discord.com/developers/
|
|
6
|
+
* https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-rule-object-auto-moderation-rule-structure
|
|
7
7
|
*/
|
|
8
8
|
export interface APIAutoModerationRule {
|
|
9
9
|
/**
|
|
@@ -52,7 +52,7 @@ export interface APIAutoModerationRule {
|
|
|
52
52
|
exempt_channels: Snowflake[];
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* https://discord.com/developers/
|
|
55
|
+
* https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-rule-object-trigger-types
|
|
56
56
|
*/
|
|
57
57
|
export declare enum AutoModerationRuleTriggerType {
|
|
58
58
|
/**
|
|
@@ -77,14 +77,14 @@ export declare enum AutoModerationRuleTriggerType {
|
|
|
77
77
|
MemberProfile = 6
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
|
-
* https://discord.com/developers/
|
|
80
|
+
* https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-rule-object-trigger-metadata
|
|
81
81
|
*/
|
|
82
82
|
export interface APIAutoModerationRuleTriggerMetadata {
|
|
83
83
|
/**
|
|
84
84
|
* Substrings which will be searched for in content (Maximum of 1000)
|
|
85
85
|
*
|
|
86
86
|
* A keyword can be a phrase which contains multiple words. Wildcard symbols can be used to customize how each string will be matched. Each keyword must be 60 characters or less
|
|
87
|
-
* See [keyword matching strategies](https://discord.com/developers/
|
|
87
|
+
* See [keyword matching strategies](https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-rule-object-keyword-matching-strategies)
|
|
88
88
|
*
|
|
89
89
|
* Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.MemberProfile}
|
|
90
90
|
*/
|
|
@@ -99,7 +99,7 @@ export interface APIAutoModerationRuleTriggerMetadata {
|
|
|
99
99
|
* Substrings which will be exempt from triggering the preset trigger type (Maximum of 1000)
|
|
100
100
|
*
|
|
101
101
|
* A allowed-word can be a phrase which contains multiple words. Wildcard symbols can be used to customize how each string will be matched. Each keyword must be 60 characters or less
|
|
102
|
-
* See [keyword matching strategies](https://discord.com/developers/
|
|
102
|
+
* See [keyword matching strategies](https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-rule-object-keyword-matching-strategies)
|
|
103
103
|
*
|
|
104
104
|
* Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.KeywordPreset}, {@link AutoModerationRuleTriggerType.MemberProfile}
|
|
105
105
|
*/
|
|
@@ -126,7 +126,7 @@ export interface APIAutoModerationRuleTriggerMetadata {
|
|
|
126
126
|
mention_raid_protection_enabled?: boolean;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
|
-
* https://discord.com/developers/
|
|
129
|
+
* https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-rule-object-keyword-preset-types
|
|
130
130
|
*/
|
|
131
131
|
export declare enum AutoModerationRuleKeywordPresetType {
|
|
132
132
|
/**
|
|
@@ -143,7 +143,7 @@ export declare enum AutoModerationRuleKeywordPresetType {
|
|
|
143
143
|
Slurs = 3
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
|
-
* https://discord.com/developers/
|
|
146
|
+
* https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-rule-object-event-types
|
|
147
147
|
*/
|
|
148
148
|
export declare enum AutoModerationRuleEventType {
|
|
149
149
|
/**
|
|
@@ -156,7 +156,7 @@ export declare enum AutoModerationRuleEventType {
|
|
|
156
156
|
MemberUpdate = 2
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
159
|
-
* https://discord.com/developers/
|
|
159
|
+
* https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-action-object-auto-moderation-action-structure
|
|
160
160
|
*/
|
|
161
161
|
export interface APIAutoModerationAction {
|
|
162
162
|
/**
|
|
@@ -171,7 +171,7 @@ export interface APIAutoModerationAction {
|
|
|
171
171
|
metadata?: APIAutoModerationActionMetadata;
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
|
-
* https://discord.com/developers/
|
|
174
|
+
* https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-action-object-action-types
|
|
175
175
|
*/
|
|
176
176
|
export declare enum AutoModerationActionType {
|
|
177
177
|
/**
|
|
@@ -193,7 +193,7 @@ export declare enum AutoModerationActionType {
|
|
|
193
193
|
BlockMemberInteraction = 4
|
|
194
194
|
}
|
|
195
195
|
/**
|
|
196
|
-
* https://discord.com/developers/
|
|
196
|
+
* https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-action-object-action-metadata
|
|
197
197
|
*/
|
|
198
198
|
export interface APIAutoModerationActionMetadata {
|
|
199
199
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Types extracted from https://discord.com/developers/
|
|
3
|
+
* Types extracted from https://docs.discord.com/developers/resources/auto-moderation
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AutoModerationActionType = exports.AutoModerationRuleEventType = exports.AutoModerationRuleKeywordPresetType = exports.AutoModerationRuleTriggerType = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* https://discord.com/developers/
|
|
8
|
+
* https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-rule-object-trigger-types
|
|
9
9
|
*/
|
|
10
10
|
var AutoModerationRuleTriggerType;
|
|
11
11
|
(function (AutoModerationRuleTriggerType) {
|
|
@@ -31,7 +31,7 @@ var AutoModerationRuleTriggerType;
|
|
|
31
31
|
AutoModerationRuleTriggerType[AutoModerationRuleTriggerType["MemberProfile"] = 6] = "MemberProfile";
|
|
32
32
|
})(AutoModerationRuleTriggerType || (exports.AutoModerationRuleTriggerType = AutoModerationRuleTriggerType = {}));
|
|
33
33
|
/**
|
|
34
|
-
* https://discord.com/developers/
|
|
34
|
+
* https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-rule-object-keyword-preset-types
|
|
35
35
|
*/
|
|
36
36
|
var AutoModerationRuleKeywordPresetType;
|
|
37
37
|
(function (AutoModerationRuleKeywordPresetType) {
|
|
@@ -49,7 +49,7 @@ var AutoModerationRuleKeywordPresetType;
|
|
|
49
49
|
AutoModerationRuleKeywordPresetType[AutoModerationRuleKeywordPresetType["Slurs"] = 3] = "Slurs";
|
|
50
50
|
})(AutoModerationRuleKeywordPresetType || (exports.AutoModerationRuleKeywordPresetType = AutoModerationRuleKeywordPresetType = {}));
|
|
51
51
|
/**
|
|
52
|
-
* https://discord.com/developers/
|
|
52
|
+
* https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-rule-object-event-types
|
|
53
53
|
*/
|
|
54
54
|
var AutoModerationRuleEventType;
|
|
55
55
|
(function (AutoModerationRuleEventType) {
|
|
@@ -63,7 +63,7 @@ var AutoModerationRuleEventType;
|
|
|
63
63
|
AutoModerationRuleEventType[AutoModerationRuleEventType["MemberUpdate"] = 2] = "MemberUpdate";
|
|
64
64
|
})(AutoModerationRuleEventType || (exports.AutoModerationRuleEventType = AutoModerationRuleEventType = {}));
|
|
65
65
|
/**
|
|
66
|
-
* https://discord.com/developers/
|
|
66
|
+
* https://docs.discord.com/developers/resources/auto-moderation#auto-moderation-action-object-action-types
|
|
67
67
|
*/
|
|
68
68
|
var AutoModerationActionType;
|
|
69
69
|
(function (AutoModerationActionType) {
|