seyfert 2.1.1-dev-12450598903.0 → 2.1.1-dev-12469676992.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/Routes/applications.d.ts +2 -1
- package/lib/api/Routes/stickers.d.ts +4 -1
- package/lib/builders/Embed.d.ts +2 -2
- package/lib/builders/Embed.js +2 -2
- package/lib/events/hooks/guild.d.ts +132 -0
- package/lib/events/hooks/invite.d.ts +2 -2
- package/lib/events/hooks/subscriptions.d.ts +3 -0
- package/lib/events/hooks/thread.d.ts +3 -233
- package/lib/types/payloads/_interactions/base.d.ts +5 -1
- package/lib/types/payloads/application.d.ts +2 -2
- package/lib/types/payloads/auditLog.d.ts +33 -2
- package/lib/types/payloads/auditLog.js +3 -0
- package/lib/types/payloads/channel.d.ts +1 -5
- package/lib/types/payloads/gateway.d.ts +2 -2
- package/lib/types/payloads/guild.d.ts +14 -2
- package/lib/types/payloads/guildScheduledEvent.d.ts +103 -1
- package/lib/types/payloads/monetization.d.ts +6 -4
- package/lib/types/payloads/template.d.ts +2 -2
- package/lib/types/payloads/user.d.ts +4 -0
- package/lib/types/payloads/user.js +4 -0
- package/lib/types/rest/guildScheduledEvent.d.ts +1 -9
- package/lib/types/rest/index.d.ts +1 -0
- package/lib/types/rest/index.js +1 -0
- package/lib/types/rest/monetization.d.ts +9 -1
- package/lib/types/rest/sticker.d.ts +4 -0
- package/lib/types/utils/index.d.ts +12 -0
- package/lib/types/utils/index.js +12 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RESTDeleteAPIApplicationEmojiResult, RESTGetAPIApplicationCommandResult, RESTGetAPIApplicationCommandsQuery, RESTGetAPIApplicationCommandsResult, RESTGetAPIApplicationEmojiResult, RESTGetAPIApplicationEmojisResult, RESTGetAPIApplicationGuildCommandResult, RESTGetAPIApplicationGuildCommandsQuery, RESTGetAPIApplicationGuildCommandsResult, RESTGetAPIApplicationRoleConnectionMetadataResult, RESTGetAPIEntitlementsQuery, RESTGetAPIEntitlementsResult, RESTGetAPIGuildApplicationCommandsPermissionsResult, RESTGetAPISKUsResult, RESTPatchAPIApplicationCommandJSONBody, RESTPatchAPIApplicationCommandResult, RESTPatchAPIApplicationEmojiJSONBody, RESTPatchAPIApplicationEmojiResult, RESTPatchAPIApplicationGuildCommandJSONBody, RESTPatchAPIApplicationGuildCommandResult, RESTPostAPIApplicationCommandsJSONBody, RESTPostAPIApplicationCommandsResult, RESTPostAPIApplicationEmojiJSONBody, RESTPostAPIApplicationEmojiResult, RESTPostAPIApplicationGuildCommandsJSONBody, RESTPostAPIApplicationGuildCommandsResult, RESTPostAPIEntitlementBody, RESTPostAPIEntitlementResult, RESTPutAPIApplicationCommandPermissionsJSONBody, RESTPutAPIApplicationCommandsJSONBody, RESTPutAPIApplicationCommandsResult, RESTPutAPIApplicationGuildCommandsJSONBody, RESTPutAPIApplicationGuildCommandsResult, RESTPutAPIApplicationRoleConnectionMetadataJSONBody, RESTPutAPIApplicationRoleConnectionMetadataResult, RESTPutAPIGuildApplicationCommandsPermissionsResult } from '../../types';
|
|
1
|
+
import type { RESTDeleteAPIApplicationEmojiResult, RESTGetAPIApplicationCommandResult, RESTGetAPIApplicationCommandsQuery, RESTGetAPIApplicationCommandsResult, RESTGetAPIApplicationEmojiResult, RESTGetAPIApplicationEmojisResult, RESTGetAPIApplicationGuildCommandResult, RESTGetAPIApplicationGuildCommandsQuery, RESTGetAPIApplicationGuildCommandsResult, RESTGetAPIApplicationRoleConnectionMetadataResult, RESTGetAPIEntitlementResult, RESTGetAPIEntitlementsQuery, RESTGetAPIEntitlementsResult, RESTGetAPIGuildApplicationCommandsPermissionsResult, RESTGetAPISKUsResult, RESTPatchAPIApplicationCommandJSONBody, RESTPatchAPIApplicationCommandResult, RESTPatchAPIApplicationEmojiJSONBody, RESTPatchAPIApplicationEmojiResult, RESTPatchAPIApplicationGuildCommandJSONBody, RESTPatchAPIApplicationGuildCommandResult, RESTPostAPIApplicationCommandsJSONBody, RESTPostAPIApplicationCommandsResult, RESTPostAPIApplicationEmojiJSONBody, RESTPostAPIApplicationEmojiResult, RESTPostAPIApplicationGuildCommandsJSONBody, RESTPostAPIApplicationGuildCommandsResult, RESTPostAPIEntitlementBody, RESTPostAPIEntitlementResult, RESTPutAPIApplicationCommandPermissionsJSONBody, RESTPutAPIApplicationCommandsJSONBody, RESTPutAPIApplicationCommandsResult, RESTPutAPIApplicationGuildCommandsJSONBody, RESTPutAPIApplicationGuildCommandsResult, RESTPutAPIApplicationRoleConnectionMetadataJSONBody, RESTPutAPIApplicationRoleConnectionMetadataResult, RESTPutAPIGuildApplicationCommandsPermissionsResult } from '../../types';
|
|
2
2
|
import type { RestArguments, RestArgumentsNoBody } from '../api';
|
|
3
3
|
export interface ApplicationRoutes {
|
|
4
4
|
applications: (id: string) => {
|
|
@@ -50,6 +50,7 @@ export interface ApplicationRoutes {
|
|
|
50
50
|
get(args?: RestArgumentsNoBody<RESTGetAPIEntitlementsQuery>): Promise<RESTGetAPIEntitlementsResult>;
|
|
51
51
|
post(args: RestArguments<RESTPostAPIEntitlementBody>): Promise<RESTPostAPIEntitlementResult>;
|
|
52
52
|
(id: string): {
|
|
53
|
+
get(args?: RestArgumentsNoBody<never>): Promise<RESTGetAPIEntitlementResult>;
|
|
53
54
|
delete(args?: RestArgumentsNoBody): Promise<never>;
|
|
54
55
|
consume: {
|
|
55
56
|
post(args?: RestArgumentsNoBody): Promise<never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RESTGetAPIStickerResult, RESTGetStickerPacksResult } from '../../types';
|
|
1
|
+
import type { RESTGetAPIStickerPack, RESTGetAPIStickerResult, RESTGetStickerPacksResult } from '../../types';
|
|
2
2
|
import type { RestArgumentsNoBody } from '../api';
|
|
3
3
|
export interface StickerRoutes {
|
|
4
4
|
stickers(id: string): {
|
|
@@ -6,5 +6,8 @@ export interface StickerRoutes {
|
|
|
6
6
|
};
|
|
7
7
|
'sticker-packs': {
|
|
8
8
|
get(args?: RestArgumentsNoBody): Promise<RESTGetStickerPacksResult>;
|
|
9
|
+
(id: string): {
|
|
10
|
+
get(args?: RestArgumentsNoBody): Promise<RESTGetAPIStickerPack>;
|
|
11
|
+
};
|
|
9
12
|
};
|
|
10
13
|
}
|
package/lib/builders/Embed.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare class Embed {
|
|
|
23
23
|
* @param author - The author information.
|
|
24
24
|
* @returns The updated Embed instance.
|
|
25
25
|
* @example
|
|
26
|
-
* embed.setAuthor({ name: 'John Doe',
|
|
26
|
+
* embed.setAuthor({ name: 'John Doe', iconUrl: 'https://example.com/avatar.png' });
|
|
27
27
|
*/
|
|
28
28
|
setAuthor(author?: ObjectToLower<APIEmbedAuthor>): this;
|
|
29
29
|
/**
|
|
@@ -64,7 +64,7 @@ export declare class Embed {
|
|
|
64
64
|
* @param footer - The footer information.
|
|
65
65
|
* @returns The updated Embed instance.
|
|
66
66
|
* @example
|
|
67
|
-
* embed.setFooter({ text: 'This is the footer',
|
|
67
|
+
* embed.setFooter({ text: 'This is the footer', iconUrl: 'https://example.com/footer.png' });
|
|
68
68
|
*/
|
|
69
69
|
setFooter(footer?: ObjectToLower<Omit<APIEmbedFooter, 'proxy_icon_url'>>): this;
|
|
70
70
|
/**
|
package/lib/builders/Embed.js
CHANGED
|
@@ -29,7 +29,7 @@ class Embed {
|
|
|
29
29
|
* @param author - The author information.
|
|
30
30
|
* @returns The updated Embed instance.
|
|
31
31
|
* @example
|
|
32
|
-
* embed.setAuthor({ name: 'John Doe',
|
|
32
|
+
* embed.setAuthor({ name: 'John Doe', iconUrl: 'https://example.com/avatar.png' });
|
|
33
33
|
*/
|
|
34
34
|
setAuthor(author) {
|
|
35
35
|
this.data.author = author && (0, common_1.toSnakeCase)(author);
|
|
@@ -85,7 +85,7 @@ class Embed {
|
|
|
85
85
|
* @param footer - The footer information.
|
|
86
86
|
* @returns The updated Embed instance.
|
|
87
87
|
* @example
|
|
88
|
-
* embed.setFooter({ text: 'This is the footer',
|
|
88
|
+
* embed.setFooter({ text: 'This is the footer', iconUrl: 'https://example.com/footer.png' });
|
|
89
89
|
*/
|
|
90
90
|
setFooter(footer) {
|
|
91
91
|
this.data.footer = footer && (0, common_1.toSnakeCase)(footer);
|
|
@@ -157,6 +157,14 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
157
157
|
key: "discovery_splash_hash";
|
|
158
158
|
newValue?: string | undefined;
|
|
159
159
|
oldValue?: string | undefined;
|
|
160
|
+
} | {
|
|
161
|
+
key: "emoji_id";
|
|
162
|
+
newValue?: string | undefined;
|
|
163
|
+
oldValue?: string | undefined;
|
|
164
|
+
} | {
|
|
165
|
+
key: "emoji_name";
|
|
166
|
+
newValue?: string | undefined;
|
|
167
|
+
oldValue?: string | undefined;
|
|
160
168
|
} | {
|
|
161
169
|
key: "enabled";
|
|
162
170
|
newValue?: boolean | undefined;
|
|
@@ -295,6 +303,10 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
295
303
|
key: "preferred_locale";
|
|
296
304
|
newValue?: string | undefined;
|
|
297
305
|
oldValue?: string | undefined;
|
|
306
|
+
} | {
|
|
307
|
+
key: "premium_progress_bar_enabled";
|
|
308
|
+
newValue?: boolean | undefined;
|
|
309
|
+
oldValue?: boolean | undefined;
|
|
298
310
|
} | {
|
|
299
311
|
key: "privacy_level";
|
|
300
312
|
newValue?: import("../../types").StageInstancePrivacyLevel | undefined;
|
|
@@ -319,6 +331,10 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
319
331
|
key: "rules_channel_id";
|
|
320
332
|
newValue?: string | undefined;
|
|
321
333
|
oldValue?: string | undefined;
|
|
334
|
+
} | {
|
|
335
|
+
key: "sound_id";
|
|
336
|
+
newValue?: string | undefined;
|
|
337
|
+
oldValue?: string | undefined;
|
|
322
338
|
} | {
|
|
323
339
|
key: "splash_hash";
|
|
324
340
|
newValue?: string | undefined;
|
|
@@ -373,6 +389,10 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
373
389
|
key: "type";
|
|
374
390
|
newValue?: string | number | undefined;
|
|
375
391
|
oldValue?: string | number | undefined;
|
|
392
|
+
} | {
|
|
393
|
+
key: "user_id";
|
|
394
|
+
newValue?: string | undefined;
|
|
395
|
+
oldValue?: string | undefined;
|
|
376
396
|
} | {
|
|
377
397
|
key: "user_limit";
|
|
378
398
|
newValue?: number | undefined;
|
|
@@ -389,6 +409,10 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: Ga
|
|
|
389
409
|
key: "verification_level";
|
|
390
410
|
newValue?: import("../../types").GuildVerificationLevel | undefined;
|
|
391
411
|
oldValue?: import("../../types").GuildVerificationLevel | undefined;
|
|
412
|
+
} | {
|
|
413
|
+
key: "volume";
|
|
414
|
+
newValue?: number | undefined;
|
|
415
|
+
oldValue?: number | undefined;
|
|
392
416
|
} | {
|
|
393
417
|
key: "widget_channel_id";
|
|
394
418
|
newValue?: string | undefined;
|
|
@@ -475,6 +499,18 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
475
499
|
} | undefined;
|
|
476
500
|
userCount?: number | undefined;
|
|
477
501
|
image?: string | null | undefined;
|
|
502
|
+
recurrenceRule: {
|
|
503
|
+
start: string;
|
|
504
|
+
end: string | null;
|
|
505
|
+
frequency: import("../../types").GuildScheduledEventRecurrenceRuleFrequency;
|
|
506
|
+
interval: number;
|
|
507
|
+
byWeekday: import("../../types").GuildScheduledEventRecurrenceRuleWeekday[] | null;
|
|
508
|
+
byNWeekday: import("../../types").GuildScheduledEventRecurrenceRuleNWeekday[] | null;
|
|
509
|
+
byMonth: import("../../types").GuildScheduledEventRecurrenceRuleMonth[] | null;
|
|
510
|
+
byMonthDay: number[] | null;
|
|
511
|
+
byYearDay: number[] | null;
|
|
512
|
+
count: number | null;
|
|
513
|
+
} | null;
|
|
478
514
|
} | {
|
|
479
515
|
channelId: string;
|
|
480
516
|
entityMetadata: undefined;
|
|
@@ -511,6 +547,18 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
511
547
|
} | undefined;
|
|
512
548
|
userCount?: number | undefined;
|
|
513
549
|
image?: string | null | undefined;
|
|
550
|
+
recurrenceRule: {
|
|
551
|
+
start: string;
|
|
552
|
+
end: string | null;
|
|
553
|
+
frequency: import("../../types").GuildScheduledEventRecurrenceRuleFrequency;
|
|
554
|
+
interval: number;
|
|
555
|
+
byWeekday: import("../../types").GuildScheduledEventRecurrenceRuleWeekday[] | null;
|
|
556
|
+
byNWeekday: import("../../types").GuildScheduledEventRecurrenceRuleNWeekday[] | null;
|
|
557
|
+
byMonth: import("../../types").GuildScheduledEventRecurrenceRuleMonth[] | null;
|
|
558
|
+
byMonthDay: number[] | null;
|
|
559
|
+
byYearDay: number[] | null;
|
|
560
|
+
count: number | null;
|
|
561
|
+
} | null;
|
|
514
562
|
} | {
|
|
515
563
|
channelId: undefined;
|
|
516
564
|
entityMetadata: {
|
|
@@ -549,6 +597,18 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: Ga
|
|
|
549
597
|
} | undefined;
|
|
550
598
|
userCount?: number | undefined;
|
|
551
599
|
image?: string | null | undefined;
|
|
600
|
+
recurrenceRule: {
|
|
601
|
+
start: string;
|
|
602
|
+
end: string | null;
|
|
603
|
+
frequency: import("../../types").GuildScheduledEventRecurrenceRuleFrequency;
|
|
604
|
+
interval: number;
|
|
605
|
+
byWeekday: import("../../types").GuildScheduledEventRecurrenceRuleWeekday[] | null;
|
|
606
|
+
byNWeekday: import("../../types").GuildScheduledEventRecurrenceRuleNWeekday[] | null;
|
|
607
|
+
byMonth: import("../../types").GuildScheduledEventRecurrenceRuleMonth[] | null;
|
|
608
|
+
byMonthDay: number[] | null;
|
|
609
|
+
byYearDay: number[] | null;
|
|
610
|
+
count: number | null;
|
|
611
|
+
} | null;
|
|
552
612
|
};
|
|
553
613
|
export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: GatewayGuildScheduledEventUpdateDispatchData) => {
|
|
554
614
|
channelId: string;
|
|
@@ -586,6 +646,18 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
586
646
|
} | undefined;
|
|
587
647
|
userCount?: number | undefined;
|
|
588
648
|
image?: string | null | undefined;
|
|
649
|
+
recurrenceRule: {
|
|
650
|
+
start: string;
|
|
651
|
+
end: string | null;
|
|
652
|
+
frequency: import("../../types").GuildScheduledEventRecurrenceRuleFrequency;
|
|
653
|
+
interval: number;
|
|
654
|
+
byWeekday: import("../../types").GuildScheduledEventRecurrenceRuleWeekday[] | null;
|
|
655
|
+
byNWeekday: import("../../types").GuildScheduledEventRecurrenceRuleNWeekday[] | null;
|
|
656
|
+
byMonth: import("../../types").GuildScheduledEventRecurrenceRuleMonth[] | null;
|
|
657
|
+
byMonthDay: number[] | null;
|
|
658
|
+
byYearDay: number[] | null;
|
|
659
|
+
count: number | null;
|
|
660
|
+
} | null;
|
|
589
661
|
} | {
|
|
590
662
|
channelId: string;
|
|
591
663
|
entityMetadata: undefined;
|
|
@@ -622,6 +694,18 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
622
694
|
} | undefined;
|
|
623
695
|
userCount?: number | undefined;
|
|
624
696
|
image?: string | null | undefined;
|
|
697
|
+
recurrenceRule: {
|
|
698
|
+
start: string;
|
|
699
|
+
end: string | null;
|
|
700
|
+
frequency: import("../../types").GuildScheduledEventRecurrenceRuleFrequency;
|
|
701
|
+
interval: number;
|
|
702
|
+
byWeekday: import("../../types").GuildScheduledEventRecurrenceRuleWeekday[] | null;
|
|
703
|
+
byNWeekday: import("../../types").GuildScheduledEventRecurrenceRuleNWeekday[] | null;
|
|
704
|
+
byMonth: import("../../types").GuildScheduledEventRecurrenceRuleMonth[] | null;
|
|
705
|
+
byMonthDay: number[] | null;
|
|
706
|
+
byYearDay: number[] | null;
|
|
707
|
+
count: number | null;
|
|
708
|
+
} | null;
|
|
625
709
|
} | {
|
|
626
710
|
channelId: undefined;
|
|
627
711
|
entityMetadata: {
|
|
@@ -660,6 +744,18 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: Ga
|
|
|
660
744
|
} | undefined;
|
|
661
745
|
userCount?: number | undefined;
|
|
662
746
|
image?: string | null | undefined;
|
|
747
|
+
recurrenceRule: {
|
|
748
|
+
start: string;
|
|
749
|
+
end: string | null;
|
|
750
|
+
frequency: import("../../types").GuildScheduledEventRecurrenceRuleFrequency;
|
|
751
|
+
interval: number;
|
|
752
|
+
byWeekday: import("../../types").GuildScheduledEventRecurrenceRuleWeekday[] | null;
|
|
753
|
+
byNWeekday: import("../../types").GuildScheduledEventRecurrenceRuleNWeekday[] | null;
|
|
754
|
+
byMonth: import("../../types").GuildScheduledEventRecurrenceRuleMonth[] | null;
|
|
755
|
+
byMonthDay: number[] | null;
|
|
756
|
+
byYearDay: number[] | null;
|
|
757
|
+
count: number | null;
|
|
758
|
+
} | null;
|
|
663
759
|
};
|
|
664
760
|
export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: GatewayGuildScheduledEventDeleteDispatchData) => {
|
|
665
761
|
channelId: string;
|
|
@@ -697,6 +793,18 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
697
793
|
} | undefined;
|
|
698
794
|
userCount?: number | undefined;
|
|
699
795
|
image?: string | null | undefined;
|
|
796
|
+
recurrenceRule: {
|
|
797
|
+
start: string;
|
|
798
|
+
end: string | null;
|
|
799
|
+
frequency: import("../../types").GuildScheduledEventRecurrenceRuleFrequency;
|
|
800
|
+
interval: number;
|
|
801
|
+
byWeekday: import("../../types").GuildScheduledEventRecurrenceRuleWeekday[] | null;
|
|
802
|
+
byNWeekday: import("../../types").GuildScheduledEventRecurrenceRuleNWeekday[] | null;
|
|
803
|
+
byMonth: import("../../types").GuildScheduledEventRecurrenceRuleMonth[] | null;
|
|
804
|
+
byMonthDay: number[] | null;
|
|
805
|
+
byYearDay: number[] | null;
|
|
806
|
+
count: number | null;
|
|
807
|
+
} | null;
|
|
700
808
|
} | {
|
|
701
809
|
channelId: string;
|
|
702
810
|
entityMetadata: undefined;
|
|
@@ -733,6 +841,18 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
733
841
|
} | undefined;
|
|
734
842
|
userCount?: number | undefined;
|
|
735
843
|
image?: string | null | undefined;
|
|
844
|
+
recurrenceRule: {
|
|
845
|
+
start: string;
|
|
846
|
+
end: string | null;
|
|
847
|
+
frequency: import("../../types").GuildScheduledEventRecurrenceRuleFrequency;
|
|
848
|
+
interval: number;
|
|
849
|
+
byWeekday: import("../../types").GuildScheduledEventRecurrenceRuleWeekday[] | null;
|
|
850
|
+
byNWeekday: import("../../types").GuildScheduledEventRecurrenceRuleNWeekday[] | null;
|
|
851
|
+
byMonth: import("../../types").GuildScheduledEventRecurrenceRuleMonth[] | null;
|
|
852
|
+
byMonthDay: number[] | null;
|
|
853
|
+
byYearDay: number[] | null;
|
|
854
|
+
count: number | null;
|
|
855
|
+
} | null;
|
|
736
856
|
} | {
|
|
737
857
|
channelId: undefined;
|
|
738
858
|
entityMetadata: {
|
|
@@ -771,6 +891,18 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: Ga
|
|
|
771
891
|
} | undefined;
|
|
772
892
|
userCount?: number | undefined;
|
|
773
893
|
image?: string | null | undefined;
|
|
894
|
+
recurrenceRule: {
|
|
895
|
+
start: string;
|
|
896
|
+
end: string | null;
|
|
897
|
+
frequency: import("../../types").GuildScheduledEventRecurrenceRuleFrequency;
|
|
898
|
+
interval: number;
|
|
899
|
+
byWeekday: import("../../types").GuildScheduledEventRecurrenceRuleWeekday[] | null;
|
|
900
|
+
byNWeekday: import("../../types").GuildScheduledEventRecurrenceRuleNWeekday[] | null;
|
|
901
|
+
byMonth: import("../../types").GuildScheduledEventRecurrenceRuleMonth[] | null;
|
|
902
|
+
byMonthDay: number[] | null;
|
|
903
|
+
byYearDay: number[] | null;
|
|
904
|
+
count: number | null;
|
|
905
|
+
} | null;
|
|
774
906
|
};
|
|
775
907
|
export declare const GUILD_SCHEDULED_EVENT_USER_ADD: (_self: UsingClient, data: GatewayGuildScheduledEventUserAddDispatchData) => {
|
|
776
908
|
guildScheduledEventId: string;
|
|
@@ -72,8 +72,8 @@ export declare const INVITE_CREATE: (_self: UsingClient, data: GatewayInviteCrea
|
|
|
72
72
|
approximateGuildCount?: number | undefined;
|
|
73
73
|
approximateUserInstallCount?: number | undefined;
|
|
74
74
|
redirectUris?: string[] | undefined;
|
|
75
|
-
interactionsEndpointUrl?: string | undefined;
|
|
76
|
-
roleConnectionsVerificationUrl?: string | undefined;
|
|
75
|
+
interactionsEndpointUrl?: string | null | undefined;
|
|
76
|
+
roleConnectionsVerificationUrl?: string | null | undefined;
|
|
77
77
|
tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
|
|
78
78
|
installParams?: import("../../types").APIApplicationInstallParams | undefined;
|
|
79
79
|
integrationTypesConfig?: import("../../types").APIApplicationIntegrationTypesConfigMap | undefined;
|
|
@@ -5,6 +5,7 @@ export declare const SUBSCRIPTION_CREATE: (_: UsingClient, data: APISubscription
|
|
|
5
5
|
userId: string;
|
|
6
6
|
skuIds: string[];
|
|
7
7
|
entitlementsIds: string[];
|
|
8
|
+
renewalSkuIds: string[] | null;
|
|
8
9
|
currentPeriodStart: string;
|
|
9
10
|
currentPeriodEnd: string;
|
|
10
11
|
status: import("../../types").SubscriptionStatus;
|
|
@@ -16,6 +17,7 @@ export declare const SUBSCRIPTION_UPDATE: (_: UsingClient, data: APISubscription
|
|
|
16
17
|
userId: string;
|
|
17
18
|
skuIds: string[];
|
|
18
19
|
entitlementsIds: string[];
|
|
20
|
+
renewalSkuIds: string[] | null;
|
|
19
21
|
currentPeriodStart: string;
|
|
20
22
|
currentPeriodEnd: string;
|
|
21
23
|
status: import("../../types").SubscriptionStatus;
|
|
@@ -27,6 +29,7 @@ export declare const SUBSCRIPTION_DELETE: (_: UsingClient, data: APISubscription
|
|
|
27
29
|
userId: string;
|
|
28
30
|
skuIds: string[];
|
|
29
31
|
entitlementsIds: string[];
|
|
32
|
+
renewalSkuIds: string[] | null;
|
|
30
33
|
currentPeriodStart: string;
|
|
31
34
|
currentPeriodEnd: string;
|
|
32
35
|
status: import("../../types").SubscriptionStatus;
|
|
@@ -7,237 +7,7 @@ export declare const THREAD_DELETE: (self: UsingClient, data: GatewayThreadDelet
|
|
|
7
7
|
export declare const THREAD_LIST_SYNC: (_self: UsingClient, data: GatewayThreadListSyncDispatchData) => {
|
|
8
8
|
guildId: string;
|
|
9
9
|
channelIds?: string[] | undefined;
|
|
10
|
-
threads:
|
|
11
|
-
name: undefined;
|
|
12
|
-
id: string;
|
|
13
|
-
type: import("../../types").ChannelType.DM;
|
|
14
|
-
flags?: import("../../types").ChannelFlags | undefined;
|
|
15
|
-
lastMessageId?: string | null | undefined;
|
|
16
|
-
lastPinTimestamp?: string | null | undefined;
|
|
17
|
-
recipients?: {
|
|
18
|
-
id: string;
|
|
19
|
-
username: string;
|
|
20
|
-
discriminator: string;
|
|
21
|
-
globalName: string | null;
|
|
22
|
-
avatar: string | null;
|
|
23
|
-
bot?: boolean | undefined;
|
|
24
|
-
system?: boolean | undefined;
|
|
25
|
-
mfaEnabled?: boolean | undefined;
|
|
26
|
-
banner?: string | null | undefined;
|
|
27
|
-
accentColor?: number | null | undefined;
|
|
28
|
-
locale?: string | undefined;
|
|
29
|
-
verified?: boolean | undefined;
|
|
30
|
-
email?: string | null | undefined;
|
|
31
|
-
flags?: import("../../types").UserFlags | undefined;
|
|
32
|
-
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
33
|
-
publicFlags?: import("../../types").UserFlags | undefined;
|
|
34
|
-
avatarDecoration?: string | null | undefined;
|
|
35
|
-
avatarDecorationData?: {
|
|
36
|
-
asset: string;
|
|
37
|
-
skuId: string;
|
|
38
|
-
} | null | undefined;
|
|
39
|
-
}[] | undefined;
|
|
40
|
-
} | {
|
|
41
|
-
name: string | null;
|
|
42
|
-
applicationId?: string | undefined;
|
|
43
|
-
icon?: string | null | undefined;
|
|
44
|
-
ownerId?: string | undefined;
|
|
45
|
-
lastMessageId?: string | null | undefined;
|
|
46
|
-
managed?: boolean | undefined;
|
|
47
|
-
id: string;
|
|
48
|
-
type: import("../../types").ChannelType.GroupDM;
|
|
49
|
-
flags?: import("../../types").ChannelFlags | undefined;
|
|
50
|
-
lastPinTimestamp?: string | null | undefined;
|
|
51
|
-
recipients?: {
|
|
52
|
-
id: string;
|
|
53
|
-
username: string;
|
|
54
|
-
discriminator: string;
|
|
55
|
-
globalName: string | null;
|
|
56
|
-
avatar: string | null;
|
|
57
|
-
bot?: boolean | undefined;
|
|
58
|
-
system?: boolean | undefined;
|
|
59
|
-
mfaEnabled?: boolean | undefined;
|
|
60
|
-
banner?: string | null | undefined;
|
|
61
|
-
accentColor?: number | null | undefined;
|
|
62
|
-
locale?: string | undefined;
|
|
63
|
-
verified?: boolean | undefined;
|
|
64
|
-
email?: string | null | undefined;
|
|
65
|
-
flags?: import("../../types").UserFlags | undefined;
|
|
66
|
-
premiumType?: import("../../types").UserPremiumType | undefined;
|
|
67
|
-
publicFlags?: import("../../types").UserFlags | undefined;
|
|
68
|
-
avatarDecoration?: string | null | undefined;
|
|
69
|
-
avatarDecorationData?: {
|
|
70
|
-
asset: string;
|
|
71
|
-
skuId: string;
|
|
72
|
-
} | null | undefined;
|
|
73
|
-
}[] | undefined;
|
|
74
|
-
} | {
|
|
75
|
-
name: string;
|
|
76
|
-
guildId?: string | undefined;
|
|
77
|
-
permissionOverwrites?: {
|
|
78
|
-
id: string;
|
|
79
|
-
type: import("../../types").OverwriteType;
|
|
80
|
-
allow: string;
|
|
81
|
-
deny: string;
|
|
82
|
-
}[] | undefined;
|
|
83
|
-
position: number;
|
|
84
|
-
parentId?: string | null | undefined;
|
|
85
|
-
nsfw?: boolean | undefined;
|
|
86
|
-
id: string;
|
|
87
|
-
type: import("../../types").ChannelType.GuildCategory;
|
|
88
|
-
flags?: import("../../types").ChannelFlags | undefined;
|
|
89
|
-
} | {
|
|
90
|
-
defaultForumLayout: import("../../types").ForumLayoutType;
|
|
91
|
-
topic?: string | null | undefined;
|
|
92
|
-
lastMessageId?: string | null | undefined;
|
|
93
|
-
rateLimitPerUser?: number | undefined;
|
|
94
|
-
lastPinTimestamp?: string | null | undefined;
|
|
95
|
-
defaultAutoArchiveDuration?: import("../../types").ThreadAutoArchiveDuration | undefined;
|
|
96
|
-
availableTags: {
|
|
97
|
-
id: string;
|
|
98
|
-
name: string;
|
|
99
|
-
moderated: boolean;
|
|
100
|
-
emojiId: string | null;
|
|
101
|
-
emojiName: string | null;
|
|
102
|
-
}[];
|
|
103
|
-
defaultThreadRateLimitPerUser?: number | undefined;
|
|
104
|
-
defaultReactionEmoji: {
|
|
105
|
-
emojiId: string | null;
|
|
106
|
-
emojiName: string | null;
|
|
107
|
-
} | null;
|
|
108
|
-
defaultSortOrder: import("../../types").SortOrderType | null;
|
|
109
|
-
name: string;
|
|
110
|
-
guildId?: string | undefined;
|
|
111
|
-
permissionOverwrites?: {
|
|
112
|
-
id: string;
|
|
113
|
-
type: import("../../types").OverwriteType;
|
|
114
|
-
allow: string;
|
|
115
|
-
deny: string;
|
|
116
|
-
}[] | undefined;
|
|
117
|
-
position: number;
|
|
118
|
-
parentId?: string | null | undefined;
|
|
119
|
-
nsfw?: boolean | undefined;
|
|
120
|
-
id: string;
|
|
121
|
-
type: import("../../types").ChannelType.GuildForum;
|
|
122
|
-
flags?: import("../../types").ChannelFlags | undefined;
|
|
123
|
-
} | {
|
|
124
|
-
topic?: string | null | undefined;
|
|
125
|
-
lastMessageId?: string | null | undefined;
|
|
126
|
-
rateLimitPerUser?: number | undefined;
|
|
127
|
-
lastPinTimestamp?: string | null | undefined;
|
|
128
|
-
defaultAutoArchiveDuration?: import("../../types").ThreadAutoArchiveDuration | undefined;
|
|
129
|
-
availableTags: {
|
|
130
|
-
id: string;
|
|
131
|
-
name: string;
|
|
132
|
-
moderated: boolean;
|
|
133
|
-
emojiId: string | null;
|
|
134
|
-
emojiName: string | null;
|
|
135
|
-
}[];
|
|
136
|
-
defaultThreadRateLimitPerUser?: number | undefined;
|
|
137
|
-
defaultReactionEmoji: {
|
|
138
|
-
emojiId: string | null;
|
|
139
|
-
emojiName: string | null;
|
|
140
|
-
} | null;
|
|
141
|
-
defaultSortOrder: import("../../types").SortOrderType | null;
|
|
142
|
-
name: string;
|
|
143
|
-
guildId?: string | undefined;
|
|
144
|
-
permissionOverwrites?: {
|
|
145
|
-
id: string;
|
|
146
|
-
type: import("../../types").OverwriteType;
|
|
147
|
-
allow: string;
|
|
148
|
-
deny: string;
|
|
149
|
-
}[] | undefined;
|
|
150
|
-
position: number;
|
|
151
|
-
parentId?: string | null | undefined;
|
|
152
|
-
nsfw?: boolean | undefined;
|
|
153
|
-
id: string;
|
|
154
|
-
type: import("../../types").ChannelType.GuildMedia;
|
|
155
|
-
flags?: import("../../types").ChannelFlags | undefined;
|
|
156
|
-
} | {
|
|
157
|
-
bitrate?: number | undefined;
|
|
158
|
-
userLimit?: number | undefined;
|
|
159
|
-
rtcRegion?: string | null | undefined;
|
|
160
|
-
videoQualityMode?: import("../../types").VideoQualityMode | undefined;
|
|
161
|
-
name: string;
|
|
162
|
-
guildId?: string | undefined;
|
|
163
|
-
permissionOverwrites?: {
|
|
164
|
-
id: string;
|
|
165
|
-
type: import("../../types").OverwriteType;
|
|
166
|
-
allow: string;
|
|
167
|
-
deny: string;
|
|
168
|
-
}[] | undefined;
|
|
169
|
-
position: number;
|
|
170
|
-
parentId?: string | null | undefined;
|
|
171
|
-
nsfw?: boolean | undefined;
|
|
172
|
-
id: string;
|
|
173
|
-
type: import("../../types").ChannelType.GuildStageVoice;
|
|
174
|
-
flags?: import("../../types").ChannelFlags | undefined;
|
|
175
|
-
rateLimitPerUser?: number | undefined;
|
|
176
|
-
lastMessageId?: string | null | undefined;
|
|
177
|
-
} | {
|
|
178
|
-
bitrate?: number | undefined;
|
|
179
|
-
userLimit?: number | undefined;
|
|
180
|
-
rtcRegion?: string | null | undefined;
|
|
181
|
-
videoQualityMode?: import("../../types").VideoQualityMode | undefined;
|
|
182
|
-
name: string;
|
|
183
|
-
guildId?: string | undefined;
|
|
184
|
-
permissionOverwrites?: {
|
|
185
|
-
id: string;
|
|
186
|
-
type: import("../../types").OverwriteType;
|
|
187
|
-
allow: string;
|
|
188
|
-
deny: string;
|
|
189
|
-
}[] | undefined;
|
|
190
|
-
position: number;
|
|
191
|
-
parentId?: string | null | undefined;
|
|
192
|
-
nsfw?: boolean | undefined;
|
|
193
|
-
id: string;
|
|
194
|
-
type: import("../../types").ChannelType.GuildVoice;
|
|
195
|
-
flags?: import("../../types").ChannelFlags | undefined;
|
|
196
|
-
rateLimitPerUser?: number | undefined;
|
|
197
|
-
lastMessageId?: string | null | undefined;
|
|
198
|
-
} | {
|
|
199
|
-
defaultAutoArchiveDuration?: import("../../types").ThreadAutoArchiveDuration | undefined;
|
|
200
|
-
defaultThreadRateLimitPerUser?: number | undefined;
|
|
201
|
-
topic?: string | null | undefined;
|
|
202
|
-
id: string;
|
|
203
|
-
type: import("../../types").ChannelType.GuildAnnouncement;
|
|
204
|
-
flags?: import("../../types").ChannelFlags | undefined;
|
|
205
|
-
rateLimitPerUser?: number | undefined;
|
|
206
|
-
lastMessageId?: string | null | undefined;
|
|
207
|
-
lastPinTimestamp?: string | null | undefined;
|
|
208
|
-
name: string;
|
|
209
|
-
guildId?: string | undefined;
|
|
210
|
-
permissionOverwrites?: {
|
|
211
|
-
id: string;
|
|
212
|
-
type: import("../../types").OverwriteType;
|
|
213
|
-
allow: string;
|
|
214
|
-
deny: string;
|
|
215
|
-
}[] | undefined;
|
|
216
|
-
position: number;
|
|
217
|
-
parentId?: string | null | undefined;
|
|
218
|
-
nsfw?: boolean | undefined;
|
|
219
|
-
} | {
|
|
220
|
-
defaultAutoArchiveDuration?: import("../../types").ThreadAutoArchiveDuration | undefined;
|
|
221
|
-
defaultThreadRateLimitPerUser?: number | undefined;
|
|
222
|
-
topic?: string | null | undefined;
|
|
223
|
-
id: string;
|
|
224
|
-
type: import("../../types").ChannelType.GuildText;
|
|
225
|
-
flags?: import("../../types").ChannelFlags | undefined;
|
|
226
|
-
rateLimitPerUser?: number | undefined;
|
|
227
|
-
lastMessageId?: string | null | undefined;
|
|
228
|
-
lastPinTimestamp?: string | null | undefined;
|
|
229
|
-
name: string;
|
|
230
|
-
guildId?: string | undefined;
|
|
231
|
-
permissionOverwrites?: {
|
|
232
|
-
id: string;
|
|
233
|
-
type: import("../../types").OverwriteType;
|
|
234
|
-
allow: string;
|
|
235
|
-
deny: string;
|
|
236
|
-
}[] | undefined;
|
|
237
|
-
position: number;
|
|
238
|
-
parentId?: string | null | undefined;
|
|
239
|
-
nsfw?: boolean | undefined;
|
|
240
|
-
} | {
|
|
10
|
+
threads: {
|
|
241
11
|
member?: {
|
|
242
12
|
id?: string | undefined;
|
|
243
13
|
userId?: string | undefined;
|
|
@@ -249,7 +19,7 @@ export declare const THREAD_LIST_SYNC: (_self: UsingClient, data: GatewayThreadL
|
|
|
249
19
|
archived: boolean;
|
|
250
20
|
autoArchiveDuration: import("../../types").ThreadAutoArchiveDuration;
|
|
251
21
|
archiveTimestamp: string;
|
|
252
|
-
locked
|
|
22
|
+
locked: boolean;
|
|
253
23
|
invitable?: boolean | undefined;
|
|
254
24
|
createTimestamp?: string | undefined;
|
|
255
25
|
} | undefined;
|
|
@@ -275,7 +45,7 @@ export declare const THREAD_LIST_SYNC: (_self: UsingClient, data: GatewayThreadL
|
|
|
275
45
|
position: number;
|
|
276
46
|
nsfw?: boolean | undefined;
|
|
277
47
|
parentId?: string | undefined;
|
|
278
|
-
}
|
|
48
|
+
}[];
|
|
279
49
|
members: {
|
|
280
50
|
id?: string | undefined;
|
|
281
51
|
userId?: string | undefined;
|
|
@@ -2,7 +2,7 @@ import type { ApplicationIntegrationType, InteractionContextType } from '..';
|
|
|
2
2
|
import type { ChannelType, Permissions, Snowflake } from '../..';
|
|
3
3
|
import type { LocaleString } from '../../rest';
|
|
4
4
|
import type { APIAttachment, APIChannel, APIMessage, APIPartialChannel, APIThreadChannel, ThreadChannelType } from '../channel';
|
|
5
|
-
import type { APIGuildMember } from '../guild';
|
|
5
|
+
import type { APIGuildMember, APIPartialInteractionGuild } from '../guild';
|
|
6
6
|
import type { APIEntitlement } from '../monetization';
|
|
7
7
|
import type { APIRole } from '../permissions';
|
|
8
8
|
import type { APIUser } from '../user';
|
|
@@ -93,6 +93,10 @@ export interface APIBaseInteraction<Type extends InteractionType, Data> {
|
|
|
93
93
|
* The command data payload
|
|
94
94
|
*/
|
|
95
95
|
data?: Data;
|
|
96
|
+
/**
|
|
97
|
+
* The guild it was sent from
|
|
98
|
+
*/
|
|
99
|
+
guild?: APIPartialInteractionGuild;
|
|
96
100
|
/**
|
|
97
101
|
* The guild it was sent from
|
|
98
102
|
*/
|
|
@@ -117,12 +117,12 @@ export interface APIApplication {
|
|
|
117
117
|
/**
|
|
118
118
|
* The interactions endpoint URL for the application
|
|
119
119
|
*/
|
|
120
|
-
interactions_endpoint_url?: string;
|
|
120
|
+
interactions_endpoint_url?: string | null;
|
|
121
121
|
/**
|
|
122
122
|
* The application's role connection verification entry point,
|
|
123
123
|
* which when configured will render the app as a verification method in the guild role verification configuration
|
|
124
124
|
*/
|
|
125
|
-
role_connections_verification_url?: string;
|
|
125
|
+
role_connections_verification_url?: string | null;
|
|
126
126
|
/**
|
|
127
127
|
* Up to 5 tags of max 20 characters each describing the content and functionality of the application
|
|
128
128
|
*/
|
|
@@ -5,7 +5,7 @@ import type { Snowflake } from '..';
|
|
|
5
5
|
import type { APIAutoModerationAction, APIAutoModerationRule, APIAutoModerationRuleTriggerMetadata, AutoModerationRuleEventType, AutoModerationRuleTriggerType } from './autoModeration';
|
|
6
6
|
import type { APIChannel, APIGuildForumDefaultReactionEmoji, APIGuildForumTag, APIOverwrite } from './channel';
|
|
7
7
|
import type { APIGuildIntegration, APIGuildIntegrationType, GuildDefaultMessageNotifications, GuildExplicitContentFilter, GuildMFALevel, GuildSystemChannelFlags, GuildVerificationLevel, IntegrationExpireBehavior } from './guild';
|
|
8
|
-
import type { APIGuildScheduledEvent, GuildScheduledEventEntityType, GuildScheduledEventStatus } from './guildScheduledEvent';
|
|
8
|
+
import type { APIGuildScheduledEvent, APIGuildScheduledEventRecurrenceRule, GuildScheduledEventEntityType, GuildScheduledEventStatus } from './guildScheduledEvent';
|
|
9
9
|
import type { APIApplicationCommand } from './interactions';
|
|
10
10
|
import type { APIRole } from './permissions';
|
|
11
11
|
import type { StageInstancePrivacyLevel } from './stageInstance';
|
|
@@ -160,6 +160,9 @@ export declare enum AuditLogEvent {
|
|
|
160
160
|
ThreadUpdate = 111,
|
|
161
161
|
ThreadDelete = 112,
|
|
162
162
|
ApplicationCommandPermissionUpdate = 121,
|
|
163
|
+
SoundboardSoundCreate = 130,
|
|
164
|
+
SoundboardSoundUpdate = 131,
|
|
165
|
+
SoundboardSoundDelete = 132,
|
|
163
166
|
AutoModerationRuleCreate = 140,
|
|
164
167
|
AutoModerationRuleUpdate = 141,
|
|
165
168
|
AutoModerationRuleDelete = 142,
|
|
@@ -294,7 +297,7 @@ export type AuditLogRuleTriggerType = `${AutoModerationRuleTriggerType}`;
|
|
|
294
297
|
/**
|
|
295
298
|
* https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-structure
|
|
296
299
|
*/
|
|
297
|
-
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 | 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 | APIAuditLogChangeKeyPrivacyLevel | APIAuditLogChangeKeyPruneDeleteDays | APIAuditLogChangeKeyPublicUpdatesChannelId | APIAuditLogChangeKeyRateLimitPerUser | APIAuditLogChangeKeyRegion | APIAuditLogChangeKeyRulesChannelId | APIAuditLogChangeKeySplashHash | APIAuditLogChangeKeyStatus | APIAuditLogChangeKeySystemChannelFlags | APIAuditLogChangeKeySystemChannelId | APIAuditLogChangeKeyTags | APIAuditLogChangeKeyTemporary | APIAuditLogChangeKeyTopic | APIAuditLogChangeKeyTriggerMetadata | APIAuditLogChangeKeyTriggerType | APIAuditLogChangeKeyType | APIAuditLogChangeKeyUserLimit | APIAuditLogChangeKeyUses | APIAuditLogChangeKeyVanityURLCode | APIAuditLogChangeKeyVerificationLevel | APIAuditLogChangeKeyWidgetChannelId | APIAuditLogChangeKeyWidgetEnabled;
|
|
300
|
+
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;
|
|
298
301
|
/**
|
|
299
302
|
* Returned when an entity's name is changed
|
|
300
303
|
*/
|
|
@@ -375,6 +378,10 @@ export type APIAuditLogChangeKeyDefaultMessageNotifications = AuditLogChangeData
|
|
|
375
378
|
* Returned when a guild's vanity_url_code is changed
|
|
376
379
|
*/
|
|
377
380
|
export type APIAuditLogChangeKeyVanityURLCode = AuditLogChangeData<'vanity_url_code', string>;
|
|
381
|
+
/**
|
|
382
|
+
* Returned when a guild's boost progress bar is enabled
|
|
383
|
+
*/
|
|
384
|
+
export type APIAuditLogChangeKeyPremiumProgressBarEnabled = AuditLogChangeData<'premium_progress_bar_enabled', boolean>;
|
|
378
385
|
/**
|
|
379
386
|
* Returned when new role(s) are added
|
|
380
387
|
*/
|
|
@@ -432,6 +439,10 @@ export type APIAuditLogChangeKeyApplicationId = AuditLogChangeData<'application_
|
|
|
432
439
|
* is changed
|
|
433
440
|
*/
|
|
434
441
|
export type APIAuditLogChangeKeyRateLimitPerUser = AuditLogChangeData<'rate_limit_per_user', number>;
|
|
442
|
+
/**
|
|
443
|
+
* Returned when a guild scheduled event's recurrence_rule is changed
|
|
444
|
+
*/
|
|
445
|
+
export type APIAuditLogChangeKeyRecurrenceRule = AuditLogChangeData<'recurrence_rule', APIGuildScheduledEventRecurrenceRule>;
|
|
435
446
|
/**
|
|
436
447
|
* Returned when a permission bitfield is changed
|
|
437
448
|
*/
|
|
@@ -630,6 +641,26 @@ export type APIAuditLogChangeKeyFlags = AuditLogChangeData<'flags', number>;
|
|
|
630
641
|
* gets changed
|
|
631
642
|
*/
|
|
632
643
|
export type APIAuditLogChangeKeyDefaultThreadRateLimitPerUser = AuditLogChangeData<'default_thread_rate_limit_per_user', number>;
|
|
644
|
+
/**
|
|
645
|
+
* Returned when a soundboard is create or deleted
|
|
646
|
+
*/
|
|
647
|
+
export type APIAuditLogChangeKeySoundId = AuditLogChangeData<'sound_id', Snowflake>;
|
|
648
|
+
/**
|
|
649
|
+
* Returned when a soundboard's volume is changed
|
|
650
|
+
*/
|
|
651
|
+
export type APIAuditLogChangeKeyVolume = AuditLogChangeData<'volume', number>;
|
|
652
|
+
/**
|
|
653
|
+
* Returned when a soundboard's custom emoji is changed
|
|
654
|
+
*/
|
|
655
|
+
export type APIAuditLogChangeKeyEmojiId = AuditLogChangeData<'emoji_id', Snowflake>;
|
|
656
|
+
/**
|
|
657
|
+
* Returned when a soundboard's unicode emoji is changed
|
|
658
|
+
*/
|
|
659
|
+
export type APIAuditLogChangeKeyEmojiName = AuditLogChangeData<'emoji_name', string>;
|
|
660
|
+
/**
|
|
661
|
+
* Returned when a sounboard is created
|
|
662
|
+
*/
|
|
663
|
+
export type APIAuditLogChangeKeyUserId = AuditLogChangeData<'user_id', Snowflake>;
|
|
633
664
|
interface AuditLogChangeData<K extends string, D> {
|
|
634
665
|
key: K;
|
|
635
666
|
/**
|
|
@@ -57,6 +57,9 @@ var AuditLogEvent;
|
|
|
57
57
|
AuditLogEvent[AuditLogEvent["ThreadUpdate"] = 111] = "ThreadUpdate";
|
|
58
58
|
AuditLogEvent[AuditLogEvent["ThreadDelete"] = 112] = "ThreadDelete";
|
|
59
59
|
AuditLogEvent[AuditLogEvent["ApplicationCommandPermissionUpdate"] = 121] = "ApplicationCommandPermissionUpdate";
|
|
60
|
+
AuditLogEvent[AuditLogEvent["SoundboardSoundCreate"] = 130] = "SoundboardSoundCreate";
|
|
61
|
+
AuditLogEvent[AuditLogEvent["SoundboardSoundUpdate"] = 131] = "SoundboardSoundUpdate";
|
|
62
|
+
AuditLogEvent[AuditLogEvent["SoundboardSoundDelete"] = 132] = "SoundboardSoundDelete";
|
|
60
63
|
AuditLogEvent[AuditLogEvent["AutoModerationRuleCreate"] = 140] = "AutoModerationRuleCreate";
|
|
61
64
|
AuditLogEvent[AuditLogEvent["AutoModerationRuleUpdate"] = 141] = "AutoModerationRuleUpdate";
|
|
62
65
|
AuditLogEvent[AuditLogEvent["AutoModerationRuleDelete"] = 142] = "AutoModerationRuleDelete";
|
|
@@ -688,10 +688,6 @@ export interface APIMessageSnapshot {
|
|
|
688
688
|
* Subset of the message object fields
|
|
689
689
|
*/
|
|
690
690
|
message: APIMessageSnapshotFields;
|
|
691
|
-
/**
|
|
692
|
-
* Id of the origin message's guild
|
|
693
|
-
*/
|
|
694
|
-
guild_id?: Snowflake;
|
|
695
691
|
}
|
|
696
692
|
export type APIMessageSnapshotFields = Pick<APIMessage, 'attachments' | 'content' | 'edited_timestamp' | 'embeds' | 'flags' | 'mention_roles' | 'mentions' | 'timestamp' | 'type' | 'sticker_items' | 'components' | 'stickers'>;
|
|
697
693
|
/**
|
|
@@ -897,7 +893,7 @@ export interface APIThreadMetadata {
|
|
|
897
893
|
/**
|
|
898
894
|
* Whether the thread is locked; when a thread is locked, only users with `MANAGE_THREADS` can unarchive it
|
|
899
895
|
*/
|
|
900
|
-
locked
|
|
896
|
+
locked: boolean;
|
|
901
897
|
/**
|
|
902
898
|
* Whether non-moderators can add other non-moderators to the thread; only available on private threads
|
|
903
899
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* - https://discord.com/developers/docs/topics/gateway-events
|
|
5
5
|
*/
|
|
6
6
|
import type { Snowflake } from '../index';
|
|
7
|
-
import type {
|
|
7
|
+
import type { APIThreadChannel, APIThreadMember } from './channel';
|
|
8
8
|
import type { APIEmoji } from './emoji';
|
|
9
9
|
import type { APIUser } from './user';
|
|
10
10
|
/**
|
|
@@ -340,7 +340,7 @@ export interface GatewayThreadListSync {
|
|
|
340
340
|
/**
|
|
341
341
|
* Array of the synced threads
|
|
342
342
|
*/
|
|
343
|
-
threads:
|
|
343
|
+
threads: APIThreadChannel[];
|
|
344
344
|
/**
|
|
345
345
|
* The member objects for the client user in each joined thread that was synced
|
|
346
346
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Types extracted from https://discord.com/developers/docs/resources/guild
|
|
3
3
|
*/
|
|
4
|
-
import type { GuildMemberFlags, Permissions, Snowflake } from '../index';
|
|
4
|
+
import type { GuildMemberFlags, Locale, LocaleString, Permissions, Snowflake } from '../index';
|
|
5
5
|
import type { APIEmoji, APIPartialEmoji } from './emoji';
|
|
6
6
|
import type { PresenceUpdateReceiveStatus } from './gateway';
|
|
7
7
|
import type { OAuth2Scopes } from './oauth2';
|
|
@@ -223,7 +223,7 @@ export interface APIGuild extends APIPartialGuild {
|
|
|
223
223
|
*
|
|
224
224
|
* @default "en-US"
|
|
225
225
|
*/
|
|
226
|
-
preferred_locale:
|
|
226
|
+
preferred_locale: LocaleString;
|
|
227
227
|
/**
|
|
228
228
|
* The id of the channel where admins and moderators of Community guilds receive notices from Discord
|
|
229
229
|
*/
|
|
@@ -277,6 +277,18 @@ export interface APIGuild extends APIPartialGuild {
|
|
|
277
277
|
*/
|
|
278
278
|
safety_alerts_channel_id: Snowflake | null;
|
|
279
279
|
}
|
|
280
|
+
/**
|
|
281
|
+
* https://discord.com/developers/docs/resources/guild#guild-object-guild-structure
|
|
282
|
+
*/
|
|
283
|
+
export interface APIPartialInteractionGuild extends Pick<APIGuild, 'features' | 'id'> {
|
|
284
|
+
/**
|
|
285
|
+
* The preferred locale of a Community guild; used in guild discovery and notices from Discord; defaults to "en-US"
|
|
286
|
+
*
|
|
287
|
+
* @unstable https://github.com/discord/discord-api-docs/issues/6938
|
|
288
|
+
* @default "en-US"
|
|
289
|
+
*/
|
|
290
|
+
locale: Locale;
|
|
291
|
+
}
|
|
280
292
|
/**
|
|
281
293
|
* https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level
|
|
282
294
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Snowflake } from '
|
|
1
|
+
import type { Snowflake } from '..';
|
|
2
2
|
import type { APIGuildMember } from './guild';
|
|
3
3
|
import type { APIUser } from './user';
|
|
4
4
|
interface APIGuildScheduledEventBase<Type extends GuildScheduledEventEntityType> {
|
|
@@ -66,6 +66,108 @@ interface APIGuildScheduledEventBase<Type extends GuildScheduledEventEntityType>
|
|
|
66
66
|
* The cover image of the scheduled event
|
|
67
67
|
*/
|
|
68
68
|
image?: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* The definition for how often this event should recur
|
|
71
|
+
*/
|
|
72
|
+
recurrence_rule: APIGuildScheduledEventRecurrenceRule | null;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-recurrence-rule-object-guild-scheduled-event-recurrence-rule-structure
|
|
76
|
+
*/
|
|
77
|
+
export interface APIGuildScheduledEventRecurrenceRule {
|
|
78
|
+
/**
|
|
79
|
+
* Starting time of the recurrence interval
|
|
80
|
+
*/
|
|
81
|
+
start: string;
|
|
82
|
+
/**
|
|
83
|
+
* Ending time of the recurrence interval
|
|
84
|
+
*/
|
|
85
|
+
end: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* How often the event occurs
|
|
88
|
+
*/
|
|
89
|
+
frequency: GuildScheduledEventRecurrenceRuleFrequency;
|
|
90
|
+
/**
|
|
91
|
+
* The spacing between the events, defined by `frequency`.
|
|
92
|
+
* For example, `frequency` of {@apilink GuildScheduledEventRecurrenceRuleFrequency#Weekly} and an `interval` of `2`
|
|
93
|
+
* would be "every-other week"
|
|
94
|
+
*/
|
|
95
|
+
interval: number;
|
|
96
|
+
/**
|
|
97
|
+
* Set of specific days within a week for the event to recur on
|
|
98
|
+
*/
|
|
99
|
+
by_weekday: GuildScheduledEventRecurrenceRuleWeekday[] | null;
|
|
100
|
+
/**
|
|
101
|
+
* List of specific days within a specific week (1-5) to recur on
|
|
102
|
+
*/
|
|
103
|
+
by_n_weekday: GuildScheduledEventRecurrenceRuleNWeekday[] | null;
|
|
104
|
+
/**
|
|
105
|
+
* Set of specific months to recur on
|
|
106
|
+
*/
|
|
107
|
+
by_month: GuildScheduledEventRecurrenceRuleMonth[] | null;
|
|
108
|
+
/**
|
|
109
|
+
* Set of specific dates within a month to recur on
|
|
110
|
+
*/
|
|
111
|
+
by_month_day: number[] | null;
|
|
112
|
+
/**
|
|
113
|
+
* Set of days within a year to recur on (1-364)
|
|
114
|
+
*/
|
|
115
|
+
by_year_day: number[] | null;
|
|
116
|
+
/**
|
|
117
|
+
* The total amount of times that the event is allowed to recur before stopping
|
|
118
|
+
*/
|
|
119
|
+
count: number | null;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-recurrence-rule-object-guild-scheduled-event-recurrence-rule-frequency
|
|
123
|
+
*/
|
|
124
|
+
export declare enum GuildScheduledEventRecurrenceRuleFrequency {
|
|
125
|
+
Yearly = 0,
|
|
126
|
+
Monthly = 1,
|
|
127
|
+
Weekly = 2,
|
|
128
|
+
Daily = 3
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-recurrence-rule-object-guild-scheduled-event-recurrence-rule-weekday
|
|
132
|
+
*/
|
|
133
|
+
export declare enum GuildScheduledEventRecurrenceRuleWeekday {
|
|
134
|
+
Monday = 0,
|
|
135
|
+
Tuesday = 1,
|
|
136
|
+
Wednesday = 2,
|
|
137
|
+
Thursday = 3,
|
|
138
|
+
Friday = 4,
|
|
139
|
+
Saturday = 5,
|
|
140
|
+
Sunday = 6
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-recurrence-rule-object-guild-scheduled-event-recurrence-rule-month
|
|
144
|
+
*/
|
|
145
|
+
export declare enum GuildScheduledEventRecurrenceRuleMonth {
|
|
146
|
+
January = 1,
|
|
147
|
+
February = 2,
|
|
148
|
+
March = 3,
|
|
149
|
+
April = 4,
|
|
150
|
+
May = 5,
|
|
151
|
+
June = 6,
|
|
152
|
+
July = 7,
|
|
153
|
+
August = 8,
|
|
154
|
+
September = 9,
|
|
155
|
+
October = 10,
|
|
156
|
+
November = 11,
|
|
157
|
+
December = 12
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-recurrence-rule-object-guild-scheduled-event-recurrence-rule-nweekday-structure
|
|
161
|
+
*/
|
|
162
|
+
export interface GuildScheduledEventRecurrenceRuleNWeekday {
|
|
163
|
+
/**
|
|
164
|
+
* The week to reoccur on.
|
|
165
|
+
*/
|
|
166
|
+
n: 1 | 2 | 3 | 4 | 5;
|
|
167
|
+
/**
|
|
168
|
+
* The day within the week to reoccur on
|
|
169
|
+
*/
|
|
170
|
+
day: GuildScheduledEventRecurrenceRuleWeekday;
|
|
69
171
|
}
|
|
70
172
|
export interface APIStageInstanceGuildScheduledEvent extends APIGuildScheduledEventBase<GuildScheduledEventEntityType.StageInstance> {
|
|
71
173
|
channel_id: Snowflake;
|
|
@@ -32,13 +32,13 @@ export interface APIEntitlement {
|
|
|
32
32
|
*/
|
|
33
33
|
deleted: boolean;
|
|
34
34
|
/**
|
|
35
|
-
* Start date at which the entitlement is valid.
|
|
35
|
+
* Start date at which the entitlement is valid.
|
|
36
36
|
*/
|
|
37
|
-
starts_at
|
|
37
|
+
starts_at: string | null;
|
|
38
38
|
/**
|
|
39
|
-
* Date at which the entitlement is no longer valid.
|
|
39
|
+
* Date at which the entitlement is no longer valid.
|
|
40
40
|
*/
|
|
41
|
-
ends_at
|
|
41
|
+
ends_at: string | null;
|
|
42
42
|
/**
|
|
43
43
|
* For consumable items, whether or not the entitlement has been consumed
|
|
44
44
|
*/
|
|
@@ -157,6 +157,8 @@ export interface APISubscription {
|
|
|
157
157
|
sku_ids: string[];
|
|
158
158
|
/** List of entitlements granted for this subscription */
|
|
159
159
|
entitlements_ids: string[];
|
|
160
|
+
/** List of SKUs that this user will be subscribed to at renewal */
|
|
161
|
+
renewal_sku_ids: Snowflake[] | null;
|
|
160
162
|
/** Start of the current subscription period */
|
|
161
163
|
current_period_start: string;
|
|
162
164
|
/** End of the current subscription period */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Types extracted from https://discord.com/developers/docs/resources/guild-template
|
|
3
3
|
*/
|
|
4
4
|
import type { Snowflake } from '../index';
|
|
5
|
-
import type { RESTPostAPIGuildsJSONBody } from '../rest';
|
|
5
|
+
import type { LocaleString, RESTPostAPIGuildsJSONBody } from '../rest';
|
|
6
6
|
import type { APIUser } from './user';
|
|
7
7
|
/**
|
|
8
8
|
* https://discord.com/developers/docs/resources/guild-template#guild-template-object
|
|
@@ -57,6 +57,6 @@ export interface APITemplate {
|
|
|
57
57
|
}
|
|
58
58
|
export interface APITemplateSerializedSourceGuild extends Omit<RESTPostAPIGuildsJSONBody, 'icon'> {
|
|
59
59
|
description: string | null;
|
|
60
|
-
preferred_locale:
|
|
60
|
+
preferred_locale: LocaleString;
|
|
61
61
|
icon_hash: string | null;
|
|
62
62
|
}
|
|
@@ -267,8 +267,11 @@ export interface APIConnection {
|
|
|
267
267
|
visibility: ConnectionVisibility;
|
|
268
268
|
}
|
|
269
269
|
export declare enum ConnectionService {
|
|
270
|
+
AmazonMusic = "amazon-music",
|
|
270
271
|
BattleNet = "battlenet",
|
|
272
|
+
Bluesky = "bluesky",
|
|
271
273
|
BungieNet = "bungie",
|
|
274
|
+
Crunchyroll = "crunchyroll",
|
|
272
275
|
Domain = "domain",
|
|
273
276
|
eBay = "ebay",
|
|
274
277
|
EpicGames = "epicgames",
|
|
@@ -276,6 +279,7 @@ export declare enum ConnectionService {
|
|
|
276
279
|
GitHub = "github",
|
|
277
280
|
Instagram = "instagram",
|
|
278
281
|
LeagueOfLegends = "leagueoflegends",
|
|
282
|
+
Mastodon = "mastodon",
|
|
279
283
|
PayPal = "paypal",
|
|
280
284
|
PlayStationNetwork = "playstation",
|
|
281
285
|
Reddit = "reddit",
|
|
@@ -127,8 +127,11 @@ var UserPremiumType;
|
|
|
127
127
|
})(UserPremiumType || (exports.UserPremiumType = UserPremiumType = {}));
|
|
128
128
|
var ConnectionService;
|
|
129
129
|
(function (ConnectionService) {
|
|
130
|
+
ConnectionService["AmazonMusic"] = "amazon-music";
|
|
130
131
|
ConnectionService["BattleNet"] = "battlenet";
|
|
132
|
+
ConnectionService["Bluesky"] = "bluesky";
|
|
131
133
|
ConnectionService["BungieNet"] = "bungie";
|
|
134
|
+
ConnectionService["Crunchyroll"] = "crunchyroll";
|
|
132
135
|
ConnectionService["Domain"] = "domain";
|
|
133
136
|
ConnectionService["eBay"] = "ebay";
|
|
134
137
|
ConnectionService["EpicGames"] = "epicgames";
|
|
@@ -136,6 +139,7 @@ var ConnectionService;
|
|
|
136
139
|
ConnectionService["GitHub"] = "github";
|
|
137
140
|
ConnectionService["Instagram"] = "instagram";
|
|
138
141
|
ConnectionService["LeagueOfLegends"] = "leagueoflegends";
|
|
142
|
+
ConnectionService["Mastodon"] = "mastodon";
|
|
139
143
|
ConnectionService["PayPal"] = "paypal";
|
|
140
144
|
ConnectionService["PlayStationNetwork"] = "playstation";
|
|
141
145
|
ConnectionService["Reddit"] = "reddit";
|
|
@@ -75,19 +75,11 @@ export type RESTGetAPIGuildScheduledEventResult = APIGuildScheduledEvent;
|
|
|
75
75
|
/**
|
|
76
76
|
* https://discord.com/developers/docs/resources/guild-scheduled-event#modify-guild-scheduled-event
|
|
77
77
|
*/
|
|
78
|
-
export type RESTPatchAPIGuildScheduledEventJSONBody = StrictPartial<RESTPostAPIGuildScheduledEventJSONBody
|
|
78
|
+
export type RESTPatchAPIGuildScheduledEventJSONBody = StrictPartial<Omit<RESTPostAPIGuildScheduledEventJSONBody, 'description' | 'entity_metadata' | 'recurrence_rule'>> & {
|
|
79
79
|
/**
|
|
80
80
|
* The status of the scheduled event
|
|
81
81
|
*/
|
|
82
82
|
status?: GuildScheduledEventStatus | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* The entity metadata of the scheduled event
|
|
85
|
-
*/
|
|
86
|
-
entity_metadata?: APIGuildScheduledEventEntityMetadata | null | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* The description of the guild event
|
|
89
|
-
*/
|
|
90
|
-
description?: string | null | undefined;
|
|
91
83
|
};
|
|
92
84
|
/**
|
|
93
85
|
* https://discord.com/developers/docs/resources/guild-scheduled-event#modify-guild-scheduled-event
|
|
@@ -77,6 +77,7 @@ export declare enum RESTJSONErrorCodes {
|
|
|
77
77
|
UnknownGuildTemplate = 10057,
|
|
78
78
|
UnknownDiscoverableServerCategory = 10059,
|
|
79
79
|
UnknownSticker = 10060,
|
|
80
|
+
UnknownStickerPack = 10061,
|
|
80
81
|
UnknownInteraction = 10062,
|
|
81
82
|
UnknownApplicationCommand = 10063,
|
|
82
83
|
UnknownVoiceState = 10065,
|
package/lib/types/rest/index.js
CHANGED
|
@@ -73,6 +73,7 @@ var RESTJSONErrorCodes;
|
|
|
73
73
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownGuildTemplate"] = 10057] = "UnknownGuildTemplate";
|
|
74
74
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownDiscoverableServerCategory"] = 10059] = "UnknownDiscoverableServerCategory";
|
|
75
75
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownSticker"] = 10060] = "UnknownSticker";
|
|
76
|
+
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownStickerPack"] = 10061] = "UnknownStickerPack";
|
|
76
77
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownInteraction"] = 10062] = "UnknownInteraction";
|
|
77
78
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownApplicationCommand"] = 10063] = "UnknownApplicationCommand";
|
|
78
79
|
RESTJSONErrorCodes[RESTJSONErrorCodes["UnknownVoiceState"] = 10065] = "UnknownVoiceState";
|
|
@@ -32,14 +32,22 @@ export interface RESTGetAPIEntitlementsQuery {
|
|
|
32
32
|
*/
|
|
33
33
|
guild_id?: Snowflake | undefined;
|
|
34
34
|
/**
|
|
35
|
-
* Whether ended entitlements should be omitted
|
|
35
|
+
* Whether ended entitlements should be omitted. Defaults to `false`, ended entitlements are included by default
|
|
36
36
|
*/
|
|
37
37
|
exclude_ended?: boolean | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Whether deleted entitlements should be omitted. Defaults to `true`, deleted entitlements are not included by default
|
|
40
|
+
*/
|
|
41
|
+
exclude_deleted?: boolean | undefined;
|
|
38
42
|
}
|
|
39
43
|
/**
|
|
40
44
|
* https://discord.com/developers/docs/monetization/entitlements#list-entitlements
|
|
41
45
|
*/
|
|
42
46
|
export type RESTGetAPIEntitlementsResult = APIEntitlement[];
|
|
47
|
+
/**
|
|
48
|
+
* https://discord.com/developers/docs/resources/entitlement#get-entitlement
|
|
49
|
+
*/
|
|
50
|
+
export type RESTGetAPIEntitlementResult = APIEntitlement;
|
|
43
51
|
/**
|
|
44
52
|
* https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement
|
|
45
53
|
*/
|
|
@@ -9,6 +9,10 @@ export type RESTGetAPIStickerResult = APISticker;
|
|
|
9
9
|
export interface RESTGetStickerPacksResult {
|
|
10
10
|
sticker_packs: APIStickerPack[];
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* https://discord.com/developers/docs/resources/sticker#get-sticker-pack
|
|
14
|
+
*/
|
|
15
|
+
export type RESTGetAPIStickerPack = APIStickerPack;
|
|
12
16
|
/**
|
|
13
17
|
* https://discord.com/developers/docs/resources/sticker#list-sticker-packs
|
|
14
18
|
*
|
|
@@ -117,6 +117,18 @@ export declare const FormattingPatterns: {
|
|
|
117
117
|
* The `timestamp` and `style` group properties are present on the `exec` result of this expression
|
|
118
118
|
*/
|
|
119
119
|
readonly StyledTimestamp: RegExp;
|
|
120
|
+
/**
|
|
121
|
+
* Regular expression for matching a guild navigation mention
|
|
122
|
+
*
|
|
123
|
+
* The `type` group property is present on the `exec` result of this expression
|
|
124
|
+
*/
|
|
125
|
+
readonly GuildNavigation: RegExp;
|
|
126
|
+
/**
|
|
127
|
+
* Regular expression for matching a linked role mention
|
|
128
|
+
*
|
|
129
|
+
* The `id` group property is present on the `exec` result of this expression
|
|
130
|
+
*/
|
|
131
|
+
readonly LinkedRole: RegExp;
|
|
120
132
|
};
|
|
121
133
|
export declare const GatewayVersion = "10";
|
|
122
134
|
/**
|
package/lib/types/utils/index.js
CHANGED
|
@@ -92,6 +92,18 @@ exports.FormattingPatterns = {
|
|
|
92
92
|
* The `timestamp` and `style` group properties are present on the `exec` result of this expression
|
|
93
93
|
*/
|
|
94
94
|
StyledTimestamp: /<t:(?<timestamp>-?\d{1,13}):(?<style>[DFRTdft])>/,
|
|
95
|
+
/**
|
|
96
|
+
* Regular expression for matching a guild navigation mention
|
|
97
|
+
*
|
|
98
|
+
* The `type` group property is present on the `exec` result of this expression
|
|
99
|
+
*/
|
|
100
|
+
GuildNavigation: /<id:(?<type>customize|browse|guide|linked-roles)>/,
|
|
101
|
+
/**
|
|
102
|
+
* Regular expression for matching a linked role mention
|
|
103
|
+
*
|
|
104
|
+
* The `id` group property is present on the `exec` result of this expression
|
|
105
|
+
*/
|
|
106
|
+
LinkedRole: /<id:linked-roles:(?<id>\d{17,20})>/,
|
|
95
107
|
};
|
|
96
108
|
/**
|
|
97
109
|
* Freezes the formatting patterns
|