disgroove 1.3.1-dev.8cd17af → 1.3.1-dev.99aa77b
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/dist/package.json +30 -0
- package/package.json +30 -30
- package/dist/Client.d.ts +0 -229
- package/dist/Client.js +0 -251
- package/dist/Client.js.map +0 -1
- package/dist/constants.d.ts +0 -1083
- package/dist/constants.js +0 -1162
- package/dist/constants.js.map +0 -1
- package/dist/gateway/Shard.d.ts +0 -25
- package/dist/gateway/Shard.js +0 -557
- package/dist/gateway/Shard.js.map +0 -1
- package/dist/gateway/ShardsManager.d.ts +0 -5
- package/dist/gateway/ShardsManager.js +0 -13
- package/dist/gateway/ShardsManager.js.map +0 -1
- package/dist/gateway/index.d.ts +0 -2
- package/dist/gateway/index.js +0 -19
- package/dist/gateway/index.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -24
- package/dist/index.js.map +0 -1
- package/dist/rest/CDN.d.ts +0 -21
- package/dist/rest/CDN.js +0 -46
- package/dist/rest/CDN.js.map +0 -1
- package/dist/rest/Endpoints.d.ts +0 -94
- package/dist/rest/Endpoints.js +0 -211
- package/dist/rest/Endpoints.js.map +0 -1
- package/dist/rest/REST.d.ts +0 -22
- package/dist/rest/REST.js +0 -35
- package/dist/rest/REST.js.map +0 -1
- package/dist/rest/RequestsManager.d.ts +0 -17
- package/dist/rest/RequestsManager.js +0 -101
- package/dist/rest/RequestsManager.js.map +0 -1
- package/dist/rest/index.d.ts +0 -4
- package/dist/rest/index.js +0 -34
- package/dist/rest/index.js.map +0 -1
- package/dist/structures/Application.d.ts +0 -348
- package/dist/structures/Application.js +0 -328
- package/dist/structures/Application.js.map +0 -1
- package/dist/structures/ApplicationCommand.d.ts +0 -74
- package/dist/structures/ApplicationCommand.js +0 -127
- package/dist/structures/ApplicationCommand.js.map +0 -1
- package/dist/structures/AuditLog.d.ts +0 -20
- package/dist/structures/AuditLog.js +0 -76
- package/dist/structures/AuditLog.js.map +0 -1
- package/dist/structures/AutoModerationRule.d.ts +0 -34
- package/dist/structures/AutoModerationRule.js +0 -96
- package/dist/structures/AutoModerationRule.js.map +0 -1
- package/dist/structures/Base.d.ts +0 -17
- package/dist/structures/Base.js +0 -31
- package/dist/structures/Base.js.map +0 -1
- package/dist/structures/Channel.d.ts +0 -252
- package/dist/structures/Channel.js +0 -590
- package/dist/structures/Channel.js.map +0 -1
- package/dist/structures/ClientApplication.d.ts +0 -324
- package/dist/structures/ClientApplication.js +0 -241
- package/dist/structures/ClientApplication.js.map +0 -1
- package/dist/structures/Emoji.d.ts +0 -28
- package/dist/structures/Emoji.js +0 -79
- package/dist/structures/Emoji.js.map +0 -1
- package/dist/structures/Entitlement.d.ts +0 -24
- package/dist/structures/Entitlement.js +0 -68
- package/dist/structures/Entitlement.js.map +0 -1
- package/dist/structures/Guild.d.ts +0 -549
- package/dist/structures/Guild.js +0 -1121
- package/dist/structures/Guild.js.map +0 -1
- package/dist/structures/GuildMember.d.ts +0 -50
- package/dist/structures/GuildMember.js +0 -149
- package/dist/structures/GuildMember.js.map +0 -1
- package/dist/structures/GuildScheduledEvent.d.ts +0 -49
- package/dist/structures/GuildScheduledEvent.js +0 -118
- package/dist/structures/GuildScheduledEvent.js.map +0 -1
- package/dist/structures/GuildTemplate.d.ts +0 -32
- package/dist/structures/GuildTemplate.js +0 -76
- package/dist/structures/GuildTemplate.js.map +0 -1
- package/dist/structures/Integration.d.ts +0 -30
- package/dist/structures/Integration.js +0 -102
- package/dist/structures/Integration.js.map +0 -1
- package/dist/structures/Interaction.d.ts +0 -76
- package/dist/structures/Interaction.js +0 -345
- package/dist/structures/Interaction.js.map +0 -1
- package/dist/structures/Invite.d.ts +0 -28
- package/dist/structures/Invite.js +0 -86
- package/dist/structures/Invite.js.map +0 -1
- package/dist/structures/Message.d.ts +0 -84
- package/dist/structures/Message.js +0 -300
- package/dist/structures/Message.js.map +0 -1
- package/dist/structures/PartialApplication.d.ts +0 -324
- package/dist/structures/PartialApplication.js +0 -241
- package/dist/structures/PartialApplication.js.map +0 -1
- package/dist/structures/Role.d.ts +0 -37
- package/dist/structures/Role.js +0 -90
- package/dist/structures/Role.js.map +0 -1
- package/dist/structures/SKU.d.ts +0 -23
- package/dist/structures/SKU.js +0 -63
- package/dist/structures/SKU.js.map +0 -1
- package/dist/structures/StageInstance.d.ts +0 -24
- package/dist/structures/StageInstance.js +0 -57
- package/dist/structures/StageInstance.js.map +0 -1
- package/dist/structures/Sticker.d.ts +0 -31
- package/dist/structures/Sticker.js +0 -86
- package/dist/structures/Sticker.js.map +0 -1
- package/dist/structures/Team.d.ts +0 -14
- package/dist/structures/Team.js +0 -39
- package/dist/structures/Team.js.map +0 -1
- package/dist/structures/TestEntitlement.d.ts +0 -23
- package/dist/structures/TestEntitlement.js +0 -61
- package/dist/structures/TestEntitlement.js.map +0 -1
- package/dist/structures/UnavailableGuild.d.ts +0 -11
- package/dist/structures/UnavailableGuild.js +0 -25
- package/dist/structures/UnavailableGuild.js.map +0 -1
- package/dist/structures/User.d.ts +0 -63
- package/dist/structures/User.js +0 -177
- package/dist/structures/User.js.map +0 -1
- package/dist/structures/VoiceState.d.ts +0 -26
- package/dist/structures/VoiceState.js +0 -70
- package/dist/structures/VoiceState.js.map +0 -1
- package/dist/structures/Webhook.d.ts +0 -84
- package/dist/structures/Webhook.js +0 -239
- package/dist/structures/Webhook.js.map +0 -1
- package/dist/structures/index.d.ts +0 -27
- package/dist/structures/index.js +0 -44
- package/dist/structures/index.js.map +0 -1
- package/dist/types/application-command.d.ts +0 -102
- package/dist/types/application-command.js +0 -3
- package/dist/types/application-command.js.map +0 -1
- package/dist/types/application-role-connection-metadata.d.ts +0 -18
- package/dist/types/application-role-connection-metadata.js +0 -3
- package/dist/types/application-role-connection-metadata.js.map +0 -1
- package/dist/types/application.d.ts +0 -66
- package/dist/types/application.js +0 -3
- package/dist/types/application.js.map +0 -1
- package/dist/types/audit-log.d.ts +0 -82
- package/dist/types/audit-log.js +0 -3
- package/dist/types/audit-log.js.map +0 -1
- package/dist/types/auto-moderation.d.ts +0 -65
- package/dist/types/auto-moderation.js +0 -3
- package/dist/types/auto-moderation.js.map +0 -1
- package/dist/types/channel.d.ts +0 -456
- package/dist/types/channel.js +0 -3
- package/dist/types/channel.js.map +0 -1
- package/dist/types/emoji.d.ts +0 -22
- package/dist/types/emoji.js +0 -3
- package/dist/types/emoji.js.map +0 -1
- package/dist/types/entitlements.d.ts +0 -32
- package/dist/types/entitlements.js +0 -3
- package/dist/types/entitlements.js.map +0 -1
- package/dist/types/gateway-events.d.ts +0 -805
- package/dist/types/gateway-events.js +0 -3
- package/dist/types/gateway-events.js.map +0 -1
- package/dist/types/guild-scheduled-event.d.ts +0 -57
- package/dist/types/guild-scheduled-event.js +0 -3
- package/dist/types/guild-scheduled-event.js.map +0 -1
- package/dist/types/guild-template.d.ts +0 -28
- package/dist/types/guild-template.js +0 -3
- package/dist/types/guild-template.js.map +0 -1
- package/dist/types/guild.d.ts +0 -333
- package/dist/types/guild.js +0 -3
- package/dist/types/guild.js.map +0 -1
- package/dist/types/index.d.ts +0 -23
- package/dist/types/index.js +0 -40
- package/dist/types/index.js.map +0 -1
- package/dist/types/interaction.d.ts +0 -170
- package/dist/types/interaction.js +0 -3
- package/dist/types/interaction.js.map +0 -1
- package/dist/types/invite.d.ts +0 -59
- package/dist/types/invite.js +0 -3
- package/dist/types/invite.js.map +0 -1
- package/dist/types/message-components.d.ts +0 -100
- package/dist/types/message-components.js +0 -3
- package/dist/types/message-components.js.map +0 -1
- package/dist/types/role.d.ts +0 -47
- package/dist/types/role.js +0 -3
- package/dist/types/role.js.map +0 -1
- package/dist/types/sku.d.ts +0 -30
- package/dist/types/sku.js +0 -3
- package/dist/types/sku.js.map +0 -1
- package/dist/types/stage-instance.d.ts +0 -20
- package/dist/types/stage-instance.js +0 -3
- package/dist/types/stage-instance.js.map +0 -1
- package/dist/types/sticker.d.ts +0 -61
- package/dist/types/sticker.js +0 -3
- package/dist/types/sticker.js.map +0 -1
- package/dist/types/team.d.ts +0 -30
- package/dist/types/team.js +0 -3
- package/dist/types/team.js.map +0 -1
- package/dist/types/user.d.ts +0 -77
- package/dist/types/user.js +0 -3
- package/dist/types/user.js.map +0 -1
- package/dist/types/voice.d.ts +0 -47
- package/dist/types/voice.js +0 -3
- package/dist/types/voice.js.map +0 -1
- package/dist/types/webhook.d.ts +0 -31
- package/dist/types/webhook.js +0 -3
- package/dist/types/webhook.js.map +0 -1
- package/dist/utils/Util.d.ts +0 -13
- package/dist/utils/Util.js +0 -513
- package/dist/utils/Util.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -12
- package/dist/utils/errors.js +0 -25
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.js +0 -19
- package/dist/utils/index.js.map +0 -1
package/dist/structures/index.js
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./Base"), exports);
|
18
|
-
__exportStar(require("./Application"), exports);
|
19
|
-
__exportStar(require("./ApplicationCommand"), exports);
|
20
|
-
__exportStar(require("./AuditLog"), exports);
|
21
|
-
__exportStar(require("./AutoModerationRule"), exports);
|
22
|
-
__exportStar(require("./Channel"), exports);
|
23
|
-
__exportStar(require("./ClientApplication"), exports);
|
24
|
-
__exportStar(require("./Emoji"), exports);
|
25
|
-
__exportStar(require("./Entitlement"), exports);
|
26
|
-
__exportStar(require("./Guild"), exports);
|
27
|
-
__exportStar(require("./GuildMember"), exports);
|
28
|
-
__exportStar(require("./GuildScheduledEvent"), exports);
|
29
|
-
__exportStar(require("./GuildTemplate"), exports);
|
30
|
-
__exportStar(require("./Integration"), exports);
|
31
|
-
__exportStar(require("./Interaction"), exports);
|
32
|
-
__exportStar(require("./Invite"), exports);
|
33
|
-
__exportStar(require("./Message"), exports);
|
34
|
-
__exportStar(require("./Role"), exports);
|
35
|
-
__exportStar(require("./SKU"), exports);
|
36
|
-
__exportStar(require("./StageInstance"), exports);
|
37
|
-
__exportStar(require("./Sticker"), exports);
|
38
|
-
__exportStar(require("./Team"), exports);
|
39
|
-
__exportStar(require("./TestEntitlement"), exports);
|
40
|
-
__exportStar(require("./UnavailableGuild"), exports);
|
41
|
-
__exportStar(require("./User"), exports);
|
42
|
-
__exportStar(require("./VoiceState"), exports);
|
43
|
-
__exportStar(require("./Webhook"), exports);
|
44
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/structures/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,gDAA8B;AAC9B,uDAAqC;AACrC,6CAA2B;AAC3B,uDAAqC;AACrC,4CAA0B;AAC1B,sDAAoC;AACpC,0CAAwB;AACxB,gDAA8B;AAC9B,0CAAwB;AACxB,gDAA8B;AAC9B,wDAAsC;AACtC,kDAAgC;AAChC,gDAA8B;AAC9B,gDAA8B;AAC9B,2CAAyB;AACzB,4CAA0B;AAC1B,yCAAuB;AACvB,wCAAsB;AACtB,kDAAgC;AAChC,4CAA0B;AAC1B,yCAAuB;AACvB,oDAAkC;AAClC,qDAAmC;AACnC,yCAAuB;AACvB,+CAA6B;AAC7B,4CAA0B"}
|
@@ -1,102 +0,0 @@
|
|
1
|
-
import type { ApplicationCommandTypes, ApplicationCommandOptionType, ChannelTypes, Locale, ApplicationCommandPermissionType } from "../constants";
|
2
|
-
/** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-structure */
|
3
|
-
export interface RawApplicationCommand {
|
4
|
-
id: string;
|
5
|
-
type?: ApplicationCommandTypes;
|
6
|
-
application_id: string;
|
7
|
-
guild_id?: string;
|
8
|
-
name: string;
|
9
|
-
name_localizations?: Partial<Record<Locale, string>> | null;
|
10
|
-
description: string;
|
11
|
-
description_localizations?: Partial<Record<Locale, string>> | null;
|
12
|
-
options?: Array<RawApplicationCommandOption>;
|
13
|
-
default_member_permissions: string | null;
|
14
|
-
dm_permission?: boolean;
|
15
|
-
default_permission?: boolean | null;
|
16
|
-
nsfw?: boolean;
|
17
|
-
version: string;
|
18
|
-
}
|
19
|
-
/** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure */
|
20
|
-
export interface RawApplicationCommandOption {
|
21
|
-
type: ApplicationCommandOptionType;
|
22
|
-
name: string;
|
23
|
-
name_localizations?: Partial<Record<Locale, string>> | null;
|
24
|
-
description: string;
|
25
|
-
description_localizations?: Partial<Record<Locale, string>> | null;
|
26
|
-
required?: boolean;
|
27
|
-
choices?: Array<RawApplicationCommandOptionChoice>;
|
28
|
-
options?: Array<RawApplicationCommandOption>;
|
29
|
-
channel_types?: Array<ChannelTypes>;
|
30
|
-
min_value?: number;
|
31
|
-
max_value?: number;
|
32
|
-
min_length?: number;
|
33
|
-
max_length?: number;
|
34
|
-
autocomplete?: boolean;
|
35
|
-
}
|
36
|
-
/** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-choice-structure */
|
37
|
-
export interface RawApplicationCommandOptionChoice {
|
38
|
-
name: string;
|
39
|
-
name_localizations?: Partial<Record<Locale, string>> | null;
|
40
|
-
value: string;
|
41
|
-
}
|
42
|
-
/** https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-guild-application-command-permissions-structure */
|
43
|
-
export interface RawGuildApplicationCommandPermissions {
|
44
|
-
id: string;
|
45
|
-
application_id: string;
|
46
|
-
guild_id: string;
|
47
|
-
permissions: Array<RawApplicationCommandPermission>;
|
48
|
-
}
|
49
|
-
/** https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permissions-structure */
|
50
|
-
export interface RawApplicationCommandPermission {
|
51
|
-
id: string;
|
52
|
-
type: ApplicationCommandPermissionType;
|
53
|
-
permission: boolean;
|
54
|
-
}
|
55
|
-
export interface JSONApplicationCommand {
|
56
|
-
id: string;
|
57
|
-
type?: ApplicationCommandTypes;
|
58
|
-
applicationId: string;
|
59
|
-
guildId?: string;
|
60
|
-
name: string;
|
61
|
-
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
62
|
-
description: string;
|
63
|
-
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
64
|
-
options?: Array<JSONApplicationCommandOption>;
|
65
|
-
defaultMemberPermissions: string | null;
|
66
|
-
dmPermission?: boolean;
|
67
|
-
defaultPermission?: boolean | null;
|
68
|
-
nsfw?: boolean;
|
69
|
-
version: string;
|
70
|
-
}
|
71
|
-
export interface JSONApplicationCommandOption {
|
72
|
-
type: ApplicationCommandOptionType;
|
73
|
-
name: string;
|
74
|
-
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
75
|
-
description: string;
|
76
|
-
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
77
|
-
required?: boolean;
|
78
|
-
choices?: Array<JSONApplicationCommandOptionChoice>;
|
79
|
-
options?: Array<JSONApplicationCommandOption>;
|
80
|
-
channelTypes?: Array<ChannelTypes>;
|
81
|
-
minValue?: number;
|
82
|
-
maxValue?: number;
|
83
|
-
minLength?: number;
|
84
|
-
maxLength?: number;
|
85
|
-
autocomplete?: boolean;
|
86
|
-
}
|
87
|
-
export interface JSONApplicationCommandOptionChoice {
|
88
|
-
name: string;
|
89
|
-
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
90
|
-
value: string;
|
91
|
-
}
|
92
|
-
export interface JSONGuildApplicationCommandPermissions {
|
93
|
-
id: string;
|
94
|
-
applicationId: string;
|
95
|
-
guildId: string;
|
96
|
-
permissions: Array<JSONApplicationCommandPermission>;
|
97
|
-
}
|
98
|
-
export interface JSONApplicationCommandPermission {
|
99
|
-
id: string;
|
100
|
-
type: ApplicationCommandPermissionType;
|
101
|
-
permission: boolean;
|
102
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"application-command.js","sourceRoot":"","sources":["../../src/types/application-command.ts"],"names":[],"mappings":""}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import type { ApplicationRoleConnectionMetadataType, Locale } from "../constants";
|
2
|
-
/** https://discord.com/developers/docs/resources/application-role-connection-metadata#application-role-connection-metadata-object-application-role-connection-metadata-structure */
|
3
|
-
export interface RawApplicationRoleConnectionMetadata {
|
4
|
-
type: ApplicationRoleConnectionMetadataType;
|
5
|
-
key: string;
|
6
|
-
name: string;
|
7
|
-
name_localizations?: Partial<Record<Locale, string>> | null;
|
8
|
-
description: string;
|
9
|
-
description_localizations?: Partial<Record<Locale, string>> | null;
|
10
|
-
}
|
11
|
-
export interface JSONApplicationRoleConnectionMetadata {
|
12
|
-
type: ApplicationRoleConnectionMetadataType;
|
13
|
-
key: string;
|
14
|
-
name: string;
|
15
|
-
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
16
|
-
description: string;
|
17
|
-
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
18
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"application-role-connection-metadata.js","sourceRoot":"","sources":["../../src/types/application-role-connection-metadata.ts"],"names":[],"mappings":""}
|
@@ -1,66 +0,0 @@
|
|
1
|
-
import type { RawUser, RawTeam, JSONTeam, JSONUser, RawGuild, JSONGuild } from ".";
|
2
|
-
import type { ApplicationFlags, OAuth2Scopes } from "../constants";
|
3
|
-
/** https://discord.com/developers/docs/resources/application#application-object-application-structure */
|
4
|
-
export interface RawApplication {
|
5
|
-
id: string;
|
6
|
-
name: string;
|
7
|
-
icon: string | null;
|
8
|
-
description: string;
|
9
|
-
rpc_origins?: Array<string>;
|
10
|
-
bot_public: boolean;
|
11
|
-
bot_require_code_grant: boolean;
|
12
|
-
terms_of_service_url?: string;
|
13
|
-
privacy_policy_url?: string;
|
14
|
-
owner?: RawUser;
|
15
|
-
verify_key: string;
|
16
|
-
team: RawTeam | null;
|
17
|
-
guild_id?: string;
|
18
|
-
guild?: RawGuild;
|
19
|
-
primary_sku_id?: string;
|
20
|
-
slug?: string;
|
21
|
-
cover_image?: string;
|
22
|
-
flags?: ApplicationFlags;
|
23
|
-
approximate_guild_count?: number;
|
24
|
-
redirect_uris?: Array<string>;
|
25
|
-
interactions_endpoint_url?: string;
|
26
|
-
role_connections_verification_url?: string;
|
27
|
-
tags?: Array<string>;
|
28
|
-
install_params?: RawInstallParams;
|
29
|
-
custom_install_url?: string;
|
30
|
-
}
|
31
|
-
/** https://discord.com/developers/docs/resources/application#install-params-object-install-params-structure */
|
32
|
-
export interface RawInstallParams {
|
33
|
-
scopes: Array<OAuth2Scopes>;
|
34
|
-
permissions: string;
|
35
|
-
}
|
36
|
-
export interface JSONApplication {
|
37
|
-
id: string;
|
38
|
-
name: string;
|
39
|
-
icon: string | null;
|
40
|
-
description: string;
|
41
|
-
rpcOrigins?: Array<string>;
|
42
|
-
botPublic: boolean;
|
43
|
-
botRequireCodeGrant: boolean;
|
44
|
-
termsOfServiceURL?: string;
|
45
|
-
privacyPolicyURL?: string;
|
46
|
-
owner?: JSONUser;
|
47
|
-
verifyKey: string;
|
48
|
-
team: JSONTeam | null;
|
49
|
-
guildId?: string;
|
50
|
-
guild?: JSONGuild;
|
51
|
-
primarySKUId?: string;
|
52
|
-
slug?: string;
|
53
|
-
coverImage?: string;
|
54
|
-
flags?: ApplicationFlags;
|
55
|
-
approximateGuildCount?: number;
|
56
|
-
redirectURIs?: Array<string>;
|
57
|
-
interactionsEndpointURL?: string;
|
58
|
-
roleConnectionsVerificationURL?: string;
|
59
|
-
tags?: Array<string>;
|
60
|
-
installParams?: JSONInstallParams;
|
61
|
-
customInstallURL?: string;
|
62
|
-
}
|
63
|
-
export interface JSONInstallParams {
|
64
|
-
scopes: Array<OAuth2Scopes>;
|
65
|
-
permissions: string;
|
66
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../src/types/application.ts"],"names":[],"mappings":""}
|
@@ -1,82 +0,0 @@
|
|
1
|
-
import type { RawApplicationCommand, RawGuildScheduledEvent, RawAutoModerationRule, RawIntegration, RawChannel, RawUser, RawWebhook, JSONUser, JSONApplicationCommand, JSONAutoModerationRule, JSONGuildScheduledEvent, JSONIntegration, JSONChannel, JSONWebhook } from ".";
|
2
|
-
import type { AuditLogEvents } from "../constants";
|
3
|
-
/** https://discord.com/developers/docs/resources/audit-log#audit-log-object-audit-log-structure */
|
4
|
-
export interface RawAuditLog {
|
5
|
-
application_commands: Array<RawApplicationCommand>;
|
6
|
-
audit_log_entries: Array<RawAuditLogEntry>;
|
7
|
-
auto_moderation_rules: Array<RawAutoModerationRule>;
|
8
|
-
guild_scheduled_events: Array<RawGuildScheduledEvent>;
|
9
|
-
integrations: Array<RawIntegration>;
|
10
|
-
threads: Array<RawChannel>;
|
11
|
-
users: Array<RawUser>;
|
12
|
-
webhooks: Array<RawWebhook>;
|
13
|
-
}
|
14
|
-
/** https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-audit-log-entry-structure */
|
15
|
-
export interface RawAuditLogEntry {
|
16
|
-
target_id: string | null;
|
17
|
-
changes?: Array<RawAuditLogChange>;
|
18
|
-
user_id: string | null;
|
19
|
-
id: string;
|
20
|
-
action_type: AuditLogEvents;
|
21
|
-
options?: RawOptionalAuditLogEntryInfo;
|
22
|
-
reason?: string;
|
23
|
-
}
|
24
|
-
/** https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-optional-audit-entry-info */
|
25
|
-
export interface RawOptionalAuditLogEntryInfo {
|
26
|
-
application_id: string;
|
27
|
-
auto_moderation_rule_name: string;
|
28
|
-
auto_moderation_rule_trigger_type: string;
|
29
|
-
channel_id: string;
|
30
|
-
count: string;
|
31
|
-
delete_member_days: string;
|
32
|
-
id: string;
|
33
|
-
members_removed: string;
|
34
|
-
message_id: string;
|
35
|
-
role_name: string;
|
36
|
-
type: string;
|
37
|
-
integration_type: string;
|
38
|
-
}
|
39
|
-
/** https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-structure */
|
40
|
-
export interface RawAuditLogChange {
|
41
|
-
new_value?: any;
|
42
|
-
old_value?: any;
|
43
|
-
key: string;
|
44
|
-
}
|
45
|
-
export interface JSONAuditLog {
|
46
|
-
applicationCommands: Array<JSONApplicationCommand>;
|
47
|
-
auditLogEntries: Array<JSONAuditLogEntry>;
|
48
|
-
autoModerationRules: Array<JSONAutoModerationRule>;
|
49
|
-
guildScheduledEvents: Array<JSONGuildScheduledEvent>;
|
50
|
-
integrations: Array<JSONIntegration>;
|
51
|
-
threads: Array<JSONChannel>;
|
52
|
-
users: Array<JSONUser>;
|
53
|
-
webhooks: Array<JSONWebhook>;
|
54
|
-
}
|
55
|
-
export interface JSONAuditLogEntry {
|
56
|
-
targetId: string | null;
|
57
|
-
changes?: Array<JSONAuditLogChange>;
|
58
|
-
userId: string | null;
|
59
|
-
id: string;
|
60
|
-
actionType: AuditLogEvents;
|
61
|
-
options?: JSONOptionalAuditLogEntryInfo;
|
62
|
-
reason?: string;
|
63
|
-
}
|
64
|
-
export interface JSONOptionalAuditLogEntryInfo {
|
65
|
-
applicationId: string;
|
66
|
-
autoModerationRuleName: string;
|
67
|
-
autoModerationRuleTriggerType: string;
|
68
|
-
channelId: string;
|
69
|
-
count: string;
|
70
|
-
deleteMemberDays: string;
|
71
|
-
id: string;
|
72
|
-
membersRemoved: string;
|
73
|
-
messageId: string;
|
74
|
-
roleName: string;
|
75
|
-
type: string;
|
76
|
-
integrationType: string;
|
77
|
-
}
|
78
|
-
export interface JSONAuditLogChange {
|
79
|
-
newValue?: any;
|
80
|
-
oldValue?: any;
|
81
|
-
key: string;
|
82
|
-
}
|
package/dist/types/audit-log.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"audit-log.js","sourceRoot":"","sources":["../../src/types/audit-log.ts"],"names":[],"mappings":""}
|
@@ -1,65 +0,0 @@
|
|
1
|
-
import type { KeywordPresetTypes, ActionTypes, EventTypes, TriggerTypes } from "../constants";
|
2
|
-
/** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-auto-moderation-rule-structure */
|
3
|
-
export interface RawAutoModerationRule {
|
4
|
-
id: string;
|
5
|
-
guild_id: string;
|
6
|
-
name: string;
|
7
|
-
creator_id: string;
|
8
|
-
event_type: EventTypes;
|
9
|
-
trigger_type: TriggerTypes;
|
10
|
-
trigger_metadata: RawTriggerMetadata;
|
11
|
-
actions: Array<RawAutoModerationAction>;
|
12
|
-
enabled: boolean;
|
13
|
-
exempt_roles: Array<string>;
|
14
|
-
exempt_channels: Array<string>;
|
15
|
-
}
|
16
|
-
/** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-metadata */
|
17
|
-
export interface RawTriggerMetadata {
|
18
|
-
keyword_filter: Array<string>;
|
19
|
-
regex_patterns: Array<string>;
|
20
|
-
presets: KeywordPresetTypes;
|
21
|
-
allow_list: Array<string>;
|
22
|
-
mention_total_limit: number;
|
23
|
-
mention_raid_protection: boolean;
|
24
|
-
}
|
25
|
-
/** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object-auto-moderation-action-structure */
|
26
|
-
export interface RawAutoModerationAction {
|
27
|
-
type: ActionTypes;
|
28
|
-
metadata: RawActionMetadata;
|
29
|
-
}
|
30
|
-
/** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object-action-metadata */
|
31
|
-
export interface RawActionMetadata {
|
32
|
-
channel_id: string;
|
33
|
-
duration_seconds: number;
|
34
|
-
custom_message?: string;
|
35
|
-
}
|
36
|
-
export interface JSONAutoModerationRule {
|
37
|
-
id: string;
|
38
|
-
guildId: string;
|
39
|
-
name: string;
|
40
|
-
creatorId: string;
|
41
|
-
eventType: EventTypes;
|
42
|
-
triggerType: TriggerTypes;
|
43
|
-
triggerMetadata: JSONTriggerMetadata;
|
44
|
-
actions: Array<JSONAutoModerationAction>;
|
45
|
-
enabled: boolean;
|
46
|
-
exemptRoles: Array<string>;
|
47
|
-
exemptChannels: Array<string>;
|
48
|
-
}
|
49
|
-
export interface JSONTriggerMetadata {
|
50
|
-
keywordFilter: Array<string>;
|
51
|
-
regexPatterns: Array<string>;
|
52
|
-
presets: KeywordPresetTypes;
|
53
|
-
allowList: Array<string>;
|
54
|
-
mentionTotalLimit: number;
|
55
|
-
mentionRaidProtection: boolean;
|
56
|
-
}
|
57
|
-
export interface JSONAutoModerationAction {
|
58
|
-
type: ActionTypes;
|
59
|
-
metadata: JSONActionMetadata;
|
60
|
-
}
|
61
|
-
export interface JSONActionMetadata {
|
62
|
-
channelId: string;
|
63
|
-
durationSeconds: number;
|
64
|
-
customMessage?: string;
|
65
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"auto-moderation.js","sourceRoot":"","sources":["../../src/types/auto-moderation.ts"],"names":[],"mappings":""}
|