disgroove 1.3.4 → 2.0.0-dev.3a6f4ba
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/lib/Client.d.ts +2 -2
- package/dist/lib/Client.js +1 -1
- package/dist/lib/Client.js.map +1 -1
- package/dist/lib/gateway/ShardManager.d.ts +6 -0
- package/dist/lib/gateway/ShardManager.js +14 -0
- package/dist/lib/gateway/ShardManager.js.map +1 -0
- package/dist/lib/gateway/index.d.ts +1 -1
- package/dist/lib/gateway/index.js +1 -1
- package/dist/lib/gateway/index.js.map +1 -1
- package/dist/lib/rest/CDN.d.ts +21 -21
- package/dist/lib/rest/CDN.js +21 -21
- package/dist/lib/rest/CDN.js.map +1 -1
- package/dist/lib/rest/REST.d.ts +2 -2
- package/dist/lib/rest/REST.js +1 -1
- package/dist/lib/rest/REST.js.map +1 -1
- package/dist/lib/rest/RequestManager.d.ts +22 -0
- package/dist/lib/rest/RequestManager.js +123 -0
- package/dist/lib/rest/RequestManager.js.map +1 -0
- package/dist/lib/rest/index.d.ts +1 -1
- package/dist/lib/rest/index.js +1 -1
- package/dist/lib/rest/index.js.map +1 -1
- package/dist/lib/structures/Application.d.ts +11 -93
- package/dist/lib/structures/Application.js.map +1 -1
- package/dist/lib/structures/ApplicationCommand.d.ts +6 -18
- package/dist/lib/structures/ApplicationCommand.js.map +1 -1
- package/dist/lib/structures/AutoModerationRule.d.ts +2 -11
- package/dist/lib/structures/AutoModerationRule.js.map +1 -1
- package/dist/lib/structures/Channel.d.ts +14 -108
- package/dist/lib/structures/Channel.js +1 -1
- package/dist/lib/structures/Channel.js.map +1 -1
- package/dist/lib/structures/ClientApplication.d.ts +11 -93
- package/dist/lib/structures/ClientApplication.js.map +1 -1
- package/dist/lib/structures/Emoji.d.ts +2 -5
- package/dist/lib/structures/Emoji.js.map +1 -1
- package/dist/lib/structures/Guild.d.ts +31 -234
- package/dist/lib/structures/Guild.js.map +1 -1
- package/dist/lib/structures/GuildMember.d.ts +3 -14
- package/dist/lib/structures/GuildMember.js.map +1 -1
- package/dist/lib/structures/GuildScheduledEvent.d.ts +2 -13
- package/dist/lib/structures/GuildScheduledEvent.js.map +1 -1
- package/dist/lib/structures/GuildTemplate.d.ts +2 -5
- package/dist/lib/structures/GuildTemplate.js.map +1 -1
- package/dist/lib/structures/Interaction.d.ts +7 -32
- package/dist/lib/structures/Interaction.js.map +1 -1
- package/dist/lib/structures/Message.d.ts +3 -16
- package/dist/lib/structures/Message.js.map +1 -1
- package/dist/lib/structures/Role.d.ts +2 -10
- package/dist/lib/structures/Role.js.map +1 -1
- package/dist/lib/structures/StageInstance.d.ts +2 -5
- package/dist/lib/structures/StageInstance.js.map +1 -1
- package/dist/lib/structures/Sticker.d.ts +2 -6
- package/dist/lib/structures/Sticker.js.map +1 -1
- package/dist/lib/structures/User.d.ts +9 -28
- package/dist/lib/structures/User.js +3 -3
- package/dist/lib/structures/User.js.map +1 -1
- package/dist/lib/structures/Webhook.d.ts +9 -35
- package/dist/lib/structures/Webhook.js +3 -14
- package/dist/lib/structures/Webhook.js.map +1 -1
- package/dist/lib/types/application-command.d.ts +85 -11
- package/dist/lib/types/application-role-connection-metadata.d.ts +6 -5
- package/dist/lib/types/application.d.ts +11 -0
- package/dist/lib/types/auto-moderation.d.ts +20 -0
- package/dist/lib/types/channel.d.ts +103 -1
- package/dist/lib/types/emoji.d.ts +9 -0
- package/dist/lib/types/entitlements.d.ts +5 -0
- package/dist/lib/types/guild-scheduled-event.d.ts +23 -0
- package/dist/lib/types/guild-template.d.ts +12 -0
- package/dist/lib/types/guild.d.ts +156 -2
- package/dist/lib/types/index.d.ts +2 -0
- package/dist/lib/types/index.js.map +1 -1
- package/dist/lib/types/interaction.d.ts +2 -1
- package/dist/lib/types/stage-instance.d.ts +11 -0
- package/dist/lib/types/sticker.d.ts +12 -0
- package/dist/lib/types/user.d.ts +25 -2
- package/dist/lib/types/webhook.d.ts +34 -2
- package/dist/lib/utils/Util.d.ts +2 -0
- package/dist/lib/utils/Util.js +40 -0
- package/dist/lib/utils/Util.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
@@ -159,13 +159,7 @@ class Webhook extends _1.IdentifiableBase {
|
|
159
159
|
avatarURL: options.avatarURL,
|
160
160
|
},
|
161
161
|
})
|
162
|
-
.then((response) =>
|
163
|
-
if (response !== null) {
|
164
|
-
return new _1.Message(response, this.client);
|
165
|
-
}
|
166
|
-
else
|
167
|
-
return null;
|
168
|
-
});
|
162
|
+
.then((response) => response !== null ? new _1.Message(response, this.client) : null);
|
169
163
|
}
|
170
164
|
/**
|
171
165
|
* https://discord.com/developers/docs/resources/webhook#execute-githubcompatible-webhook
|
@@ -180,14 +174,9 @@ class Webhook extends _1.IdentifiableBase {
|
|
180
174
|
thread_id: options.threadId,
|
181
175
|
wait: options.wait,
|
182
176
|
},
|
177
|
+
json: options,
|
183
178
|
})
|
184
|
-
.then((response) =>
|
185
|
-
if (response !== null) {
|
186
|
-
return new _1.Message(response, this.client);
|
187
|
-
}
|
188
|
-
else
|
189
|
-
return null;
|
190
|
-
});
|
179
|
+
.then((response) => response !== null ? new _1.Message(response, this.client) : null);
|
191
180
|
}
|
192
181
|
/** https://discord.com/developers/docs/resources/webhook#get-webhook-message */
|
193
182
|
async getMessage(messageId, options) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Webhook.js","sourceRoot":"","sources":["../../../lib/structures/Webhook.ts"],"names":[],"mappings":";;;AAAA,wBAAoE;AAEpE,
|
1
|
+
{"version":3,"file":"Webhook.js","sourceRoot":"","sources":["../../../lib/structures/Webhook.ts"],"names":[],"mappings":";;;AAAA,wBAAoE;AAEpE,kCAAoC;AAWpC,4DAA4D;AAC5D,MAAa,OAAQ,SAAQ,mBAAgB;IACxB,GAAG,CAAa;IAEnC,IAAI,CAAe;IACnB,OAAO,CAAiB;IACxB,SAAS,CAAgB;IACzB,IAAI,CAAQ;IACZ,IAAI,CAAgB;IACpB,MAAM,C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AAM,EAAE;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE;YACvC,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,EAAE;YAC3C,GAAG,EAAE,IAAI,CAAC,GAAG;SACd,CAAC;IACJ,CAAC;CACF;AApRD,0BAoRC"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type {
|
1
|
+
import type { LocaleMap } from ".";
|
2
|
+
import type { ApplicationCommandTypes, ApplicationCommandOptionType, ChannelTypes, ApplicationCommandPermissionType } from "../constants";
|
2
3
|
/** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-structure */
|
3
4
|
export interface RawApplicationCommand {
|
4
5
|
id: string;
|
@@ -6,9 +7,9 @@ export interface RawApplicationCommand {
|
|
6
7
|
application_id: string;
|
7
8
|
guild_id?: string;
|
8
9
|
name: string;
|
9
|
-
name_localizations?:
|
10
|
+
name_localizations?: LocaleMap | null;
|
10
11
|
description: string;
|
11
|
-
description_localizations?:
|
12
|
+
description_localizations?: LocaleMap | null;
|
12
13
|
options?: Array<RawApplicationCommandOption>;
|
13
14
|
default_member_permissions: string | null;
|
14
15
|
dm_permission?: boolean;
|
@@ -20,9 +21,9 @@ export interface RawApplicationCommand {
|
|
20
21
|
export interface RawApplicationCommandOption {
|
21
22
|
type: ApplicationCommandOptionType;
|
22
23
|
name: string;
|
23
|
-
name_localizations?:
|
24
|
+
name_localizations?: LocaleMap | null;
|
24
25
|
description: string;
|
25
|
-
description_localizations?:
|
26
|
+
description_localizations?: LocaleMap | null;
|
26
27
|
required?: boolean;
|
27
28
|
choices?: Array<RawApplicationCommandOptionChoice>;
|
28
29
|
options?: Array<RawApplicationCommandOption>;
|
@@ -36,7 +37,7 @@ export interface RawApplicationCommandOption {
|
|
36
37
|
/** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-choice-structure */
|
37
38
|
export interface RawApplicationCommandOptionChoice {
|
38
39
|
name: string;
|
39
|
-
name_localizations?:
|
40
|
+
name_localizations?: LocaleMap | null;
|
40
41
|
value: string;
|
41
42
|
}
|
42
43
|
/** https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-guild-application-command-permissions-structure */
|
@@ -58,9 +59,9 @@ export interface JSONApplicationCommand {
|
|
58
59
|
applicationId: string;
|
59
60
|
guildId?: string;
|
60
61
|
name: string;
|
61
|
-
nameLocalizations?:
|
62
|
+
nameLocalizations?: LocaleMap | null;
|
62
63
|
description: string;
|
63
|
-
descriptionLocalizations?:
|
64
|
+
descriptionLocalizations?: LocaleMap | null;
|
64
65
|
options?: Array<JSONApplicationCommandOption>;
|
65
66
|
defaultMemberPermissions: string | null;
|
66
67
|
dmPermission?: boolean;
|
@@ -71,9 +72,9 @@ export interface JSONApplicationCommand {
|
|
71
72
|
export interface JSONApplicationCommandOption {
|
72
73
|
type: ApplicationCommandOptionType;
|
73
74
|
name: string;
|
74
|
-
nameLocalizations?:
|
75
|
+
nameLocalizations?: LocaleMap | null;
|
75
76
|
description: string;
|
76
|
-
descriptionLocalizations?:
|
77
|
+
descriptionLocalizations?: LocaleMap | null;
|
77
78
|
required?: boolean;
|
78
79
|
choices?: Array<JSONApplicationCommandOptionChoice>;
|
79
80
|
options?: Array<JSONApplicationCommandOption>;
|
@@ -86,7 +87,7 @@ export interface JSONApplicationCommandOption {
|
|
86
87
|
}
|
87
88
|
export interface JSONApplicationCommandOptionChoice {
|
88
89
|
name: string;
|
89
|
-
nameLocalizations?:
|
90
|
+
nameLocalizations?: LocaleMap | null;
|
90
91
|
value: string;
|
91
92
|
}
|
92
93
|
export interface JSONGuildApplicationCommandPermissions {
|
@@ -100,3 +101,76 @@ export interface JSONApplicationCommandPermission {
|
|
100
101
|
type: ApplicationCommandPermissionType;
|
101
102
|
permission: boolean;
|
102
103
|
}
|
104
|
+
export interface CreateGlobalApplicationCommandParams {
|
105
|
+
name: string;
|
106
|
+
nameLocalizations?: LocaleMap | null;
|
107
|
+
description?: string;
|
108
|
+
descriptionLocalizations?: LocaleMap | null;
|
109
|
+
options?: Array<JSONApplicationCommandOption>;
|
110
|
+
defaultMemberPermissions?: string | null;
|
111
|
+
dmPermission?: boolean;
|
112
|
+
defaultPermission?: boolean | null;
|
113
|
+
type?: ApplicationCommandTypes;
|
114
|
+
nsfw?: boolean;
|
115
|
+
}
|
116
|
+
export interface EditGlobalApplicationCommandParams {
|
117
|
+
name?: string;
|
118
|
+
nameLocalizations?: LocaleMap | null;
|
119
|
+
description?: string;
|
120
|
+
descriptionLocalizations?: LocaleMap | null;
|
121
|
+
options?: Array<JSONApplicationCommandOption>;
|
122
|
+
defaultMemberPermissions?: string | null;
|
123
|
+
defaultPermission?: boolean | null;
|
124
|
+
dmPermission?: boolean;
|
125
|
+
nsfw?: boolean;
|
126
|
+
}
|
127
|
+
export type BulkEditGlobalApplicationCommandsParams = Array<{
|
128
|
+
id?: string;
|
129
|
+
name: string;
|
130
|
+
nameLocalizations?: LocaleMap | null;
|
131
|
+
description?: string;
|
132
|
+
descriptionLocalizations?: LocaleMap | null;
|
133
|
+
options?: Array<JSONApplicationCommandOption>;
|
134
|
+
defaultMemberPermissions?: string | null;
|
135
|
+
dmPermission?: boolean;
|
136
|
+
defaultPermission?: boolean | null;
|
137
|
+
type?: ApplicationCommandTypes;
|
138
|
+
nsfw?: boolean;
|
139
|
+
}>;
|
140
|
+
export interface CreateGuildApplicationCommandParams {
|
141
|
+
name: string;
|
142
|
+
nameLocalizations?: LocaleMap | null;
|
143
|
+
description?: string;
|
144
|
+
descriptionLocalizations?: LocaleMap | null;
|
145
|
+
options?: Array<JSONApplicationCommandOption>;
|
146
|
+
defaultMemberPermissions?: string | null;
|
147
|
+
defaultPermission?: boolean | null;
|
148
|
+
type?: ApplicationCommandTypes;
|
149
|
+
nsfw?: boolean;
|
150
|
+
}
|
151
|
+
export interface EditGuildApplicationCommandParams {
|
152
|
+
name?: string;
|
153
|
+
nameLocalizations?: LocaleMap | null;
|
154
|
+
description?: string;
|
155
|
+
descriptionLocalizations?: LocaleMap | null;
|
156
|
+
options?: Array<JSONApplicationCommandOption>;
|
157
|
+
defaultMemberPermissions?: string | null;
|
158
|
+
defaultPermission?: boolean | null;
|
159
|
+
nsfw?: boolean;
|
160
|
+
}
|
161
|
+
export type BulkEditGuildApplicationCommandsParams = Array<{
|
162
|
+
id?: string;
|
163
|
+
name: string;
|
164
|
+
nameLocalizations?: LocaleMap | null;
|
165
|
+
description?: string;
|
166
|
+
descriptionLocalizations?: LocaleMap | null;
|
167
|
+
options?: Array<JSONApplicationCommandOption>;
|
168
|
+
defaultMemberPermissions?: string | null;
|
169
|
+
dmPermission?: boolean;
|
170
|
+
defaultPermission?: boolean | null;
|
171
|
+
type: ApplicationCommandTypes;
|
172
|
+
nsfw?: boolean;
|
173
|
+
}>;
|
174
|
+
export interface EditApplicationCommandPermissionsParams {
|
175
|
+
permissions: Array<JSONGuildApplicationCommandPermissions>;
|
176
|
+
}
|
@@ -1,18 +1,19 @@
|
|
1
|
-
import type {
|
1
|
+
import type { LocaleMap } from ".";
|
2
|
+
import type { ApplicationRoleConnectionMetadataType } from "../constants";
|
2
3
|
/** https://discord.com/developers/docs/resources/application-role-connection-metadata#application-role-connection-metadata-object-application-role-connection-metadata-structure */
|
3
4
|
export interface RawApplicationRoleConnectionMetadata {
|
4
5
|
type: ApplicationRoleConnectionMetadataType;
|
5
6
|
key: string;
|
6
7
|
name: string;
|
7
|
-
name_localizations?:
|
8
|
+
name_localizations?: LocaleMap | null;
|
8
9
|
description: string;
|
9
|
-
description_localizations?:
|
10
|
+
description_localizations?: LocaleMap | null;
|
10
11
|
}
|
11
12
|
export interface JSONApplicationRoleConnectionMetadata {
|
12
13
|
type: ApplicationRoleConnectionMetadataType;
|
13
14
|
key: string;
|
14
15
|
name: string;
|
15
|
-
nameLocalizations?:
|
16
|
+
nameLocalizations?: LocaleMap | null;
|
16
17
|
description: string;
|
17
|
-
descriptionLocalizations?:
|
18
|
+
descriptionLocalizations?: LocaleMap | null;
|
18
19
|
}
|
@@ -64,3 +64,14 @@ export interface JSONInstallParams {
|
|
64
64
|
scopes: Array<OAuth2Scopes>;
|
65
65
|
permissions: string;
|
66
66
|
}
|
67
|
+
export interface EditCurrentApplicationParams {
|
68
|
+
customInstallURL?: string;
|
69
|
+
description?: string;
|
70
|
+
roleConnectionsVerificationURL?: string;
|
71
|
+
installParams?: JSONInstallParams;
|
72
|
+
flags?: ApplicationFlags;
|
73
|
+
icon?: string;
|
74
|
+
coverImage?: string;
|
75
|
+
interactionsEndpointURL?: string;
|
76
|
+
tags?: Array<string>;
|
77
|
+
}
|
@@ -63,3 +63,23 @@ export interface JSONActionMetadata {
|
|
63
63
|
durationSeconds: number;
|
64
64
|
customMessage?: string;
|
65
65
|
}
|
66
|
+
export interface CreateAutoModerationRuleParams {
|
67
|
+
name: string;
|
68
|
+
eventType: EventTypes;
|
69
|
+
triggerType: TriggerTypes;
|
70
|
+
triggerMetadata?: JSONTriggerMetadata;
|
71
|
+
actions: Array<JSONAutoModerationAction>;
|
72
|
+
enabled?: boolean;
|
73
|
+
exemptRoles?: Array<string>;
|
74
|
+
exemptChannels?: Array<string>;
|
75
|
+
}
|
76
|
+
export interface EditAutoModerationRuleParams {
|
77
|
+
name?: string;
|
78
|
+
eventType?: EventTypes;
|
79
|
+
triggerType?: TriggerTypes;
|
80
|
+
triggerMetadata?: JSONTriggerMetadata;
|
81
|
+
actions?: Array<JSONAutoModerationAction>;
|
82
|
+
enabled?: boolean;
|
83
|
+
exemptRoles?: Array<string>;
|
84
|
+
exemptChannels?: Array<string>;
|
85
|
+
}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import type { AllowedMentionTypes, AttachmentFlags, ChannelFlags, ChannelTypes, ForumLayoutTypes, MessageActivityTypes, MessageFlags, MessageTypes, SortOrderTypes, VideoQualityModes } from "../constants";
|
1
|
+
import type { AllowedMentionTypes, AttachmentFlags, ChannelFlags, ChannelTypes, ForumLayoutTypes, InviteTargetTypes, MessageActivityTypes, MessageFlags, MessageTypes, SortOrderTypes, VideoQualityModes } from "../constants";
|
2
2
|
import type { RawApplication, RawGuildMember, RawUser, RawEmoji, RawSticker, RawStickerItem, RawMessageInteraction, JSONMessageInteraction, JSONStickerItem, JSONSticker, JSONEmoji, JSONUser, JSONApplication, JSONGuildMember, RawActionRow, JSONActionRow, RawResolvedData, JSONResolvedData } from ".";
|
3
|
+
import type { File } from "../rest";
|
3
4
|
/** https://discord.com/developers/docs/resources/channel#channel-object-channel-structure */
|
4
5
|
export interface RawChannel {
|
5
6
|
id: string;
|
@@ -454,3 +455,104 @@ export interface JSONRoleSubscriptionData {
|
|
454
455
|
totalMonthsSubscribed: number;
|
455
456
|
isRenewal: boolean;
|
456
457
|
}
|
458
|
+
export interface EditChannelParams {
|
459
|
+
name?: string;
|
460
|
+
icon?: string;
|
461
|
+
type?: ChannelTypes;
|
462
|
+
position?: number | null;
|
463
|
+
topic?: string | null;
|
464
|
+
nsfw?: boolean | null;
|
465
|
+
rateLimitPerUser?: number | null;
|
466
|
+
bitrate?: number | null;
|
467
|
+
userLimit?: number | null;
|
468
|
+
permissionOverwrites?: Array<JSONOverwrite> | null;
|
469
|
+
parentId?: string | null;
|
470
|
+
rtcRegion?: string | null;
|
471
|
+
videoQualityMode?: VideoQualityModes | null;
|
472
|
+
defaultAutoArchiveDuration?: number | null;
|
473
|
+
flags?: ChannelFlags;
|
474
|
+
availableTags?: Array<JSONForumTag>;
|
475
|
+
defaultReactionEmoji?: JSONDefaultReaction | null;
|
476
|
+
defaultThreadRateLimitPerUser?: number;
|
477
|
+
defaultSortOrder?: SortOrderTypes | null;
|
478
|
+
defaultForumLayout?: ForumLayoutTypes;
|
479
|
+
archived?: boolean;
|
480
|
+
autoArchiveDuration?: number;
|
481
|
+
locked?: boolean;
|
482
|
+
invitable?: boolean;
|
483
|
+
appliedTags?: Array<string>;
|
484
|
+
}
|
485
|
+
export interface CreateMessageParams {
|
486
|
+
content?: string;
|
487
|
+
nonce?: string | number;
|
488
|
+
tts?: boolean;
|
489
|
+
embeds?: Array<JSONEmbed>;
|
490
|
+
allowedMentions?: JSONAllowedMentions;
|
491
|
+
messageReference?: JSONMessageReference;
|
492
|
+
components?: Array<JSONActionRow>;
|
493
|
+
stickersIds?: Array<string>;
|
494
|
+
files?: Array<File>;
|
495
|
+
attachments?: Array<JSONAttachment>;
|
496
|
+
flags?: MessageFlags;
|
497
|
+
enforceNonce?: boolean;
|
498
|
+
}
|
499
|
+
export interface EditMessageParams {
|
500
|
+
content?: string | null;
|
501
|
+
embeds?: Array<JSONEmbed> | null;
|
502
|
+
flags?: MessageFlags | null;
|
503
|
+
allowedMentions?: JSONAllowedMentions | null;
|
504
|
+
components?: Array<JSONActionRow> | null;
|
505
|
+
files?: Array<File> | null;
|
506
|
+
attachments?: Array<JSONAttachment> | null;
|
507
|
+
}
|
508
|
+
export interface BulkDeleteMessagesParams {
|
509
|
+
messages: Array<string>;
|
510
|
+
}
|
511
|
+
export interface EditChannelPermissionsParams {
|
512
|
+
allow?: string | null;
|
513
|
+
deny?: string | null;
|
514
|
+
type: number;
|
515
|
+
}
|
516
|
+
export interface CreateChannelInviteParams {
|
517
|
+
maxAge?: number;
|
518
|
+
maxUses?: number;
|
519
|
+
temporary?: boolean;
|
520
|
+
unique?: boolean;
|
521
|
+
targetType?: InviteTargetTypes;
|
522
|
+
targetUserId?: string;
|
523
|
+
targetApplicationId?: string;
|
524
|
+
}
|
525
|
+
export interface FollowAnnouncementChannelParams {
|
526
|
+
webhookChannelId: boolean;
|
527
|
+
}
|
528
|
+
export interface AddChannelRecipientParams {
|
529
|
+
accessToken: string;
|
530
|
+
nick: string;
|
531
|
+
}
|
532
|
+
export interface CreateThreadFromMessageParams {
|
533
|
+
name: string;
|
534
|
+
autoArchiveDuration?: number;
|
535
|
+
rateLimitPerUser?: number | null;
|
536
|
+
}
|
537
|
+
export interface CreateThreadWithoutMessageParams {
|
538
|
+
name: string;
|
539
|
+
autoArchiveDuration?: number;
|
540
|
+
type?: ChannelTypes;
|
541
|
+
invitable?: boolean;
|
542
|
+
rateLimitPerUser?: number | null;
|
543
|
+
}
|
544
|
+
export interface CreateThreadParams {
|
545
|
+
name: string;
|
546
|
+
autoArchiveDuration?: number;
|
547
|
+
rateLimitPerUser?: number | null;
|
548
|
+
message: {
|
549
|
+
content?: string | null;
|
550
|
+
embeds?: Array<JSONEmbed> | null;
|
551
|
+
allowedMentions?: JSONAllowedMentions | null;
|
552
|
+
components?: Array<JSONActionRow> | null;
|
553
|
+
attachments?: Array<JSONAttachment> | null;
|
554
|
+
flags?: MessageFlags | null;
|
555
|
+
};
|
556
|
+
appliedTags?: Array<string>;
|
557
|
+
files?: Array<File> | null;
|
558
|
+
}
|
@@ -20,3 +20,12 @@ export interface JSONEmoji {
|
|
20
20
|
animated?: boolean;
|
21
21
|
available?: boolean;
|
22
22
|
}
|
23
|
+
export interface CreateGuildEmojiParams {
|
24
|
+
name: string;
|
25
|
+
image: string;
|
26
|
+
roles: Array<string>;
|
27
|
+
}
|
28
|
+
export interface EditGuildEmojiParams {
|
29
|
+
name?: string;
|
30
|
+
roles?: Array<string> | null;
|
31
|
+
}
|
@@ -55,3 +55,26 @@ export interface JSONGuildScheduledEventUser {
|
|
55
55
|
user: JSONUser;
|
56
56
|
member?: JSONGuildMember;
|
57
57
|
}
|
58
|
+
export interface CreateGuildScheduledEventParams {
|
59
|
+
channelId?: string | null;
|
60
|
+
entityMetadata?: JSONGuildScheduledEventEntityMetadata | null;
|
61
|
+
name: string;
|
62
|
+
privacyLevel: GuildScheduledEventPrivacyLevel;
|
63
|
+
scheduledStartTime: string;
|
64
|
+
scheduledEndTime?: string | null;
|
65
|
+
description?: string | null;
|
66
|
+
entityType: GuildScheduledEventEntityTypes;
|
67
|
+
image?: string;
|
68
|
+
}
|
69
|
+
export interface EditGuildScheduledEventParams {
|
70
|
+
channelId?: string | null;
|
71
|
+
entityMetadata?: JSONGuildScheduledEventEntityMetadata | null;
|
72
|
+
name?: string;
|
73
|
+
privacyLevel?: GuildScheduledEventPrivacyLevel;
|
74
|
+
scheduledStartTime?: string;
|
75
|
+
scheduledEndTime?: string;
|
76
|
+
description?: string | null;
|
77
|
+
entityType?: GuildScheduledEventEntityTypes;
|
78
|
+
status?: GuildScheduledEventStatus;
|
79
|
+
image?: string;
|
80
|
+
}
|
@@ -26,3 +26,15 @@ export interface JSONGuildTemplate {
|
|
26
26
|
serializedSourceGuild: JSONGuild;
|
27
27
|
isDirty: boolean | null;
|
28
28
|
}
|
29
|
+
export interface CreateGuildFromGuildTemplateParams {
|
30
|
+
name: string;
|
31
|
+
icon?: string;
|
32
|
+
}
|
33
|
+
export interface CreateGuildTemplateParams {
|
34
|
+
name: string;
|
35
|
+
description?: string | null;
|
36
|
+
}
|
37
|
+
export interface EditGuildTemplateParams {
|
38
|
+
name?: string;
|
39
|
+
description?: string | null;
|
40
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { VerificationLevel, DefaultMessageNotificationLevel, ExplicitContentFilterLevel, GuildFeatures, MFALevel, PremiumTier, GuildNSFWLevel, GuildMemberFlags, IntegrationExpireBehaviors, OAuth2Scopes, SystemChannelFlags, OnboardingMode, PromptTypes } from "../constants";
|
2
|
-
import type { RawChannel, RawEmoji, RawSticker, RawUser, RawRole, JSONEmoji, JSONSticker, JSONUser, JSONRole, JSONChannel } from ".";
|
1
|
+
import type { VerificationLevel, DefaultMessageNotificationLevel, ExplicitContentFilterLevel, GuildFeatures, MFALevel, PremiumTier, GuildNSFWLevel, GuildMemberFlags, IntegrationExpireBehaviors, OAuth2Scopes, SystemChannelFlags, OnboardingMode, PromptTypes, ChannelTypes, VideoQualityModes, SortOrderTypes, ForumLayoutTypes } from "../constants";
|
2
|
+
import type { RawChannel, RawEmoji, RawSticker, RawUser, RawRole, JSONEmoji, JSONSticker, JSONUser, JSONRole, JSONChannel, JSONDefaultReaction, JSONOverwrite, JSONForumTag } from ".";
|
3
3
|
import { Collection } from "../utils";
|
4
4
|
/** https://discord.com/developers/docs/resources/guild#guild-object-guild-structure */
|
5
5
|
export interface RawGuild {
|
@@ -332,3 +332,157 @@ export interface JSONPromptOption {
|
|
332
332
|
title: string;
|
333
333
|
description: string | null;
|
334
334
|
}
|
335
|
+
export interface CreateGuildParams {
|
336
|
+
name: string;
|
337
|
+
region?: string | null;
|
338
|
+
icon?: string;
|
339
|
+
verificationLevel?: VerificationLevel;
|
340
|
+
defaultMessageNotifications?: DefaultMessageNotificationLevel;
|
341
|
+
explicitContentFilter?: ExplicitContentFilterLevel;
|
342
|
+
roles?: Array<{
|
343
|
+
name?: string;
|
344
|
+
permissions?: string;
|
345
|
+
color?: number;
|
346
|
+
hoist?: boolean;
|
347
|
+
icon?: string | null;
|
348
|
+
unicodeEmoji?: string | null;
|
349
|
+
mentionable?: boolean;
|
350
|
+
}>;
|
351
|
+
channels?: Array<{
|
352
|
+
name: string;
|
353
|
+
type: ChannelTypes;
|
354
|
+
id?: number;
|
355
|
+
parentId?: number;
|
356
|
+
}>;
|
357
|
+
afkChannelId?: string;
|
358
|
+
afkTimeout?: number;
|
359
|
+
systemChannelId?: string;
|
360
|
+
systemChannelFlags?: SystemChannelFlags;
|
361
|
+
}
|
362
|
+
export interface EditGuildParams {
|
363
|
+
name?: string;
|
364
|
+
region?: string | null;
|
365
|
+
verificationLevel?: VerificationLevel;
|
366
|
+
defaultMessageNotifications?: DefaultMessageNotificationLevel;
|
367
|
+
explicitContentFilter?: ExplicitContentFilterLevel;
|
368
|
+
afkChannelId?: string | null;
|
369
|
+
afkTimeout?: number;
|
370
|
+
icon?: string | null;
|
371
|
+
ownerId?: string;
|
372
|
+
splash?: string | null;
|
373
|
+
discoverySplash?: string | null;
|
374
|
+
banner?: string | null;
|
375
|
+
systemChannelId?: string | null;
|
376
|
+
systemChannelFlags?: SystemChannelFlags;
|
377
|
+
rulesChannelId?: string | null;
|
378
|
+
publicUpdatesChannelId?: string | null;
|
379
|
+
preferredLocale?: string;
|
380
|
+
features?: Array<GuildFeatures>;
|
381
|
+
description?: string | null;
|
382
|
+
premiumProgressBarEnabled?: boolean;
|
383
|
+
safetyAlertsChannelId?: string | null;
|
384
|
+
}
|
385
|
+
export interface CreateGuildChannelParams {
|
386
|
+
name: string | null;
|
387
|
+
type?: ChannelTypes;
|
388
|
+
topic?: string | null;
|
389
|
+
bitrate?: number;
|
390
|
+
userLimit?: number;
|
391
|
+
rateLimitPerUser?: number;
|
392
|
+
position?: number;
|
393
|
+
permissionOverwrites?: Array<JSONOverwrite>;
|
394
|
+
parentId?: string | null;
|
395
|
+
nsfw?: boolean;
|
396
|
+
rtcRegion?: string | null;
|
397
|
+
videoQualityMode?: VideoQualityModes;
|
398
|
+
defaultAutoArchiveDuration?: number;
|
399
|
+
defaultReactionEmoji?: JSONDefaultReaction | null;
|
400
|
+
availableTags?: Array<JSONForumTag>;
|
401
|
+
defaultSortOrder?: SortOrderTypes | null;
|
402
|
+
defaultForumLayout?: ForumLayoutTypes;
|
403
|
+
defaultThreadRateLimitPerUser?: number;
|
404
|
+
}
|
405
|
+
export type EditGuildChannelPositionsParams = Array<{
|
406
|
+
id: string;
|
407
|
+
position?: number | null;
|
408
|
+
lockPermissions?: boolean | null;
|
409
|
+
parentId?: string | null;
|
410
|
+
}>;
|
411
|
+
export interface AddGuildMemberParams {
|
412
|
+
accessToken: string;
|
413
|
+
nick?: string;
|
414
|
+
roles?: Array<string>;
|
415
|
+
mute?: boolean;
|
416
|
+
deaf?: boolean;
|
417
|
+
}
|
418
|
+
export interface EditCurrentGuildMemberParams {
|
419
|
+
nick?: string;
|
420
|
+
}
|
421
|
+
export interface EditGuildMemberParams {
|
422
|
+
nick?: string | null;
|
423
|
+
roles?: Array<string> | null;
|
424
|
+
mute?: boolean | null;
|
425
|
+
deaf?: boolean | null;
|
426
|
+
channelId?: string | null;
|
427
|
+
communicationDisabledUntil?: number | null;
|
428
|
+
flags?: GuildMemberFlags;
|
429
|
+
}
|
430
|
+
export interface EditGuildMemberParams {
|
431
|
+
nick?: string | null;
|
432
|
+
}
|
433
|
+
export interface CreateGuildBanParams {
|
434
|
+
deleteMessageDays?: number;
|
435
|
+
deleteMessageSeconds?: number;
|
436
|
+
}
|
437
|
+
export interface CreateGuildRoleParams {
|
438
|
+
name?: string;
|
439
|
+
permissions?: string;
|
440
|
+
color?: number;
|
441
|
+
hoist?: boolean;
|
442
|
+
icon?: string | null;
|
443
|
+
unicodeEmoji?: string | null;
|
444
|
+
mentionable?: boolean;
|
445
|
+
}
|
446
|
+
export type EditGuildRolePositionsParams = Array<{
|
447
|
+
id: string;
|
448
|
+
position?: number | null;
|
449
|
+
}>;
|
450
|
+
export interface EditGuildRoleParams {
|
451
|
+
name?: string | null;
|
452
|
+
permissions?: string | null;
|
453
|
+
color?: number | null;
|
454
|
+
hoist?: boolean | null;
|
455
|
+
icon?: string | null;
|
456
|
+
unicodeEmoji?: string | null;
|
457
|
+
mentionable?: boolean | null;
|
458
|
+
}
|
459
|
+
export interface EditGuildMFALevelParams {
|
460
|
+
level: MFALevel;
|
461
|
+
}
|
462
|
+
export interface BeginGuildPruneParams {
|
463
|
+
days: number;
|
464
|
+
computePruneCount: boolean;
|
465
|
+
includeRoles: Array<string>;
|
466
|
+
reason?: string;
|
467
|
+
}
|
468
|
+
export interface EditGuildWelcomeScreenParams {
|
469
|
+
enabled?: boolean | null;
|
470
|
+
welcomeChannels?: Array<JSONWelcomeScreenChannel> | null;
|
471
|
+
description?: string | null;
|
472
|
+
}
|
473
|
+
export interface EditGuildOnboardingParams {
|
474
|
+
prompts: Array<JSONOnboardingPrompt>;
|
475
|
+
defaultChannelIds: Array<string>;
|
476
|
+
enabled: boolean;
|
477
|
+
mode: OnboardingMode;
|
478
|
+
}
|
479
|
+
export interface EditCurrentUserVoiceStateParams {
|
480
|
+
channelId?: string;
|
481
|
+
suppress?: boolean;
|
482
|
+
requestToSpeakTimestamp?: string | null;
|
483
|
+
}
|
484
|
+
export interface EditUserVoiceStateParams {
|
485
|
+
channelId?: string;
|
486
|
+
suppress?: boolean;
|
487
|
+
requestToSpeakTimestamp?: string | null;
|
488
|
+
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locales } from "../constants";
|
1
2
|
export * from "./application-command";
|
2
3
|
export * from "./application-role-connection-metadata";
|
3
4
|
export * from "./application";
|
@@ -21,3 +22,4 @@ export * from "./team";
|
|
21
22
|
export * from "./user";
|
22
23
|
export * from "./voice";
|
23
24
|
export * from "./webhook";
|
25
|
+
export type LocaleMap = Partial<Record<Locales, string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,wDAAsC;AACtC,yEAAuD;AACvD,gDAA8B;AAC9B,8CAA4B;AAC5B,oDAAkC;AAClC,4CAA0B;AAC1B,0CAAwB;AACxB,iDAA+B;AAC/B,mDAAiC;AACjC,0DAAwC;AACxC,mDAAiC;AACjC,0CAAwB;AACxB,gDAA8B;AAC9B,2CAAyB;AACzB,uDAAqC;AACrC,yCAAuB;AACvB,wCAAsB;AACtB,mDAAiC;AACjC,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB;AACvB,0CAAwB;AACxB,4CAA0B"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { RawAttachment, RawChannel, RawGuildMember, RawMessage, RawUser, RawRole, JSONAttachment, JSONUser, JSONGuildMember, JSONMessage, JSONRole, JSONChannel, JSONEntitlement, RawEntitlement, RawEmbed, RawAllowedMentions, RawActionRow, RawApplicationCommandOptionChoice, JSONEmbed, JSONAllowedMentions, JSONActionRow, JSONApplicationCommandOptionChoice, RawTextInput, JSONTextInput } from ".";
|
1
|
+
import type { RawAttachment, RawChannel, RawGuildMember, RawMessage, RawUser, RawRole, JSONAttachment, JSONUser, JSONGuildMember, JSONMessage, JSONRole, JSONChannel, JSONEntitlement, RawEntitlement, RawEmbed, RawAllowedMentions, RawActionRow, RawApplicationCommandOptionChoice, JSONEmbed, JSONAllowedMentions, JSONActionRow, JSONApplicationCommandOptionChoice, RawTextInput, JSONTextInput, ExecuteWebhookParams } from ".";
|
2
2
|
import type { ApplicationCommandOptionType, ApplicationCommandTypes, ComponentTypes, InteractionCallbackType, InteractionType, MessageFlags } from "../constants";
|
3
3
|
import type { File } from "../rest";
|
4
4
|
import { Collection } from "../utils";
|
@@ -169,3 +169,4 @@ export interface JSONInteractionCallbackData {
|
|
169
169
|
customId?: string;
|
170
170
|
title?: string;
|
171
171
|
}
|
172
|
+
export type CreateInteractionFollowupMessageParams = Omit<ExecuteWebhookParams, "threadId" | "avatarUrl" | "username">;
|
@@ -18,3 +18,14 @@ export interface JSONStageInstance {
|
|
18
18
|
discoverableDisabled: boolean;
|
19
19
|
guildScheduledEventId: string | null;
|
20
20
|
}
|
21
|
+
export interface CreateStageInstanceParams {
|
22
|
+
channelId: string;
|
23
|
+
topic: string;
|
24
|
+
privacyLevel?: PrivacyLevel;
|
25
|
+
sendStartNotifications?: boolean;
|
26
|
+
guildScheduledEventId?: string;
|
27
|
+
}
|
28
|
+
export interface EditStageInstanceParams {
|
29
|
+
topic?: string;
|
30
|
+
privacyLevel?: PrivacyLevel;
|
31
|
+
}
|