dfx 1.0.14 → 1.0.15
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/Cache.d.ts.map +1 -1
- package/dist/Cache.js +4 -1
- package/dist/Cache.js.map +1 -1
- package/dist/DiscordGateway/DiscordWS.d.ts.map +1 -1
- package/dist/DiscordGateway/DiscordWS.js +1 -1
- package/dist/DiscordGateway/DiscordWS.js.map +1 -1
- package/dist/DiscordGateway/Sharder.d.ts.map +1 -1
- package/dist/DiscordGateway/Sharder.js +4 -1
- package/dist/DiscordGateway/Sharder.js.map +1 -1
- package/dist/DiscordREST/Generated.d.ts +1071 -30
- package/dist/DiscordREST/Generated.d.ts.map +1 -1
- package/dist/DiscordREST/Generated.js +190 -5
- package/dist/DiscordREST/Generated.js.map +1 -1
- package/dist/Interactions/gateway.d.ts.map +1 -1
- package/dist/Interactions/gateway.js +4 -1
- package/dist/Interactions/gateway.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
- package/src/Cache.ts +4 -3
- package/src/DiscordGateway/DiscordWS.ts +1 -3
- package/src/DiscordGateway/Sharder.ts +5 -2
- package/src/DiscordREST/Generated.ts +1329 -40
- package/src/Interactions/gateway.ts +4 -3
- package/src/version.ts +1 -1
|
@@ -7,39 +7,164 @@ export type SnowflakeType = string;
|
|
|
7
7
|
export type ApplicationTypes = 4;
|
|
8
8
|
export type Int53Type = number;
|
|
9
9
|
export interface UserAvatarDecorationResponse {
|
|
10
|
+
/**
|
|
11
|
+
* the avatar decoration hash
|
|
12
|
+
*/
|
|
10
13
|
readonly asset: string;
|
|
14
|
+
/**
|
|
15
|
+
* id of the avatar decoration's SKU
|
|
16
|
+
*/
|
|
11
17
|
readonly sku_id: SnowflakeType | null;
|
|
12
18
|
}
|
|
13
|
-
export
|
|
19
|
+
export declare const NameplatePalette: {
|
|
20
|
+
/**
|
|
21
|
+
* Crimson color palette
|
|
22
|
+
*/
|
|
23
|
+
readonly CRIMSON: "crimson";
|
|
24
|
+
/**
|
|
25
|
+
* Berry color palette
|
|
26
|
+
*/
|
|
27
|
+
readonly BERRY: "berry";
|
|
28
|
+
/**
|
|
29
|
+
* Sky color palette
|
|
30
|
+
*/
|
|
31
|
+
readonly SKY: "sky";
|
|
32
|
+
/**
|
|
33
|
+
* Teal color palette
|
|
34
|
+
*/
|
|
35
|
+
readonly TEAL: "teal";
|
|
36
|
+
/**
|
|
37
|
+
* Forest color palette
|
|
38
|
+
*/
|
|
39
|
+
readonly FOREST: "forest";
|
|
40
|
+
/**
|
|
41
|
+
* Bubble gum color palette
|
|
42
|
+
*/
|
|
43
|
+
readonly BUBBLE_GUM: "bubble_gum";
|
|
44
|
+
/**
|
|
45
|
+
* Violet color palette
|
|
46
|
+
*/
|
|
47
|
+
readonly VIOLET: "violet";
|
|
48
|
+
/**
|
|
49
|
+
* Cobalt color palette
|
|
50
|
+
*/
|
|
51
|
+
readonly COBALT: "cobalt";
|
|
52
|
+
/**
|
|
53
|
+
* Clover color palette
|
|
54
|
+
*/
|
|
55
|
+
readonly CLOVER: "clover";
|
|
56
|
+
/**
|
|
57
|
+
* Lemon color palette
|
|
58
|
+
*/
|
|
59
|
+
readonly LEMON: "lemon";
|
|
60
|
+
/**
|
|
61
|
+
* White color palette
|
|
62
|
+
*/
|
|
63
|
+
readonly WHITE: "white";
|
|
64
|
+
/**
|
|
65
|
+
* Black color palette
|
|
66
|
+
*/
|
|
67
|
+
readonly BLACK: "black";
|
|
68
|
+
};
|
|
69
|
+
export type NameplatePalette = (typeof NameplatePalette)[keyof typeof NameplatePalette];
|
|
14
70
|
export interface UserNameplateResponse {
|
|
71
|
+
/**
|
|
72
|
+
* ID of the nameplate SKU
|
|
73
|
+
*/
|
|
15
74
|
readonly sku_id: SnowflakeType | null;
|
|
75
|
+
/**
|
|
76
|
+
* Path to the nameplate asset
|
|
77
|
+
*/
|
|
16
78
|
readonly asset: string;
|
|
79
|
+
/**
|
|
80
|
+
* The label of this nameplate. Currently unused
|
|
81
|
+
*/
|
|
17
82
|
readonly label: string;
|
|
83
|
+
/**
|
|
84
|
+
* Background color of the nameplate
|
|
85
|
+
*/
|
|
18
86
|
readonly palette: NameplatePalette;
|
|
19
87
|
}
|
|
20
88
|
export interface UserCollectiblesResponse {
|
|
89
|
+
/**
|
|
90
|
+
* Object mapping of nameplate data
|
|
91
|
+
*/
|
|
21
92
|
readonly nameplate: UserNameplateResponse | null;
|
|
22
93
|
}
|
|
23
94
|
export interface UserPrimaryGuildResponse {
|
|
95
|
+
/**
|
|
96
|
+
* the id of the user's primary guild
|
|
97
|
+
*/
|
|
24
98
|
readonly identity_guild_id: SnowflakeType | null;
|
|
99
|
+
/**
|
|
100
|
+
* whether the user is displaying the primary guild's server tag
|
|
101
|
+
*/
|
|
25
102
|
readonly identity_enabled: boolean | null;
|
|
103
|
+
/**
|
|
104
|
+
* the text of the user's server tag, limited to 4 characters
|
|
105
|
+
*/
|
|
26
106
|
readonly tag: string | null;
|
|
107
|
+
/**
|
|
108
|
+
* the server tag badge hash
|
|
109
|
+
*/
|
|
27
110
|
readonly badge: string | null;
|
|
28
111
|
}
|
|
29
112
|
export interface UserResponse {
|
|
113
|
+
/**
|
|
114
|
+
* the user's id
|
|
115
|
+
*/
|
|
30
116
|
readonly id: SnowflakeType;
|
|
117
|
+
/**
|
|
118
|
+
* the user's username, not unique across the platform
|
|
119
|
+
*/
|
|
31
120
|
readonly username: string;
|
|
121
|
+
/**
|
|
122
|
+
* the user's avatar hash
|
|
123
|
+
*/
|
|
32
124
|
readonly avatar: string | null;
|
|
125
|
+
/**
|
|
126
|
+
* the user's Discord-tag
|
|
127
|
+
*/
|
|
33
128
|
readonly discriminator: string;
|
|
129
|
+
/**
|
|
130
|
+
* the public flags on a user's account
|
|
131
|
+
*/
|
|
34
132
|
readonly public_flags: number;
|
|
133
|
+
/**
|
|
134
|
+
* the flags on a user's account
|
|
135
|
+
*/
|
|
35
136
|
readonly flags: Int53Type;
|
|
137
|
+
/**
|
|
138
|
+
* whether the user belongs to an OAuth2 application
|
|
139
|
+
*/
|
|
36
140
|
readonly bot?: boolean | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* whether the user is an Official Discord System user (part of the urgent message system)
|
|
143
|
+
*/
|
|
37
144
|
readonly system?: boolean | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* the user's banner hash
|
|
147
|
+
*/
|
|
38
148
|
readonly banner?: string | null | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* the user's banner color encoded as an integer representation of hexadecimal color code
|
|
151
|
+
*/
|
|
39
152
|
readonly accent_color?: number | null | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* the user's display name, if it is set
|
|
155
|
+
*/
|
|
40
156
|
readonly global_name: string | null;
|
|
157
|
+
/**
|
|
158
|
+
* data for the user's avatar decoration
|
|
159
|
+
*/
|
|
41
160
|
readonly avatar_decoration_data?: UserAvatarDecorationResponse | null | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* data for the user's collectibles
|
|
163
|
+
*/
|
|
42
164
|
readonly collectibles?: UserCollectiblesResponse | null | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* the user's primary guild
|
|
167
|
+
*/
|
|
43
168
|
readonly primary_guild: UserPrimaryGuildResponse | null;
|
|
44
169
|
}
|
|
45
170
|
export declare const OAuth2Scopes: {
|
|
@@ -591,6 +716,7 @@ export interface PrivateApplicationResponse {
|
|
|
591
716
|
readonly event_webhooks_types?: ReadonlyArray<"APPLICATION_AUTHORIZED" | "APPLICATION_DEAUTHORIZED" | "ENTITLEMENT_CREATE" | "ENTITLEMENT_DELETE" | "ENTITLEMENT_UPDATE" | "GAME_DIRECT_MESSAGE_CREATE" | "GAME_DIRECT_MESSAGE_DELETE" | "GAME_DIRECT_MESSAGE_UPDATE" | "LOBBY_MESSAGE_CREATE" | "LOBBY_MESSAGE_DELETE" | "LOBBY_MESSAGE_UPDATE" | "QUEST_USER_ENROLLMENT"> | undefined;
|
|
592
717
|
readonly explicit_content_filter: ApplicationExplicitContentFilterTypes;
|
|
593
718
|
readonly team: TeamResponse | null;
|
|
719
|
+
readonly eligible_oauth2_scopes: ReadonlyArray<OAuth2Scopes>;
|
|
594
720
|
}
|
|
595
721
|
/**
|
|
596
722
|
* Ratelimit error object returned by the Discord API
|
|
@@ -670,6 +796,9 @@ export interface ApplicationFormPartial {
|
|
|
670
796
|
readonly role_connections_verification_url?: string | null | undefined;
|
|
671
797
|
readonly integration_types_config?: Record<string, unknown> | null | undefined;
|
|
672
798
|
readonly event_webhooks_status?: 1 | 2 | null | undefined;
|
|
799
|
+
/**
|
|
800
|
+
* Event webhooks URL for the app to receive webhook events
|
|
801
|
+
*/
|
|
673
802
|
readonly event_webhooks_url?: string | null | undefined;
|
|
674
803
|
readonly event_webhooks_types?: ReadonlyArray<"APPLICATION_AUTHORIZED" | "APPLICATION_DEAUTHORIZED" | "ENTITLEMENT_CREATE" | "ENTITLEMENT_DELETE" | "ENTITLEMENT_UPDATE" | "GAME_DIRECT_MESSAGE_CREATE" | "GAME_DIRECT_MESSAGE_DELETE" | "GAME_DIRECT_MESSAGE_UPDATE" | "LOBBY_MESSAGE_CREATE" | "LOBBY_MESSAGE_DELETE" | "LOBBY_MESSAGE_UPDATE" | "QUEST_USER_ENROLLMENT"> | null | undefined;
|
|
675
804
|
}
|
|
@@ -1047,6 +1176,17 @@ export interface ApplicationCommandSubcommandGroupOptionResponse {
|
|
|
1047
1176
|
readonly required?: boolean | undefined;
|
|
1048
1177
|
readonly options?: ReadonlyArray<ApplicationCommandSubcommandOptionResponse> | undefined;
|
|
1049
1178
|
}
|
|
1179
|
+
export declare const ApplicationCommandHandler: {
|
|
1180
|
+
/**
|
|
1181
|
+
* The app handles the interaction using an interaction token
|
|
1182
|
+
*/
|
|
1183
|
+
readonly APP_HANDLER: 1;
|
|
1184
|
+
/**
|
|
1185
|
+
* Discord handles the interaction by launching an Activity and sending a follow-up message without coordinating with the app
|
|
1186
|
+
*/
|
|
1187
|
+
readonly DISCORD_LAUNCH_ACTIVITY: 2;
|
|
1188
|
+
};
|
|
1189
|
+
export type ApplicationCommandHandler = (typeof ApplicationCommandHandler)[keyof typeof ApplicationCommandHandler];
|
|
1050
1190
|
export interface ApplicationCommandResponse {
|
|
1051
1191
|
readonly id: SnowflakeType;
|
|
1052
1192
|
readonly application_id: SnowflakeType;
|
|
@@ -1065,6 +1205,10 @@ export interface ApplicationCommandResponse {
|
|
|
1065
1205
|
readonly integration_types?: ReadonlyArray<ApplicationIntegrationType> | undefined;
|
|
1066
1206
|
readonly options?: ReadonlyArray<ApplicationCommandAttachmentOptionResponse | ApplicationCommandBooleanOptionResponse | ApplicationCommandChannelOptionResponse | ApplicationCommandIntegerOptionResponse | ApplicationCommandMentionableOptionResponse | ApplicationCommandNumberOptionResponse | ApplicationCommandRoleOptionResponse | ApplicationCommandStringOptionResponse | ApplicationCommandSubcommandGroupOptionResponse | ApplicationCommandSubcommandOptionResponse | ApplicationCommandUserOptionResponse> | undefined;
|
|
1067
1207
|
readonly nsfw?: boolean | undefined;
|
|
1208
|
+
/**
|
|
1209
|
+
* Determines whether the interaction is handled by the app's interactions handler or by Discord
|
|
1210
|
+
*/
|
|
1211
|
+
readonly handler?: ApplicationCommandHandler | undefined;
|
|
1068
1212
|
}
|
|
1069
1213
|
export type ListApplicationCommands200 = ReadonlyArray<ApplicationCommandResponse>;
|
|
1070
1214
|
export interface ApplicationCommandAttachmentOption {
|
|
@@ -1185,7 +1329,6 @@ export interface ApplicationCommandSubcommandGroupOption {
|
|
|
1185
1329
|
readonly required?: boolean | null | undefined;
|
|
1186
1330
|
readonly options?: ReadonlyArray<ApplicationCommandSubcommandOption> | null | undefined;
|
|
1187
1331
|
}
|
|
1188
|
-
export type ApplicationCommandHandler = number;
|
|
1189
1332
|
export interface ApplicationCommandUpdateRequest {
|
|
1190
1333
|
readonly name: string;
|
|
1191
1334
|
readonly name_localizations?: Record<string, unknown> | null | undefined;
|
|
@@ -1196,6 +1339,9 @@ export interface ApplicationCommandUpdateRequest {
|
|
|
1196
1339
|
readonly dm_permission?: boolean | null | undefined;
|
|
1197
1340
|
readonly contexts?: ReadonlyArray<InteractionContextType> | null | undefined;
|
|
1198
1341
|
readonly integration_types?: ReadonlyArray<ApplicationIntegrationType> | null | undefined;
|
|
1342
|
+
/**
|
|
1343
|
+
* Determines whether the interaction is handled by the app's interactions handler or by Discord
|
|
1344
|
+
*/
|
|
1199
1345
|
readonly handler?: ApplicationCommandHandler | null | undefined;
|
|
1200
1346
|
readonly type?: ApplicationCommandType | null | undefined;
|
|
1201
1347
|
readonly id?: SnowflakeType | null | undefined;
|
|
@@ -1212,6 +1358,9 @@ export interface ApplicationCommandCreateRequest {
|
|
|
1212
1358
|
readonly dm_permission?: boolean | null | undefined;
|
|
1213
1359
|
readonly contexts?: ReadonlyArray<InteractionContextType> | null | undefined;
|
|
1214
1360
|
readonly integration_types?: ReadonlyArray<ApplicationIntegrationType> | null | undefined;
|
|
1361
|
+
/**
|
|
1362
|
+
* Determines whether the interaction is handled by the app's interactions handler or by Discord
|
|
1363
|
+
*/
|
|
1215
1364
|
readonly handler?: ApplicationCommandHandler | null | undefined;
|
|
1216
1365
|
readonly type?: ApplicationCommandType | null | undefined;
|
|
1217
1366
|
}
|
|
@@ -1225,6 +1374,9 @@ export interface ApplicationCommandPatchRequestPartial {
|
|
|
1225
1374
|
readonly dm_permission?: boolean | null | undefined;
|
|
1226
1375
|
readonly contexts?: ReadonlyArray<InteractionContextType> | null | undefined;
|
|
1227
1376
|
readonly integration_types?: ReadonlyArray<ApplicationIntegrationType> | null | undefined;
|
|
1377
|
+
/**
|
|
1378
|
+
* Determines whether the interaction is handled by the app's interactions handler or by Discord
|
|
1379
|
+
*/
|
|
1228
1380
|
readonly handler?: ApplicationCommandHandler | null | undefined;
|
|
1229
1381
|
}
|
|
1230
1382
|
export interface EmojiResponse {
|
|
@@ -1291,10 +1443,29 @@ export interface EntitlementResponse {
|
|
|
1291
1443
|
readonly parent_id?: SnowflakeType | null | undefined;
|
|
1292
1444
|
}
|
|
1293
1445
|
export type GetEntitlements200 = ReadonlyArray<EntitlementResponse>;
|
|
1294
|
-
export
|
|
1446
|
+
export declare const EntitlementOwnerTypes: {
|
|
1447
|
+
/**
|
|
1448
|
+
* A guild subscription
|
|
1449
|
+
*/
|
|
1450
|
+
readonly GUILD: 1;
|
|
1451
|
+
/**
|
|
1452
|
+
* A user subscription
|
|
1453
|
+
*/
|
|
1454
|
+
readonly USER: 2;
|
|
1455
|
+
};
|
|
1456
|
+
export type EntitlementOwnerTypes = (typeof EntitlementOwnerTypes)[keyof typeof EntitlementOwnerTypes];
|
|
1295
1457
|
export interface CreateEntitlementRequestData {
|
|
1458
|
+
/**
|
|
1459
|
+
* ID of the SKU to grant the entitlement to
|
|
1460
|
+
*/
|
|
1296
1461
|
readonly sku_id: SnowflakeType;
|
|
1462
|
+
/**
|
|
1463
|
+
* ID of the guild or user to grant the entitlement to
|
|
1464
|
+
*/
|
|
1297
1465
|
readonly owner_id: SnowflakeType;
|
|
1466
|
+
/**
|
|
1467
|
+
* 1 for a guild subscription, 2 for a user subscription
|
|
1468
|
+
*/
|
|
1298
1469
|
readonly owner_type: EntitlementOwnerTypes;
|
|
1299
1470
|
}
|
|
1300
1471
|
export interface ListGuildApplicationCommandsParams {
|
|
@@ -1507,8 +1678,6 @@ export interface GuildChannelResponse {
|
|
|
1507
1678
|
readonly default_sort_order?: ThreadSortOrder | null | undefined;
|
|
1508
1679
|
readonly default_forum_layout?: ForumLayout | undefined;
|
|
1509
1680
|
readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined;
|
|
1510
|
-
readonly hd_streaming_until?: string | undefined;
|
|
1511
|
-
readonly hd_streaming_buyer_id?: SnowflakeType | undefined;
|
|
1512
1681
|
}
|
|
1513
1682
|
export interface PrivateChannelResponse {
|
|
1514
1683
|
readonly id: SnowflakeType;
|
|
@@ -1540,19 +1709,61 @@ export interface ThreadMetadataResponse {
|
|
|
1540
1709
|
readonly invitable?: boolean | undefined;
|
|
1541
1710
|
}
|
|
1542
1711
|
export interface GuildMemberResponse {
|
|
1712
|
+
/**
|
|
1713
|
+
* the member's guild avatar hash
|
|
1714
|
+
*/
|
|
1543
1715
|
readonly avatar: string | null;
|
|
1716
|
+
/**
|
|
1717
|
+
* data for the member's guild avatar decoration
|
|
1718
|
+
*/
|
|
1544
1719
|
readonly avatar_decoration_data?: UserAvatarDecorationResponse | null | undefined;
|
|
1720
|
+
/**
|
|
1721
|
+
* the member's guild banner hash
|
|
1722
|
+
*/
|
|
1545
1723
|
readonly banner: string | null;
|
|
1724
|
+
/**
|
|
1725
|
+
* when the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out
|
|
1726
|
+
*/
|
|
1546
1727
|
readonly communication_disabled_until: string | null;
|
|
1728
|
+
/**
|
|
1729
|
+
* guild member flags represented as a bit set, defaults to 0
|
|
1730
|
+
*/
|
|
1547
1731
|
readonly flags: number;
|
|
1732
|
+
/**
|
|
1733
|
+
* when the user joined the guild
|
|
1734
|
+
*/
|
|
1548
1735
|
readonly joined_at: string;
|
|
1736
|
+
/**
|
|
1737
|
+
* this user's guild nickname
|
|
1738
|
+
*/
|
|
1549
1739
|
readonly nick: string | null;
|
|
1740
|
+
/**
|
|
1741
|
+
* whether the user has not yet passed the guild's Membership Screening requirements
|
|
1742
|
+
*/
|
|
1550
1743
|
readonly pending: boolean;
|
|
1744
|
+
/**
|
|
1745
|
+
* when the user started boosting the guild
|
|
1746
|
+
*/
|
|
1551
1747
|
readonly premium_since: string | null;
|
|
1748
|
+
/**
|
|
1749
|
+
* array of role object ids
|
|
1750
|
+
*/
|
|
1552
1751
|
readonly roles: ReadonlyArray<SnowflakeType>;
|
|
1752
|
+
/**
|
|
1753
|
+
* data for the member's collectibles
|
|
1754
|
+
*/
|
|
1553
1755
|
readonly collectibles?: UserCollectiblesResponse | null | undefined;
|
|
1756
|
+
/**
|
|
1757
|
+
* the user this guild member represents
|
|
1758
|
+
*/
|
|
1554
1759
|
readonly user: UserResponse;
|
|
1760
|
+
/**
|
|
1761
|
+
* whether the user is muted in voice channels
|
|
1762
|
+
*/
|
|
1555
1763
|
readonly mute: boolean;
|
|
1764
|
+
/**
|
|
1765
|
+
* whether the user is deafened in voice channels
|
|
1766
|
+
*/
|
|
1556
1767
|
readonly deaf: boolean;
|
|
1557
1768
|
}
|
|
1558
1769
|
export interface ThreadMemberResponse {
|
|
@@ -1663,7 +1874,9 @@ export declare const InviteTypes: {
|
|
|
1663
1874
|
};
|
|
1664
1875
|
export type InviteTypes = (typeof InviteTypes)[keyof typeof InviteTypes];
|
|
1665
1876
|
export interface InviteChannelRecipientResponse {
|
|
1877
|
+
readonly id: SnowflakeType;
|
|
1666
1878
|
readonly username: string;
|
|
1879
|
+
readonly avatar: string | null;
|
|
1667
1880
|
}
|
|
1668
1881
|
export interface InviteChannelResponse {
|
|
1669
1882
|
readonly id: SnowflakeType;
|
|
@@ -1773,6 +1986,10 @@ export declare const GuildFeatures: {
|
|
|
1773
1986
|
* guild has disabled activity alerts in the configured safety alerts channel
|
|
1774
1987
|
*/
|
|
1775
1988
|
readonly RAID_ALERTS_DISABLED: "RAID_ALERTS_DISABLED";
|
|
1989
|
+
/**
|
|
1990
|
+
* guild has restricted member prune to administrators and the guild owner
|
|
1991
|
+
*/
|
|
1992
|
+
readonly PRUNE_REQUIRES_ADMIN: "PRUNE_REQUIRES_ADMIN";
|
|
1776
1993
|
/**
|
|
1777
1994
|
* guild is able to set role icons
|
|
1778
1995
|
*/
|
|
@@ -1900,30 +2117,221 @@ export declare const GuildScheduledEventEntityTypes: {
|
|
|
1900
2117
|
readonly EXTERNAL: 3;
|
|
1901
2118
|
};
|
|
1902
2119
|
export type GuildScheduledEventEntityTypes = (typeof GuildScheduledEventEntityTypes)[keyof typeof GuildScheduledEventEntityTypes];
|
|
2120
|
+
export declare const RecurrenceRuleFrequencies: {
|
|
2121
|
+
readonly DAILY: 3;
|
|
2122
|
+
readonly WEEKLY: 2;
|
|
2123
|
+
readonly MONTHLY: 1;
|
|
2124
|
+
readonly YEARLY: 0;
|
|
2125
|
+
};
|
|
2126
|
+
export type RecurrenceRuleFrequencies = (typeof RecurrenceRuleFrequencies)[keyof typeof RecurrenceRuleFrequencies];
|
|
2127
|
+
export declare const RecurrenceRuleWeekdays: {
|
|
2128
|
+
readonly MONDAY: 0;
|
|
2129
|
+
readonly TUESDAY: 1;
|
|
2130
|
+
readonly WEDNESDAY: 2;
|
|
2131
|
+
readonly THURSDAY: 3;
|
|
2132
|
+
readonly FRIDAY: 4;
|
|
2133
|
+
readonly SATURDAY: 5;
|
|
2134
|
+
readonly SUNDAY: 6;
|
|
2135
|
+
};
|
|
2136
|
+
export type RecurrenceRuleWeekdays = (typeof RecurrenceRuleWeekdays)[keyof typeof RecurrenceRuleWeekdays];
|
|
2137
|
+
export interface ByNWeekdayResponse {
|
|
2138
|
+
/**
|
|
2139
|
+
* The week to reoccur on (1-5, where 5 represents the last week)
|
|
2140
|
+
*/
|
|
2141
|
+
readonly n: number;
|
|
2142
|
+
/**
|
|
2143
|
+
* The day within the week to reoccur on
|
|
2144
|
+
*/
|
|
2145
|
+
readonly day: RecurrenceRuleWeekdays;
|
|
2146
|
+
}
|
|
2147
|
+
export declare const RecurrenceRuleMonths: {
|
|
2148
|
+
readonly JANUARY: 1;
|
|
2149
|
+
readonly FEBRUARY: 2;
|
|
2150
|
+
readonly MARCH: 3;
|
|
2151
|
+
readonly APRIL: 4;
|
|
2152
|
+
readonly MAY: 5;
|
|
2153
|
+
readonly JUNE: 6;
|
|
2154
|
+
readonly JULY: 7;
|
|
2155
|
+
readonly AUGUST: 8;
|
|
2156
|
+
readonly SEPTEMBER: 9;
|
|
2157
|
+
readonly OCTOBER: 10;
|
|
2158
|
+
readonly NOVEMBER: 11;
|
|
2159
|
+
readonly DECEMBER: 12;
|
|
2160
|
+
};
|
|
2161
|
+
export type RecurrenceRuleMonths = (typeof RecurrenceRuleMonths)[keyof typeof RecurrenceRuleMonths];
|
|
2162
|
+
export interface RecurrenceRuleResponse {
|
|
2163
|
+
/**
|
|
2164
|
+
* Starting time of the recurrence interval
|
|
2165
|
+
*/
|
|
2166
|
+
readonly start: string;
|
|
2167
|
+
/**
|
|
2168
|
+
* Ending time of the recurrence interval
|
|
2169
|
+
*/
|
|
2170
|
+
readonly end?: string | null | undefined;
|
|
2171
|
+
/**
|
|
2172
|
+
* How often the event occurs
|
|
2173
|
+
*/
|
|
2174
|
+
readonly frequency: RecurrenceRuleFrequencies;
|
|
2175
|
+
/**
|
|
2176
|
+
* The spacing between events, defined by frequency
|
|
2177
|
+
*/
|
|
2178
|
+
readonly interval: number;
|
|
2179
|
+
/**
|
|
2180
|
+
* Set of specific days within a week for the event to recur on
|
|
2181
|
+
*/
|
|
2182
|
+
readonly by_weekday: ReadonlyArray<RecurrenceRuleWeekdays> | null;
|
|
2183
|
+
/**
|
|
2184
|
+
* List of specific days within a specific week to recur on
|
|
2185
|
+
*/
|
|
2186
|
+
readonly by_n_weekday: ReadonlyArray<ByNWeekdayResponse> | null;
|
|
2187
|
+
/**
|
|
2188
|
+
* Set of specific months to recur on
|
|
2189
|
+
*/
|
|
2190
|
+
readonly by_month: ReadonlyArray<RecurrenceRuleMonths> | null;
|
|
2191
|
+
/**
|
|
2192
|
+
* Set of specific dates within a month to recur on
|
|
2193
|
+
*/
|
|
2194
|
+
readonly by_month_day: ReadonlyArray<number> | null;
|
|
2195
|
+
/**
|
|
2196
|
+
* Set of days within a year to recur on (1-364)
|
|
2197
|
+
*/
|
|
2198
|
+
readonly by_year_day?: ReadonlyArray<number> | null | undefined;
|
|
2199
|
+
/**
|
|
2200
|
+
* Total number of times the event is allowed to recur
|
|
2201
|
+
*/
|
|
2202
|
+
readonly count?: number | null | undefined;
|
|
2203
|
+
}
|
|
1903
2204
|
export type GuildScheduledEventPrivacyLevels = 2;
|
|
2205
|
+
export declare const GuildScheduledEventUserResponses: {
|
|
2206
|
+
/**
|
|
2207
|
+
* User is not interested in the event
|
|
2208
|
+
*/
|
|
2209
|
+
readonly UNINTERESTED: 0;
|
|
2210
|
+
/**
|
|
2211
|
+
* User is interested in the event
|
|
2212
|
+
*/
|
|
2213
|
+
readonly INTERESTED: 1;
|
|
2214
|
+
};
|
|
2215
|
+
export type GuildScheduledEventUserResponses = (typeof GuildScheduledEventUserResponses)[keyof typeof GuildScheduledEventUserResponses];
|
|
1904
2216
|
export interface ScheduledEventUserResponse {
|
|
2217
|
+
/**
|
|
2218
|
+
* ID of the scheduled event
|
|
2219
|
+
*/
|
|
1905
2220
|
readonly guild_scheduled_event_id: SnowflakeType;
|
|
2221
|
+
/**
|
|
2222
|
+
* ID of the scheduled event exception
|
|
2223
|
+
*/
|
|
2224
|
+
readonly guild_scheduled_event_exception_id?: SnowflakeType | null | undefined;
|
|
2225
|
+
/**
|
|
2226
|
+
* ID of the user
|
|
2227
|
+
*/
|
|
1906
2228
|
readonly user_id: SnowflakeType;
|
|
2229
|
+
/**
|
|
2230
|
+
* User object for the RSVP user
|
|
2231
|
+
*/
|
|
1907
2232
|
readonly user?: UserResponse | undefined;
|
|
2233
|
+
/**
|
|
2234
|
+
* Guild member object for the RSVP user
|
|
2235
|
+
*/
|
|
1908
2236
|
readonly member?: GuildMemberResponse | undefined;
|
|
2237
|
+
/**
|
|
2238
|
+
* User's RSVP status for the event
|
|
2239
|
+
*/
|
|
2240
|
+
readonly response: GuildScheduledEventUserResponses;
|
|
2241
|
+
}
|
|
2242
|
+
export interface GuildScheduledEventExceptionResponse {
|
|
2243
|
+
/**
|
|
2244
|
+
* ID of the scheduled event this exception belongs to
|
|
2245
|
+
*/
|
|
2246
|
+
readonly event_id: SnowflakeType;
|
|
2247
|
+
/**
|
|
2248
|
+
* ID of the event exception
|
|
2249
|
+
*/
|
|
2250
|
+
readonly event_exception_id: SnowflakeType;
|
|
2251
|
+
/**
|
|
2252
|
+
* Overridden start time of this occurrence
|
|
2253
|
+
*/
|
|
2254
|
+
readonly scheduled_start_time: string | null;
|
|
2255
|
+
/**
|
|
2256
|
+
* Overridden end time of this occurrence
|
|
2257
|
+
*/
|
|
2258
|
+
readonly scheduled_end_time: string | null;
|
|
2259
|
+
/**
|
|
2260
|
+
* Whether this occurrence is canceled
|
|
2261
|
+
*/
|
|
2262
|
+
readonly is_canceled: boolean;
|
|
1909
2263
|
}
|
|
1910
2264
|
export interface ScheduledEventResponse {
|
|
2265
|
+
/**
|
|
2266
|
+
* ID of the scheduled event
|
|
2267
|
+
*/
|
|
1911
2268
|
readonly id: SnowflakeType;
|
|
2269
|
+
/**
|
|
2270
|
+
* ID of the guild the scheduled event belongs to
|
|
2271
|
+
*/
|
|
1912
2272
|
readonly guild_id: SnowflakeType;
|
|
2273
|
+
/**
|
|
2274
|
+
* Name of the scheduled event
|
|
2275
|
+
*/
|
|
1913
2276
|
readonly name: string;
|
|
2277
|
+
/**
|
|
2278
|
+
* Description of the scheduled event
|
|
2279
|
+
*/
|
|
1914
2280
|
readonly description: string | null;
|
|
2281
|
+
/**
|
|
2282
|
+
* Channel ID in which the scheduled event will be hosted, or null if entity type is EXTERNAL
|
|
2283
|
+
*/
|
|
1915
2284
|
readonly channel_id: SnowflakeType | null;
|
|
2285
|
+
/**
|
|
2286
|
+
* ID of the user that created the scheduled event
|
|
2287
|
+
*/
|
|
1916
2288
|
readonly creator_id: SnowflakeType | null;
|
|
2289
|
+
/**
|
|
2290
|
+
* User that created the scheduled event
|
|
2291
|
+
*/
|
|
1917
2292
|
readonly creator?: UserResponse | undefined;
|
|
2293
|
+
/**
|
|
2294
|
+
* Cover image hash of the scheduled event
|
|
2295
|
+
*/
|
|
1918
2296
|
readonly image: string | null;
|
|
2297
|
+
/**
|
|
2298
|
+
* When the scheduled event will start
|
|
2299
|
+
*/
|
|
1919
2300
|
readonly scheduled_start_time: string;
|
|
2301
|
+
/**
|
|
2302
|
+
* When the scheduled event will end, or null if no end time
|
|
2303
|
+
*/
|
|
1920
2304
|
readonly scheduled_end_time: string | null;
|
|
2305
|
+
/**
|
|
2306
|
+
* Status of the scheduled event
|
|
2307
|
+
*/
|
|
1921
2308
|
readonly status: GuildScheduledEventStatuses;
|
|
2309
|
+
/**
|
|
2310
|
+
* Type of hosting entity associated with the scheduled event
|
|
2311
|
+
*/
|
|
1922
2312
|
readonly entity_type: GuildScheduledEventEntityTypes;
|
|
2313
|
+
/**
|
|
2314
|
+
* ID of the hosting entity associated with the scheduled event
|
|
2315
|
+
*/
|
|
1923
2316
|
readonly entity_id: SnowflakeType | null;
|
|
2317
|
+
/**
|
|
2318
|
+
* Recurrence rule for the scheduled event, or null if not recurring
|
|
2319
|
+
*/
|
|
2320
|
+
readonly recurrence_rule: RecurrenceRuleResponse | null;
|
|
2321
|
+
/**
|
|
2322
|
+
* Number of users subscribed to the scheduled event
|
|
2323
|
+
*/
|
|
1924
2324
|
readonly user_count?: number | undefined;
|
|
2325
|
+
/**
|
|
2326
|
+
* Privacy level of the scheduled event
|
|
2327
|
+
*/
|
|
1925
2328
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
1926
2329
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
|
|
2330
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>;
|
|
2331
|
+
}
|
|
2332
|
+
export interface GuildLivelinessResponse {
|
|
2333
|
+
readonly msg_activity_bins: ReadonlyArray<number>;
|
|
2334
|
+
readonly last_updated_ts?: string | null | undefined;
|
|
1927
2335
|
}
|
|
1928
2336
|
export interface GuildRoleColorsResponse {
|
|
1929
2337
|
readonly primary_color: number;
|
|
@@ -1956,6 +2364,9 @@ export interface GuildInviteResponse {
|
|
|
1956
2364
|
readonly target_user?: UserResponse | undefined;
|
|
1957
2365
|
readonly target_application?: InviteApplicationResponse | undefined;
|
|
1958
2366
|
readonly guild_scheduled_event?: ScheduledEventResponse | undefined;
|
|
2367
|
+
readonly target_channel_id?: SnowflakeType | undefined;
|
|
2368
|
+
readonly target_message_id?: SnowflakeType | undefined;
|
|
2369
|
+
readonly liveliness?: GuildLivelinessResponse | null | undefined;
|
|
1959
2370
|
readonly uses?: number | undefined;
|
|
1960
2371
|
readonly max_uses?: number | undefined;
|
|
1961
2372
|
readonly temporary?: boolean | undefined;
|
|
@@ -1976,6 +2387,7 @@ export interface CreateGuildInviteRequest {
|
|
|
1976
2387
|
readonly target_user_id?: SnowflakeType | null | undefined;
|
|
1977
2388
|
readonly target_application_id?: SnowflakeType | null | undefined;
|
|
1978
2389
|
readonly target_type?: 1 | 2 | null | undefined;
|
|
2390
|
+
readonly role_ids?: string | ReadonlyArray<SnowflakeType> | null | undefined;
|
|
1979
2391
|
}
|
|
1980
2392
|
export type CreateChannelInviteRequest = CreateGroupDMInviteRequest | CreateGuildInviteRequest;
|
|
1981
2393
|
export type CreateChannelInvite200 = FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse;
|
|
@@ -2447,7 +2859,7 @@ export interface MessageActivityResponse {
|
|
|
2447
2859
|
readonly type: ActivityActionTypes;
|
|
2448
2860
|
readonly party_id?: string | undefined;
|
|
2449
2861
|
}
|
|
2450
|
-
export interface
|
|
2862
|
+
export interface BasicApplicationResponseWithBot {
|
|
2451
2863
|
readonly id: SnowflakeType;
|
|
2452
2864
|
readonly name: string;
|
|
2453
2865
|
readonly icon: string | null;
|
|
@@ -2531,29 +2943,74 @@ export interface MessageReactionEmojiResponse {
|
|
|
2531
2943
|
readonly animated?: boolean | undefined;
|
|
2532
2944
|
}
|
|
2533
2945
|
export interface PollMediaResponse {
|
|
2946
|
+
/**
|
|
2947
|
+
* The text of the field
|
|
2948
|
+
*/
|
|
2534
2949
|
readonly text?: string | undefined;
|
|
2950
|
+
/**
|
|
2951
|
+
* The emoji of the field
|
|
2952
|
+
*/
|
|
2535
2953
|
readonly emoji?: MessageReactionEmojiResponse | undefined;
|
|
2536
2954
|
}
|
|
2537
2955
|
export interface PollAnswerResponse {
|
|
2956
|
+
/**
|
|
2957
|
+
* The ID of the answer
|
|
2958
|
+
*/
|
|
2538
2959
|
readonly answer_id: number;
|
|
2960
|
+
/**
|
|
2961
|
+
* The data of the answer
|
|
2962
|
+
*/
|
|
2539
2963
|
readonly poll_media: PollMediaResponse;
|
|
2540
2964
|
}
|
|
2541
|
-
export type PollLayoutTypes =
|
|
2965
|
+
export type PollLayoutTypes = 1;
|
|
2542
2966
|
export interface PollResultsEntryResponse {
|
|
2967
|
+
/**
|
|
2968
|
+
* The answer_id
|
|
2969
|
+
*/
|
|
2543
2970
|
readonly id: number;
|
|
2971
|
+
/**
|
|
2972
|
+
* The number of votes for this answer
|
|
2973
|
+
*/
|
|
2544
2974
|
readonly count: number;
|
|
2975
|
+
/**
|
|
2976
|
+
* Whether the current user voted for this answer
|
|
2977
|
+
*/
|
|
2545
2978
|
readonly me_voted: boolean;
|
|
2546
2979
|
}
|
|
2547
2980
|
export interface PollResultsResponse {
|
|
2981
|
+
/**
|
|
2982
|
+
* The counts for each answer
|
|
2983
|
+
*/
|
|
2548
2984
|
readonly answer_counts: ReadonlyArray<PollResultsEntryResponse>;
|
|
2985
|
+
/**
|
|
2986
|
+
* Whether the votes have been precisely counted
|
|
2987
|
+
*/
|
|
2549
2988
|
readonly is_finalized: boolean;
|
|
2550
2989
|
}
|
|
2551
2990
|
export interface PollResponse {
|
|
2991
|
+
/**
|
|
2992
|
+
* The question of the poll. Only `text` is supported.
|
|
2993
|
+
*/
|
|
2552
2994
|
readonly question: PollMediaResponse;
|
|
2995
|
+
/**
|
|
2996
|
+
* Each of the answers available in the poll
|
|
2997
|
+
*/
|
|
2553
2998
|
readonly answers: ReadonlyArray<PollAnswerResponse>;
|
|
2999
|
+
/**
|
|
3000
|
+
* The time when the poll ends
|
|
3001
|
+
*/
|
|
2554
3002
|
readonly expiry: string;
|
|
3003
|
+
/**
|
|
3004
|
+
* Whether a user can select multiple answers
|
|
3005
|
+
*/
|
|
2555
3006
|
readonly allow_multiselect: boolean;
|
|
3007
|
+
/**
|
|
3008
|
+
* The layout type of the poll
|
|
3009
|
+
*/
|
|
2556
3010
|
readonly layout_type: PollLayoutTypes;
|
|
3011
|
+
/**
|
|
3012
|
+
* The results of the poll
|
|
3013
|
+
*/
|
|
2557
3014
|
readonly results: PollResultsResponse;
|
|
2558
3015
|
}
|
|
2559
3016
|
export declare const MessageShareCustomUserThemeBaseTheme: {
|
|
@@ -2627,6 +3084,9 @@ export interface MinimalContentMessageResponse {
|
|
|
2627
3084
|
export interface MessageSnapshotResponse {
|
|
2628
3085
|
readonly message: MinimalContentMessageResponse;
|
|
2629
3086
|
}
|
|
3087
|
+
export interface MessageLobbyMemberResponse {
|
|
3088
|
+
readonly additional_name: string;
|
|
3089
|
+
}
|
|
2630
3090
|
export interface MessageReactionCountDetailsResponse {
|
|
2631
3091
|
readonly burst: number;
|
|
2632
3092
|
readonly normal: number;
|
|
@@ -2660,7 +3120,7 @@ export interface BasicMessageResponse {
|
|
|
2660
3120
|
readonly tts: boolean;
|
|
2661
3121
|
readonly call?: MessageCallResponse | undefined;
|
|
2662
3122
|
readonly activity?: MessageActivityResponse | undefined;
|
|
2663
|
-
readonly application?:
|
|
3123
|
+
readonly application?: BasicApplicationResponseWithBot | undefined;
|
|
2664
3124
|
readonly application_id?: SnowflakeType | undefined;
|
|
2665
3125
|
readonly interaction?: MessageInteractionResponse | undefined;
|
|
2666
3126
|
readonly nonce?: number | string | undefined;
|
|
@@ -2676,6 +3136,7 @@ export interface BasicMessageResponse {
|
|
|
2676
3136
|
readonly shared_client_theme?: CustomClientThemeResponse | undefined;
|
|
2677
3137
|
readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | undefined;
|
|
2678
3138
|
readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | undefined;
|
|
3139
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined;
|
|
2679
3140
|
}
|
|
2680
3141
|
export interface MessageResponse {
|
|
2681
3142
|
readonly type: MessageType;
|
|
@@ -2698,7 +3159,7 @@ export interface MessageResponse {
|
|
|
2698
3159
|
readonly tts: boolean;
|
|
2699
3160
|
readonly call?: MessageCallResponse | undefined;
|
|
2700
3161
|
readonly activity?: MessageActivityResponse | undefined;
|
|
2701
|
-
readonly application?:
|
|
3162
|
+
readonly application?: BasicApplicationResponseWithBot | undefined;
|
|
2702
3163
|
readonly application_id?: SnowflakeType | undefined;
|
|
2703
3164
|
readonly interaction?: MessageInteractionResponse | undefined;
|
|
2704
3165
|
readonly nonce?: number | string | undefined;
|
|
@@ -2714,6 +3175,7 @@ export interface MessageResponse {
|
|
|
2714
3175
|
readonly shared_client_theme?: CustomClientThemeResponse | undefined;
|
|
2715
3176
|
readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | undefined;
|
|
2716
3177
|
readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | undefined;
|
|
3178
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined;
|
|
2717
3179
|
readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined;
|
|
2718
3180
|
readonly referenced_message?: BasicMessageResponse | null | undefined;
|
|
2719
3181
|
}
|
|
@@ -2954,34 +3416,83 @@ export interface MessageAttachmentRequest {
|
|
|
2954
3416
|
readonly duration_secs?: number | null | undefined;
|
|
2955
3417
|
readonly waveform?: string | null | undefined;
|
|
2956
3418
|
readonly title?: string | null | undefined;
|
|
3419
|
+
readonly is_spoiler?: boolean | null | undefined;
|
|
2957
3420
|
readonly is_remix?: boolean | null | undefined;
|
|
2958
3421
|
}
|
|
2959
3422
|
export interface PollEmoji {
|
|
3423
|
+
/**
|
|
3424
|
+
* The ID of the custom emoji
|
|
3425
|
+
*/
|
|
2960
3426
|
readonly id?: SnowflakeType | null | undefined;
|
|
3427
|
+
/**
|
|
3428
|
+
* The name of the emoji, or the unicode emoji character
|
|
3429
|
+
*/
|
|
2961
3430
|
readonly name?: string | null | undefined;
|
|
3431
|
+
/**
|
|
3432
|
+
* Whether the emoji is animated
|
|
3433
|
+
*/
|
|
2962
3434
|
readonly animated?: boolean | null | undefined;
|
|
2963
3435
|
}
|
|
2964
3436
|
export interface PollMedia {
|
|
3437
|
+
/**
|
|
3438
|
+
* The text of the field
|
|
3439
|
+
*/
|
|
2965
3440
|
readonly text?: string | null | undefined;
|
|
3441
|
+
/**
|
|
3442
|
+
* The emoji of the field
|
|
3443
|
+
*/
|
|
2966
3444
|
readonly emoji?: PollEmoji | null | undefined;
|
|
2967
3445
|
}
|
|
2968
3446
|
export interface PollEmojiCreateRequest {
|
|
3447
|
+
/**
|
|
3448
|
+
* The ID of the custom emoji
|
|
3449
|
+
*/
|
|
2969
3450
|
readonly id?: SnowflakeType | null | undefined;
|
|
3451
|
+
/**
|
|
3452
|
+
* The name of the emoji, or the unicode emoji character
|
|
3453
|
+
*/
|
|
2970
3454
|
readonly name?: string | null | undefined;
|
|
3455
|
+
/**
|
|
3456
|
+
* Whether the emoji is animated
|
|
3457
|
+
*/
|
|
2971
3458
|
readonly animated?: boolean | null | undefined;
|
|
2972
3459
|
}
|
|
2973
3460
|
export interface PollMediaCreateRequest {
|
|
3461
|
+
/**
|
|
3462
|
+
* The text of the field
|
|
3463
|
+
*/
|
|
2974
3464
|
readonly text?: string | null | undefined;
|
|
3465
|
+
/**
|
|
3466
|
+
* The emoji of the field
|
|
3467
|
+
*/
|
|
2975
3468
|
readonly emoji?: PollEmojiCreateRequest | null | undefined;
|
|
2976
3469
|
}
|
|
2977
3470
|
export interface PollAnswerCreateRequest {
|
|
3471
|
+
/**
|
|
3472
|
+
* The data of the answer
|
|
3473
|
+
*/
|
|
2978
3474
|
readonly poll_media: PollMediaCreateRequest;
|
|
2979
3475
|
}
|
|
2980
3476
|
export interface PollCreateRequest {
|
|
3477
|
+
/**
|
|
3478
|
+
* The question of the poll. Only `text` is supported.
|
|
3479
|
+
*/
|
|
2981
3480
|
readonly question: PollMedia;
|
|
3481
|
+
/**
|
|
3482
|
+
* Each of the answers available in the poll, up to 10
|
|
3483
|
+
*/
|
|
2982
3484
|
readonly answers: ReadonlyArray<PollAnswerCreateRequest>;
|
|
3485
|
+
/**
|
|
3486
|
+
* Whether a user can select multiple answers
|
|
3487
|
+
*/
|
|
2983
3488
|
readonly allow_multiselect?: boolean | null | undefined;
|
|
3489
|
+
/**
|
|
3490
|
+
* The layout type of the poll. Defaults to... DEFAULT!
|
|
3491
|
+
*/
|
|
2984
3492
|
readonly layout_type?: PollLayoutTypes | null | undefined;
|
|
3493
|
+
/**
|
|
3494
|
+
* Number of hours the poll should be open for, up to 32 days. Defaults to 24
|
|
3495
|
+
*/
|
|
2985
3496
|
readonly duration?: number | null | undefined;
|
|
2986
3497
|
}
|
|
2987
3498
|
export interface CustomClientThemeShareRequest {
|
|
@@ -3475,8 +3986,6 @@ export interface GuildTemplateChannelTags {
|
|
|
3475
3986
|
readonly emoji_name: string | null;
|
|
3476
3987
|
readonly moderated: boolean | null;
|
|
3477
3988
|
}
|
|
3478
|
-
export interface IconEmojiResponse {
|
|
3479
|
-
}
|
|
3480
3989
|
export interface GuildTemplateChannelResponse {
|
|
3481
3990
|
readonly id: number | null;
|
|
3482
3991
|
readonly type: 0 | 2 | 4 | 15;
|
|
@@ -3497,7 +4006,6 @@ export interface GuildTemplateChannelResponse {
|
|
|
3497
4006
|
readonly default_sort_order: ThreadSortOrder | null;
|
|
3498
4007
|
readonly default_forum_layout: ForumLayout | null;
|
|
3499
4008
|
readonly default_tag_setting: ThreadSearchTagSetting | null;
|
|
3500
|
-
readonly icon_emoji: IconEmojiResponse | null;
|
|
3501
4009
|
readonly theme_color: number | null;
|
|
3502
4010
|
}
|
|
3503
4011
|
export interface GuildTemplateSnapshotResponse {
|
|
@@ -3542,7 +4050,6 @@ export interface GuildRoleTagsResponse {
|
|
|
3542
4050
|
export interface GuildRoleResponse {
|
|
3543
4051
|
readonly id: SnowflakeType;
|
|
3544
4052
|
readonly name: string;
|
|
3545
|
-
readonly description: string | null;
|
|
3546
4053
|
readonly permissions: string;
|
|
3547
4054
|
readonly position: number;
|
|
3548
4055
|
readonly color: number;
|
|
@@ -3586,7 +4093,13 @@ export declare const PremiumGuildTiers: {
|
|
|
3586
4093
|
};
|
|
3587
4094
|
export type PremiumGuildTiers = (typeof PremiumGuildTiers)[keyof typeof PremiumGuildTiers];
|
|
3588
4095
|
export interface GuildIncidentsDataResponse {
|
|
4096
|
+
/**
|
|
4097
|
+
* When invites get enabled again
|
|
4098
|
+
*/
|
|
3589
4099
|
readonly invites_disabled_until: string | null;
|
|
4100
|
+
/**
|
|
4101
|
+
* When direct messages get enabled again
|
|
4102
|
+
*/
|
|
3590
4103
|
readonly dms_disabled_until: string | null;
|
|
3591
4104
|
}
|
|
3592
4105
|
export interface GuildWithCountsResponse {
|
|
@@ -3773,6 +4286,18 @@ export declare const AuditLogActionTypes: {
|
|
|
3773
4286
|
readonly HOME_SETTINGS_UPDATE: 191;
|
|
3774
4287
|
readonly VOICE_CHANNEL_STATUS_CREATE: 192;
|
|
3775
4288
|
readonly VOICE_CHANNEL_STATUS_DELETE: 193;
|
|
4289
|
+
/**
|
|
4290
|
+
* Scheduled event exception was created
|
|
4291
|
+
*/
|
|
4292
|
+
readonly GUILD_SCHEDULED_EVENT_EXCEPTION_CREATE: 200;
|
|
4293
|
+
/**
|
|
4294
|
+
* Scheduled event exception was updated
|
|
4295
|
+
*/
|
|
4296
|
+
readonly GUILD_SCHEDULED_EVENT_EXCEPTION_UPDATE: 201;
|
|
4297
|
+
/**
|
|
4298
|
+
* Scheduled event exception was deleted
|
|
4299
|
+
*/
|
|
4300
|
+
readonly GUILD_SCHEDULED_EVENT_EXCEPTION_DELETE: 202;
|
|
3776
4301
|
readonly GUILD_PROFILE_UPDATE: 211;
|
|
3777
4302
|
};
|
|
3778
4303
|
export type AuditLogActionTypes = (typeof AuditLogActionTypes)[keyof typeof AuditLogActionTypes];
|
|
@@ -3827,67 +4352,220 @@ export interface PartialGuildSubscriptionIntegrationResponse {
|
|
|
3827
4352
|
readonly account: AccountResponse;
|
|
3828
4353
|
}
|
|
3829
4354
|
export interface EntityMetadataExternalResponse {
|
|
4355
|
+
/**
|
|
4356
|
+
* Location of the external event
|
|
4357
|
+
*/
|
|
3830
4358
|
readonly location: string;
|
|
3831
4359
|
}
|
|
3832
4360
|
export interface ExternalScheduledEventResponse {
|
|
4361
|
+
/**
|
|
4362
|
+
* ID of the scheduled event
|
|
4363
|
+
*/
|
|
3833
4364
|
readonly id: SnowflakeType;
|
|
4365
|
+
/**
|
|
4366
|
+
* ID of the guild the scheduled event belongs to
|
|
4367
|
+
*/
|
|
3834
4368
|
readonly guild_id: SnowflakeType;
|
|
4369
|
+
/**
|
|
4370
|
+
* Name of the scheduled event
|
|
4371
|
+
*/
|
|
3835
4372
|
readonly name: string;
|
|
4373
|
+
/**
|
|
4374
|
+
* Description of the scheduled event
|
|
4375
|
+
*/
|
|
3836
4376
|
readonly description: string | null;
|
|
4377
|
+
/**
|
|
4378
|
+
* Channel ID in which the scheduled event will be hosted, or null if entity type is EXTERNAL
|
|
4379
|
+
*/
|
|
3837
4380
|
readonly channel_id: SnowflakeType | null;
|
|
4381
|
+
/**
|
|
4382
|
+
* ID of the user that created the scheduled event
|
|
4383
|
+
*/
|
|
3838
4384
|
readonly creator_id: SnowflakeType | null;
|
|
4385
|
+
/**
|
|
4386
|
+
* User that created the scheduled event
|
|
4387
|
+
*/
|
|
3839
4388
|
readonly creator?: UserResponse | undefined;
|
|
4389
|
+
/**
|
|
4390
|
+
* Cover image hash of the scheduled event
|
|
4391
|
+
*/
|
|
3840
4392
|
readonly image: string | null;
|
|
4393
|
+
/**
|
|
4394
|
+
* When the scheduled event will start
|
|
4395
|
+
*/
|
|
3841
4396
|
readonly scheduled_start_time: string;
|
|
4397
|
+
/**
|
|
4398
|
+
* When the scheduled event will end, or null if no end time
|
|
4399
|
+
*/
|
|
3842
4400
|
readonly scheduled_end_time: string | null;
|
|
4401
|
+
/**
|
|
4402
|
+
* Status of the scheduled event
|
|
4403
|
+
*/
|
|
3843
4404
|
readonly status: GuildScheduledEventStatuses;
|
|
4405
|
+
/**
|
|
4406
|
+
* Type of hosting entity associated with the scheduled event
|
|
4407
|
+
*/
|
|
3844
4408
|
readonly entity_type: 3;
|
|
4409
|
+
/**
|
|
4410
|
+
* ID of the hosting entity associated with the scheduled event
|
|
4411
|
+
*/
|
|
3845
4412
|
readonly entity_id: SnowflakeType | null;
|
|
4413
|
+
/**
|
|
4414
|
+
* Recurrence rule for the scheduled event, or null if not recurring
|
|
4415
|
+
*/
|
|
4416
|
+
readonly recurrence_rule: RecurrenceRuleResponse | null;
|
|
4417
|
+
/**
|
|
4418
|
+
* Number of users subscribed to the scheduled event
|
|
4419
|
+
*/
|
|
3846
4420
|
readonly user_count?: number | undefined;
|
|
4421
|
+
/**
|
|
4422
|
+
* Privacy level of the scheduled event
|
|
4423
|
+
*/
|
|
3847
4424
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
3848
4425
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
|
|
4426
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>;
|
|
3849
4427
|
readonly entity_metadata: EntityMetadataExternalResponse;
|
|
3850
4428
|
}
|
|
3851
4429
|
export interface EntityMetadataStageInstanceResponse {
|
|
3852
4430
|
}
|
|
3853
4431
|
export interface StageScheduledEventResponse {
|
|
4432
|
+
/**
|
|
4433
|
+
* ID of the scheduled event
|
|
4434
|
+
*/
|
|
3854
4435
|
readonly id: SnowflakeType;
|
|
4436
|
+
/**
|
|
4437
|
+
* ID of the guild the scheduled event belongs to
|
|
4438
|
+
*/
|
|
3855
4439
|
readonly guild_id: SnowflakeType;
|
|
4440
|
+
/**
|
|
4441
|
+
* Name of the scheduled event
|
|
4442
|
+
*/
|
|
3856
4443
|
readonly name: string;
|
|
4444
|
+
/**
|
|
4445
|
+
* Description of the scheduled event
|
|
4446
|
+
*/
|
|
3857
4447
|
readonly description: string | null;
|
|
4448
|
+
/**
|
|
4449
|
+
* Channel ID in which the scheduled event will be hosted, or null if entity type is EXTERNAL
|
|
4450
|
+
*/
|
|
3858
4451
|
readonly channel_id: SnowflakeType | null;
|
|
4452
|
+
/**
|
|
4453
|
+
* ID of the user that created the scheduled event
|
|
4454
|
+
*/
|
|
3859
4455
|
readonly creator_id: SnowflakeType | null;
|
|
4456
|
+
/**
|
|
4457
|
+
* User that created the scheduled event
|
|
4458
|
+
*/
|
|
3860
4459
|
readonly creator?: UserResponse | undefined;
|
|
4460
|
+
/**
|
|
4461
|
+
* Cover image hash of the scheduled event
|
|
4462
|
+
*/
|
|
3861
4463
|
readonly image: string | null;
|
|
4464
|
+
/**
|
|
4465
|
+
* When the scheduled event will start
|
|
4466
|
+
*/
|
|
3862
4467
|
readonly scheduled_start_time: string;
|
|
4468
|
+
/**
|
|
4469
|
+
* When the scheduled event will end, or null if no end time
|
|
4470
|
+
*/
|
|
3863
4471
|
readonly scheduled_end_time: string | null;
|
|
4472
|
+
/**
|
|
4473
|
+
* Status of the scheduled event
|
|
4474
|
+
*/
|
|
3864
4475
|
readonly status: GuildScheduledEventStatuses;
|
|
4476
|
+
/**
|
|
4477
|
+
* Type of hosting entity associated with the scheduled event
|
|
4478
|
+
*/
|
|
3865
4479
|
readonly entity_type: 1;
|
|
4480
|
+
/**
|
|
4481
|
+
* ID of the hosting entity associated with the scheduled event
|
|
4482
|
+
*/
|
|
3866
4483
|
readonly entity_id: SnowflakeType | null;
|
|
4484
|
+
/**
|
|
4485
|
+
* Recurrence rule for the scheduled event, or null if not recurring
|
|
4486
|
+
*/
|
|
4487
|
+
readonly recurrence_rule: RecurrenceRuleResponse | null;
|
|
4488
|
+
/**
|
|
4489
|
+
* Number of users subscribed to the scheduled event
|
|
4490
|
+
*/
|
|
3867
4491
|
readonly user_count?: number | undefined;
|
|
4492
|
+
/**
|
|
4493
|
+
* Privacy level of the scheduled event
|
|
4494
|
+
*/
|
|
3868
4495
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
3869
4496
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
|
|
4497
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>;
|
|
3870
4498
|
readonly entity_metadata: EntityMetadataStageInstanceResponse | null;
|
|
3871
4499
|
}
|
|
3872
4500
|
export interface EntityMetadataVoiceResponse {
|
|
3873
4501
|
}
|
|
3874
4502
|
export interface VoiceScheduledEventResponse {
|
|
4503
|
+
/**
|
|
4504
|
+
* ID of the scheduled event
|
|
4505
|
+
*/
|
|
3875
4506
|
readonly id: SnowflakeType;
|
|
4507
|
+
/**
|
|
4508
|
+
* ID of the guild the scheduled event belongs to
|
|
4509
|
+
*/
|
|
3876
4510
|
readonly guild_id: SnowflakeType;
|
|
4511
|
+
/**
|
|
4512
|
+
* Name of the scheduled event
|
|
4513
|
+
*/
|
|
3877
4514
|
readonly name: string;
|
|
4515
|
+
/**
|
|
4516
|
+
* Description of the scheduled event
|
|
4517
|
+
*/
|
|
3878
4518
|
readonly description: string | null;
|
|
4519
|
+
/**
|
|
4520
|
+
* Channel ID in which the scheduled event will be hosted, or null if entity type is EXTERNAL
|
|
4521
|
+
*/
|
|
3879
4522
|
readonly channel_id: SnowflakeType | null;
|
|
4523
|
+
/**
|
|
4524
|
+
* ID of the user that created the scheduled event
|
|
4525
|
+
*/
|
|
3880
4526
|
readonly creator_id: SnowflakeType | null;
|
|
4527
|
+
/**
|
|
4528
|
+
* User that created the scheduled event
|
|
4529
|
+
*/
|
|
3881
4530
|
readonly creator?: UserResponse | undefined;
|
|
4531
|
+
/**
|
|
4532
|
+
* Cover image hash of the scheduled event
|
|
4533
|
+
*/
|
|
3882
4534
|
readonly image: string | null;
|
|
4535
|
+
/**
|
|
4536
|
+
* When the scheduled event will start
|
|
4537
|
+
*/
|
|
3883
4538
|
readonly scheduled_start_time: string;
|
|
4539
|
+
/**
|
|
4540
|
+
* When the scheduled event will end, or null if no end time
|
|
4541
|
+
*/
|
|
3884
4542
|
readonly scheduled_end_time: string | null;
|
|
4543
|
+
/**
|
|
4544
|
+
* Status of the scheduled event
|
|
4545
|
+
*/
|
|
3885
4546
|
readonly status: GuildScheduledEventStatuses;
|
|
4547
|
+
/**
|
|
4548
|
+
* Type of hosting entity associated with the scheduled event
|
|
4549
|
+
*/
|
|
3886
4550
|
readonly entity_type: 2;
|
|
4551
|
+
/**
|
|
4552
|
+
* ID of the hosting entity associated with the scheduled event
|
|
4553
|
+
*/
|
|
3887
4554
|
readonly entity_id: SnowflakeType | null;
|
|
4555
|
+
/**
|
|
4556
|
+
* Recurrence rule for the scheduled event, or null if not recurring
|
|
4557
|
+
*/
|
|
4558
|
+
readonly recurrence_rule: RecurrenceRuleResponse | null;
|
|
4559
|
+
/**
|
|
4560
|
+
* Number of users subscribed to the scheduled event
|
|
4561
|
+
*/
|
|
3888
4562
|
readonly user_count?: number | undefined;
|
|
4563
|
+
/**
|
|
4564
|
+
* Privacy level of the scheduled event
|
|
4565
|
+
*/
|
|
3889
4566
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
3890
4567
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
|
|
4568
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>;
|
|
3891
4569
|
readonly entity_metadata: EntityMetadataVoiceResponse | null;
|
|
3892
4570
|
}
|
|
3893
4571
|
export declare const AutomodEventType: {
|
|
@@ -3952,10 +4630,6 @@ export declare const AutomodTriggerType: {
|
|
|
3952
4630
|
* Check if content contains words from a list of keywords or matches regex
|
|
3953
4631
|
*/
|
|
3954
4632
|
readonly KEYWORD: 1;
|
|
3955
|
-
/**
|
|
3956
|
-
* DEPRECATED
|
|
3957
|
-
*/
|
|
3958
|
-
readonly SPAM_LINK: 2;
|
|
3959
4633
|
/**
|
|
3960
4634
|
* Check if content represents generic spam
|
|
3961
4635
|
*/
|
|
@@ -3968,6 +4642,10 @@ export declare const AutomodTriggerType: {
|
|
|
3968
4642
|
* Check if content contains more unique mentions than allowed
|
|
3969
4643
|
*/
|
|
3970
4644
|
readonly MENTION_SPAM: 5;
|
|
4645
|
+
/**
|
|
4646
|
+
* Check if user profile fields contains words from a list of keywords or matches regex
|
|
4647
|
+
*/
|
|
4648
|
+
readonly USER_PROFILE: 6;
|
|
3971
4649
|
};
|
|
3972
4650
|
export type AutomodTriggerType = (typeof AutomodTriggerType)[keyof typeof AutomodTriggerType];
|
|
3973
4651
|
export declare const AutomodKeywordPresetType: {
|
|
@@ -4052,20 +4730,23 @@ export interface MentionSpamRuleResponse {
|
|
|
4052
4730
|
readonly exempt_channels: ReadonlyArray<SnowflakeType>;
|
|
4053
4731
|
readonly trigger_metadata: MentionSpamTriggerMetadataResponse;
|
|
4054
4732
|
}
|
|
4055
|
-
export interface
|
|
4733
|
+
export interface UserProfileMetadataResponse {
|
|
4734
|
+
readonly keyword_filter: ReadonlyArray<string>;
|
|
4735
|
+
readonly regex_patterns: ReadonlyArray<string>;
|
|
4736
|
+
readonly allow_list: ReadonlyArray<string>;
|
|
4056
4737
|
}
|
|
4057
|
-
export interface
|
|
4738
|
+
export interface UserProfileRuleResponse {
|
|
4058
4739
|
readonly id: SnowflakeType;
|
|
4059
4740
|
readonly guild_id: SnowflakeType;
|
|
4060
4741
|
readonly creator_id: SnowflakeType;
|
|
4061
4742
|
readonly name: string;
|
|
4062
4743
|
readonly event_type: AutomodEventType;
|
|
4063
4744
|
readonly actions: ReadonlyArray<BlockMessageActionResponse | FlagToChannelActionResponse | QuarantineUserActionResponse | UserCommunicationDisabledActionResponse>;
|
|
4064
|
-
readonly trigger_type:
|
|
4745
|
+
readonly trigger_type: 6;
|
|
4065
4746
|
readonly enabled: boolean;
|
|
4066
4747
|
readonly exempt_roles: ReadonlyArray<SnowflakeType>;
|
|
4067
4748
|
readonly exempt_channels: ReadonlyArray<SnowflakeType>;
|
|
4068
|
-
readonly trigger_metadata:
|
|
4749
|
+
readonly trigger_metadata: UserProfileMetadataResponse;
|
|
4069
4750
|
}
|
|
4070
4751
|
export interface GuildAuditLogResponse {
|
|
4071
4752
|
readonly audit_log_entries: ReadonlyArray<AuditLogEntryResponse>;
|
|
@@ -4075,9 +4756,9 @@ export interface GuildAuditLogResponse {
|
|
|
4075
4756
|
readonly guild_scheduled_events: ReadonlyArray<ExternalScheduledEventResponse | StageScheduledEventResponse | VoiceScheduledEventResponse>;
|
|
4076
4757
|
readonly threads: ReadonlyArray<ThreadResponse>;
|
|
4077
4758
|
readonly application_commands: ReadonlyArray<ApplicationCommandResponse>;
|
|
4078
|
-
readonly auto_moderation_rules: ReadonlyArray<DefaultKeywordRuleResponse | KeywordRuleResponse | MLSpamRuleResponse | MentionSpamRuleResponse |
|
|
4759
|
+
readonly auto_moderation_rules: ReadonlyArray<DefaultKeywordRuleResponse | KeywordRuleResponse | MLSpamRuleResponse | MentionSpamRuleResponse | UserProfileRuleResponse | null>;
|
|
4079
4760
|
}
|
|
4080
|
-
export type ListAutoModerationRules200 = ReadonlyArray<DefaultKeywordRuleResponse | KeywordRuleResponse | MLSpamRuleResponse | MentionSpamRuleResponse |
|
|
4761
|
+
export type ListAutoModerationRules200 = ReadonlyArray<DefaultKeywordRuleResponse | KeywordRuleResponse | MLSpamRuleResponse | MentionSpamRuleResponse | UserProfileRuleResponse | null>;
|
|
4081
4762
|
export interface BlockMessageActionMetadata {
|
|
4082
4763
|
readonly custom_message?: string | null | undefined;
|
|
4083
4764
|
}
|
|
@@ -4160,9 +4841,24 @@ export interface MentionSpamUpsertRequest {
|
|
|
4160
4841
|
readonly trigger_type: 5;
|
|
4161
4842
|
readonly trigger_metadata?: MentionSpamTriggerMetadata | null | undefined;
|
|
4162
4843
|
}
|
|
4163
|
-
export
|
|
4164
|
-
|
|
4165
|
-
|
|
4844
|
+
export interface UserProfileMetadata {
|
|
4845
|
+
readonly keyword_filter?: ReadonlyArray<string> | null | undefined;
|
|
4846
|
+
readonly regex_patterns?: ReadonlyArray<string> | null | undefined;
|
|
4847
|
+
readonly allow_list?: ReadonlyArray<string> | null | undefined;
|
|
4848
|
+
}
|
|
4849
|
+
export interface UserProfileUpsertRequest {
|
|
4850
|
+
readonly name: string;
|
|
4851
|
+
readonly event_type: AutomodEventType;
|
|
4852
|
+
readonly actions?: ReadonlyArray<BlockMessageAction | FlagToChannelAction | QuarantineUserAction | UserCommunicationDisabledAction> | null | undefined;
|
|
4853
|
+
readonly enabled?: boolean | null | undefined;
|
|
4854
|
+
readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined;
|
|
4855
|
+
readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined;
|
|
4856
|
+
readonly trigger_type: 6;
|
|
4857
|
+
readonly trigger_metadata: UserProfileMetadata;
|
|
4858
|
+
}
|
|
4859
|
+
export type CreateAutoModerationRuleRequest = DefaultKeywordListUpsertRequest | KeywordUpsertRequest | MLSpamUpsertRequest | MentionSpamUpsertRequest | UserProfileUpsertRequest;
|
|
4860
|
+
export type CreateAutoModerationRule200 = DefaultKeywordRuleResponse | KeywordRuleResponse | MLSpamRuleResponse | MentionSpamRuleResponse | UserProfileRuleResponse;
|
|
4861
|
+
export type GetAutoModerationRule200 = DefaultKeywordRuleResponse | KeywordRuleResponse | MLSpamRuleResponse | MentionSpamRuleResponse | UserProfileRuleResponse;
|
|
4166
4862
|
export interface DefaultKeywordListUpsertRequestPartial {
|
|
4167
4863
|
readonly name?: string | undefined;
|
|
4168
4864
|
readonly event_type?: AutomodEventType | undefined;
|
|
@@ -4203,8 +4899,18 @@ export interface MentionSpamUpsertRequestPartial {
|
|
|
4203
4899
|
readonly trigger_type?: 5 | undefined;
|
|
4204
4900
|
readonly trigger_metadata?: MentionSpamTriggerMetadata | null | undefined;
|
|
4205
4901
|
}
|
|
4206
|
-
export
|
|
4207
|
-
|
|
4902
|
+
export interface UserProfileUpsertRequestPartial {
|
|
4903
|
+
readonly name?: string | undefined;
|
|
4904
|
+
readonly event_type?: AutomodEventType | undefined;
|
|
4905
|
+
readonly actions?: ReadonlyArray<BlockMessageAction | FlagToChannelAction | QuarantineUserAction | UserCommunicationDisabledAction> | null | undefined;
|
|
4906
|
+
readonly enabled?: boolean | null | undefined;
|
|
4907
|
+
readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined;
|
|
4908
|
+
readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined;
|
|
4909
|
+
readonly trigger_type?: 6 | undefined;
|
|
4910
|
+
readonly trigger_metadata?: UserProfileMetadata | undefined;
|
|
4911
|
+
}
|
|
4912
|
+
export type UpdateAutoModerationRuleRequest = DefaultKeywordListUpsertRequestPartial | KeywordUpsertRequestPartial | MLSpamUpsertRequestPartial | MentionSpamUpsertRequestPartial | UserProfileUpsertRequestPartial;
|
|
4913
|
+
export type UpdateAutoModerationRule200 = DefaultKeywordRuleResponse | KeywordRuleResponse | MLSpamRuleResponse | MentionSpamRuleResponse | UserProfileRuleResponse;
|
|
4208
4914
|
export interface ListGuildBansParams {
|
|
4209
4915
|
readonly limit?: number | undefined;
|
|
4210
4916
|
readonly before?: SnowflakeType | undefined;
|
|
@@ -4273,6 +4979,16 @@ export interface UpdateGuildEmojiRequest {
|
|
|
4273
4979
|
readonly name?: string | undefined;
|
|
4274
4980
|
readonly roles?: ReadonlyArray<null | SnowflakeType> | null | undefined;
|
|
4275
4981
|
}
|
|
4982
|
+
export interface GuildIncidentActionsRequest {
|
|
4983
|
+
/**
|
|
4984
|
+
* When invites will be enabled again
|
|
4985
|
+
*/
|
|
4986
|
+
readonly invites_disabled_until?: string | null | undefined;
|
|
4987
|
+
/**
|
|
4988
|
+
* When direct messages will be enabled again
|
|
4989
|
+
*/
|
|
4990
|
+
readonly dms_disabled_until?: string | null | undefined;
|
|
4991
|
+
}
|
|
4276
4992
|
export interface IntegrationApplicationResponse {
|
|
4277
4993
|
readonly id: SnowflakeType;
|
|
4278
4994
|
readonly name: string;
|
|
@@ -4364,19 +5080,61 @@ export interface UpdateMyGuildMemberRequest {
|
|
|
4364
5080
|
readonly banner?: string | null | undefined;
|
|
4365
5081
|
}
|
|
4366
5082
|
export interface PrivateGuildMemberResponse {
|
|
5083
|
+
/**
|
|
5084
|
+
* the member's guild avatar hash
|
|
5085
|
+
*/
|
|
4367
5086
|
readonly avatar: string | null;
|
|
5087
|
+
/**
|
|
5088
|
+
* data for the member's guild avatar decoration
|
|
5089
|
+
*/
|
|
4368
5090
|
readonly avatar_decoration_data?: UserAvatarDecorationResponse | null | undefined;
|
|
5091
|
+
/**
|
|
5092
|
+
* the member's guild banner hash
|
|
5093
|
+
*/
|
|
4369
5094
|
readonly banner: string | null;
|
|
5095
|
+
/**
|
|
5096
|
+
* when the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out
|
|
5097
|
+
*/
|
|
4370
5098
|
readonly communication_disabled_until: string | null;
|
|
5099
|
+
/**
|
|
5100
|
+
* guild member flags represented as a bit set, defaults to 0
|
|
5101
|
+
*/
|
|
4371
5102
|
readonly flags: number;
|
|
5103
|
+
/**
|
|
5104
|
+
* when the user joined the guild
|
|
5105
|
+
*/
|
|
4372
5106
|
readonly joined_at: string;
|
|
5107
|
+
/**
|
|
5108
|
+
* this user's guild nickname
|
|
5109
|
+
*/
|
|
4373
5110
|
readonly nick: string | null;
|
|
5111
|
+
/**
|
|
5112
|
+
* whether the user has not yet passed the guild's Membership Screening requirements
|
|
5113
|
+
*/
|
|
4374
5114
|
readonly pending: boolean;
|
|
5115
|
+
/**
|
|
5116
|
+
* when the user started boosting the guild
|
|
5117
|
+
*/
|
|
4375
5118
|
readonly premium_since: string | null;
|
|
5119
|
+
/**
|
|
5120
|
+
* array of role object ids
|
|
5121
|
+
*/
|
|
4376
5122
|
readonly roles: ReadonlyArray<SnowflakeType>;
|
|
5123
|
+
/**
|
|
5124
|
+
* data for the member's collectibles
|
|
5125
|
+
*/
|
|
4377
5126
|
readonly collectibles?: UserCollectiblesResponse | null | undefined;
|
|
5127
|
+
/**
|
|
5128
|
+
* the user this guild member represents
|
|
5129
|
+
*/
|
|
4378
5130
|
readonly user: UserResponse;
|
|
5131
|
+
/**
|
|
5132
|
+
* whether the user is muted in voice channels
|
|
5133
|
+
*/
|
|
4379
5134
|
readonly mute: boolean;
|
|
5135
|
+
/**
|
|
5136
|
+
* whether the user is deafened in voice channels
|
|
5137
|
+
*/
|
|
4380
5138
|
readonly deaf: boolean;
|
|
4381
5139
|
readonly permissions?: string | undefined;
|
|
4382
5140
|
}
|
|
@@ -4492,7 +5250,7 @@ export interface SearchMessageResponse {
|
|
|
4492
5250
|
readonly tts: boolean;
|
|
4493
5251
|
readonly call?: MessageCallResponse | undefined;
|
|
4494
5252
|
readonly activity?: MessageActivityResponse | undefined;
|
|
4495
|
-
readonly application?:
|
|
5253
|
+
readonly application?: BasicApplicationResponseWithBot | undefined;
|
|
4496
5254
|
readonly application_id?: SnowflakeType | undefined;
|
|
4497
5255
|
readonly interaction?: MessageInteractionResponse | undefined;
|
|
4498
5256
|
readonly nonce?: number | string | undefined;
|
|
@@ -4508,9 +5266,11 @@ export interface SearchMessageResponse {
|
|
|
4508
5266
|
readonly shared_client_theme?: CustomClientThemeResponse | undefined;
|
|
4509
5267
|
readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | undefined;
|
|
4510
5268
|
readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | undefined;
|
|
5269
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined;
|
|
4511
5270
|
readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined;
|
|
4512
5271
|
readonly referenced_message?: BasicMessageResponse | null | undefined;
|
|
4513
5272
|
readonly hit: boolean;
|
|
5273
|
+
readonly restriction_count?: number | undefined;
|
|
4514
5274
|
}
|
|
4515
5275
|
export interface GuildSearchResponse {
|
|
4516
5276
|
readonly messages: ReadonlyArray<ReadonlyArray<SearchMessageResponse>>;
|
|
@@ -4885,6 +5645,58 @@ export interface ListGuildScheduledEventsParams {
|
|
|
4885
5645
|
readonly with_user_count?: boolean | undefined;
|
|
4886
5646
|
}
|
|
4887
5647
|
export type ListGuildScheduledEvents200 = ReadonlyArray<ExternalScheduledEventResponse | StageScheduledEventResponse | VoiceScheduledEventResponse>;
|
|
5648
|
+
export interface ByNWeekday {
|
|
5649
|
+
/**
|
|
5650
|
+
* The week to reoccur on (1-5, where 5 represents the last week)
|
|
5651
|
+
*/
|
|
5652
|
+
readonly n: number;
|
|
5653
|
+
/**
|
|
5654
|
+
* The day within the week to reoccur on
|
|
5655
|
+
*/
|
|
5656
|
+
readonly day: RecurrenceRuleWeekdays;
|
|
5657
|
+
}
|
|
5658
|
+
export interface RecurrenceRule {
|
|
5659
|
+
/**
|
|
5660
|
+
* Starting time of the recurrence interval
|
|
5661
|
+
*/
|
|
5662
|
+
readonly start: string;
|
|
5663
|
+
/**
|
|
5664
|
+
* Ending time of the recurrence interval
|
|
5665
|
+
*/
|
|
5666
|
+
readonly end?: string | null | undefined;
|
|
5667
|
+
/**
|
|
5668
|
+
* How often the event occurs
|
|
5669
|
+
*/
|
|
5670
|
+
readonly frequency: RecurrenceRuleFrequencies;
|
|
5671
|
+
/**
|
|
5672
|
+
* The spacing between events, defined by frequency
|
|
5673
|
+
*/
|
|
5674
|
+
readonly interval?: number | null | undefined;
|
|
5675
|
+
/**
|
|
5676
|
+
* Set of specific days within a week for the event to recur on
|
|
5677
|
+
*/
|
|
5678
|
+
readonly by_weekday?: ReadonlyArray<RecurrenceRuleWeekdays> | null | undefined;
|
|
5679
|
+
/**
|
|
5680
|
+
* List of specific days within a specific week to recur on
|
|
5681
|
+
*/
|
|
5682
|
+
readonly by_n_weekday?: ReadonlyArray<ByNWeekday> | null | undefined;
|
|
5683
|
+
/**
|
|
5684
|
+
* Set of specific months to recur on
|
|
5685
|
+
*/
|
|
5686
|
+
readonly by_month?: ReadonlyArray<RecurrenceRuleMonths> | null | undefined;
|
|
5687
|
+
/**
|
|
5688
|
+
* Set of specific dates within a month to recur on
|
|
5689
|
+
*/
|
|
5690
|
+
readonly by_month_day?: ReadonlyArray<number> | null | undefined;
|
|
5691
|
+
/**
|
|
5692
|
+
* Set of days within a year to recur on (1-364)
|
|
5693
|
+
*/
|
|
5694
|
+
readonly by_year_day?: ReadonlyArray<number> | null | undefined;
|
|
5695
|
+
/**
|
|
5696
|
+
* Total number of times the event is allowed to recur
|
|
5697
|
+
*/
|
|
5698
|
+
readonly count?: number | null | undefined;
|
|
5699
|
+
}
|
|
4888
5700
|
export interface EntityMetadataExternal {
|
|
4889
5701
|
readonly location: string;
|
|
4890
5702
|
}
|
|
@@ -4897,6 +5709,10 @@ export interface ExternalScheduledEventCreateRequest {
|
|
|
4897
5709
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
4898
5710
|
readonly entity_type: 3;
|
|
4899
5711
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
5712
|
+
/**
|
|
5713
|
+
* Recurrence rule for the scheduled event
|
|
5714
|
+
*/
|
|
5715
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined;
|
|
4900
5716
|
readonly entity_metadata: EntityMetadataExternal;
|
|
4901
5717
|
}
|
|
4902
5718
|
export interface EntityMetadataStageInstance {
|
|
@@ -4910,6 +5726,10 @@ export interface StageScheduledEventCreateRequest {
|
|
|
4910
5726
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
4911
5727
|
readonly entity_type: 1;
|
|
4912
5728
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
5729
|
+
/**
|
|
5730
|
+
* Recurrence rule for the scheduled event
|
|
5731
|
+
*/
|
|
5732
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined;
|
|
4913
5733
|
readonly entity_metadata?: EntityMetadataStageInstance | null | undefined;
|
|
4914
5734
|
}
|
|
4915
5735
|
export interface EntityMetadataVoice {
|
|
@@ -4923,6 +5743,10 @@ export interface VoiceScheduledEventCreateRequest {
|
|
|
4923
5743
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
4924
5744
|
readonly entity_type: 2;
|
|
4925
5745
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
5746
|
+
/**
|
|
5747
|
+
* Recurrence rule for the scheduled event
|
|
5748
|
+
*/
|
|
5749
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined;
|
|
4926
5750
|
readonly entity_metadata?: EntityMetadataVoice | null | undefined;
|
|
4927
5751
|
}
|
|
4928
5752
|
export type CreateGuildScheduledEventRequest = ExternalScheduledEventCreateRequest | StageScheduledEventCreateRequest | VoiceScheduledEventCreateRequest;
|
|
@@ -4941,6 +5765,10 @@ export interface ExternalScheduledEventPatchRequestPartial {
|
|
|
4941
5765
|
readonly entity_type?: 3 | null | undefined;
|
|
4942
5766
|
readonly privacy_level?: GuildScheduledEventPrivacyLevels | undefined;
|
|
4943
5767
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
5768
|
+
/**
|
|
5769
|
+
* Recurrence rule for the scheduled event
|
|
5770
|
+
*/
|
|
5771
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined;
|
|
4944
5772
|
readonly entity_metadata?: EntityMetadataExternal | undefined;
|
|
4945
5773
|
}
|
|
4946
5774
|
export interface StageScheduledEventPatchRequestPartial {
|
|
@@ -4953,6 +5781,10 @@ export interface StageScheduledEventPatchRequestPartial {
|
|
|
4953
5781
|
readonly entity_type?: 1 | null | undefined;
|
|
4954
5782
|
readonly privacy_level?: GuildScheduledEventPrivacyLevels | undefined;
|
|
4955
5783
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
5784
|
+
/**
|
|
5785
|
+
* Recurrence rule for the scheduled event
|
|
5786
|
+
*/
|
|
5787
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined;
|
|
4956
5788
|
readonly entity_metadata?: EntityMetadataStageInstance | null | undefined;
|
|
4957
5789
|
}
|
|
4958
5790
|
export interface VoiceScheduledEventPatchRequestPartial {
|
|
@@ -4965,10 +5797,46 @@ export interface VoiceScheduledEventPatchRequestPartial {
|
|
|
4965
5797
|
readonly entity_type?: 2 | null | undefined;
|
|
4966
5798
|
readonly privacy_level?: GuildScheduledEventPrivacyLevels | undefined;
|
|
4967
5799
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
5800
|
+
/**
|
|
5801
|
+
* Recurrence rule for the scheduled event
|
|
5802
|
+
*/
|
|
5803
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined;
|
|
4968
5804
|
readonly entity_metadata?: EntityMetadataVoice | null | undefined;
|
|
4969
5805
|
}
|
|
4970
5806
|
export type UpdateGuildScheduledEventRequest = ExternalScheduledEventPatchRequestPartial | StageScheduledEventPatchRequestPartial | VoiceScheduledEventPatchRequestPartial;
|
|
4971
5807
|
export type UpdateGuildScheduledEvent200 = ExternalScheduledEventResponse | StageScheduledEventResponse | VoiceScheduledEventResponse;
|
|
5808
|
+
export interface GuildScheduledEventExceptionCreateRequest {
|
|
5809
|
+
/**
|
|
5810
|
+
* Overridden start time of this occurrence
|
|
5811
|
+
*/
|
|
5812
|
+
readonly scheduled_start_time?: string | null | undefined;
|
|
5813
|
+
/**
|
|
5814
|
+
* Overridden end time of this occurrence
|
|
5815
|
+
*/
|
|
5816
|
+
readonly scheduled_end_time?: string | null | undefined;
|
|
5817
|
+
/**
|
|
5818
|
+
* The original start time of the occurrence to create an exception for
|
|
5819
|
+
*/
|
|
5820
|
+
readonly original_scheduled_start_time: string;
|
|
5821
|
+
/**
|
|
5822
|
+
* Whether this occurrence is canceled
|
|
5823
|
+
*/
|
|
5824
|
+
readonly is_canceled?: boolean | null | undefined;
|
|
5825
|
+
}
|
|
5826
|
+
export interface GuildScheduledEventExceptionPatchRequestPartial {
|
|
5827
|
+
/**
|
|
5828
|
+
* Overridden start time of this occurrence
|
|
5829
|
+
*/
|
|
5830
|
+
readonly scheduled_start_time?: string | null | undefined;
|
|
5831
|
+
/**
|
|
5832
|
+
* Overridden end time of this occurrence
|
|
5833
|
+
*/
|
|
5834
|
+
readonly scheduled_end_time?: string | null | undefined;
|
|
5835
|
+
/**
|
|
5836
|
+
* Whether this occurrence is canceled
|
|
5837
|
+
*/
|
|
5838
|
+
readonly is_canceled?: boolean | null | undefined;
|
|
5839
|
+
}
|
|
4972
5840
|
export interface ListGuildScheduledEventUsersParams {
|
|
4973
5841
|
readonly with_member?: boolean | undefined;
|
|
4974
5842
|
readonly limit?: number | undefined;
|
|
@@ -4976,6 +5844,26 @@ export interface ListGuildScheduledEventUsersParams {
|
|
|
4976
5844
|
readonly after?: SnowflakeType | undefined;
|
|
4977
5845
|
}
|
|
4978
5846
|
export type ListGuildScheduledEventUsers200 = ReadonlyArray<ScheduledEventUserResponse>;
|
|
5847
|
+
export interface CountGuildScheduledEventUsersParams {
|
|
5848
|
+
readonly guild_scheduled_event_exception_ids?: ReadonlyArray<SnowflakeType> | undefined;
|
|
5849
|
+
}
|
|
5850
|
+
export interface ScheduledEventUserCountResponse {
|
|
5851
|
+
/**
|
|
5852
|
+
* The number of users subscribed to the scheduled event
|
|
5853
|
+
*/
|
|
5854
|
+
readonly guild_scheduled_event_count: number;
|
|
5855
|
+
/**
|
|
5856
|
+
* Map of exception IDs to user counts for each exception
|
|
5857
|
+
*/
|
|
5858
|
+
readonly guild_scheduled_event_exception_counts: Record<string, unknown>;
|
|
5859
|
+
}
|
|
5860
|
+
export interface ListGuildScheduledEventExceptionUsersParams {
|
|
5861
|
+
readonly with_member?: boolean | undefined;
|
|
5862
|
+
readonly limit?: number | undefined;
|
|
5863
|
+
readonly before?: SnowflakeType | undefined;
|
|
5864
|
+
readonly after?: SnowflakeType | undefined;
|
|
5865
|
+
}
|
|
5866
|
+
export type ListGuildScheduledEventExceptionUsers200 = ReadonlyArray<ScheduledEventUserResponse>;
|
|
4979
5867
|
export interface SoundboardSoundResponse {
|
|
4980
5868
|
readonly name: string;
|
|
4981
5869
|
readonly sound_id: SnowflakeType;
|
|
@@ -5368,6 +6256,7 @@ export type CreateInteractionResponseRequest = ApplicationCommandAutocompleteCal
|
|
|
5368
6256
|
export interface InteractionResponse {
|
|
5369
6257
|
readonly id: SnowflakeType;
|
|
5370
6258
|
readonly type: InteractionTypes;
|
|
6259
|
+
readonly activity_instance_id?: string | null | undefined;
|
|
5371
6260
|
readonly response_message_id?: SnowflakeType | undefined;
|
|
5372
6261
|
readonly response_message_loading?: boolean | undefined;
|
|
5373
6262
|
readonly response_message_ephemeral?: boolean | undefined;
|
|
@@ -5378,8 +6267,12 @@ export interface CreateMessageInteractionCallbackResponse {
|
|
|
5378
6267
|
readonly type: 4;
|
|
5379
6268
|
readonly message: MessageResponse;
|
|
5380
6269
|
}
|
|
6270
|
+
export interface ActivityInstanceCallbackResponse {
|
|
6271
|
+
readonly id: string;
|
|
6272
|
+
}
|
|
5381
6273
|
export interface LaunchActivityInteractionCallbackResponse {
|
|
5382
6274
|
readonly type: 12;
|
|
6275
|
+
readonly activity_instance: ActivityInstanceCallbackResponse;
|
|
5383
6276
|
}
|
|
5384
6277
|
export interface UpdateMessageInteractionCallbackResponse {
|
|
5385
6278
|
readonly type: 7;
|
|
@@ -5392,6 +6285,8 @@ export interface InteractionCallbackResponse {
|
|
|
5392
6285
|
export interface InviteResolveParams {
|
|
5393
6286
|
readonly with_counts?: boolean | undefined;
|
|
5394
6287
|
readonly guild_scheduled_event_id?: SnowflakeType | undefined;
|
|
6288
|
+
readonly target_channel_id?: SnowflakeType | undefined;
|
|
6289
|
+
readonly target_message_id?: SnowflakeType | undefined;
|
|
5395
6290
|
}
|
|
5396
6291
|
export type InviteResolve200 = FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse;
|
|
5397
6292
|
export type InviteRevoke200 = FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse;
|
|
@@ -5455,6 +6350,7 @@ export interface LobbyMemberResponse {
|
|
|
5455
6350
|
readonly id: SnowflakeType;
|
|
5456
6351
|
readonly metadata: Record<string, unknown> | null;
|
|
5457
6352
|
readonly flags: number;
|
|
6353
|
+
readonly additional_name?: string | undefined;
|
|
5458
6354
|
}
|
|
5459
6355
|
export interface LobbyResponse {
|
|
5460
6356
|
readonly id: SnowflakeType;
|
|
@@ -5499,6 +6395,7 @@ export interface BulkLobbyMemberRequest {
|
|
|
5499
6395
|
readonly metadata?: Record<string, unknown> | null | undefined;
|
|
5500
6396
|
readonly flags?: BulkLobbyMemberRequestFlagsEnum | null | undefined;
|
|
5501
6397
|
readonly remove_member?: boolean | null | undefined;
|
|
6398
|
+
readonly additional_name?: string | null | undefined;
|
|
5502
6399
|
}
|
|
5503
6400
|
export type BulkUpdateLobbyMembersRequest = ReadonlyArray<BulkLobbyMemberRequest>;
|
|
5504
6401
|
export type BulkUpdateLobbyMembers200 = ReadonlyArray<LobbyMemberResponse>;
|
|
@@ -5506,6 +6403,7 @@ export type AddLobbyMemberRequestFlagsEnum = 1;
|
|
|
5506
6403
|
export interface AddLobbyMemberRequest {
|
|
5507
6404
|
readonly metadata?: Record<string, unknown> | null | undefined;
|
|
5508
6405
|
readonly flags?: AddLobbyMemberRequestFlagsEnum | null | undefined;
|
|
6406
|
+
readonly additional_name?: string | null | undefined;
|
|
5509
6407
|
}
|
|
5510
6408
|
export interface GetLobbyMessagesParams {
|
|
5511
6409
|
readonly limit?: number | undefined;
|
|
@@ -5517,6 +6415,7 @@ export interface LobbyMessageResponse {
|
|
|
5517
6415
|
readonly lobby_id: SnowflakeType;
|
|
5518
6416
|
readonly channel_id: SnowflakeType;
|
|
5519
6417
|
readonly author: UserResponse;
|
|
6418
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined;
|
|
5520
6419
|
readonly metadata?: Record<string, unknown> | undefined;
|
|
5521
6420
|
readonly moderation_metadata?: Record<string, unknown> | undefined;
|
|
5522
6421
|
readonly flags: number;
|
|
@@ -5613,6 +6512,73 @@ export interface BotPartnerSdkTokenRequest {
|
|
|
5613
6512
|
readonly external_user_id: string;
|
|
5614
6513
|
readonly preferred_global_name?: string | null | undefined;
|
|
5615
6514
|
}
|
|
6515
|
+
export interface GetSkuSubscriptionsParams {
|
|
6516
|
+
readonly before?: SnowflakeType | undefined;
|
|
6517
|
+
readonly after?: SnowflakeType | undefined;
|
|
6518
|
+
readonly limit?: number | undefined;
|
|
6519
|
+
readonly user_id?: SnowflakeType | undefined;
|
|
6520
|
+
}
|
|
6521
|
+
export declare const SubscriptionResponseStatusType: {
|
|
6522
|
+
/**
|
|
6523
|
+
* Subscription is active and scheduled to renew
|
|
6524
|
+
*/
|
|
6525
|
+
readonly ACTIVE: 0;
|
|
6526
|
+
/**
|
|
6527
|
+
* Subscription is inactive and not being charged
|
|
6528
|
+
*/
|
|
6529
|
+
readonly INACTIVE: 1;
|
|
6530
|
+
/**
|
|
6531
|
+
* Subscription is active but will not renew
|
|
6532
|
+
*/
|
|
6533
|
+
readonly ENDING: 2;
|
|
6534
|
+
};
|
|
6535
|
+
export type SubscriptionResponseStatusType = (typeof SubscriptionResponseStatusType)[keyof typeof SubscriptionResponseStatusType];
|
|
6536
|
+
export interface SubscriptionResponse {
|
|
6537
|
+
/**
|
|
6538
|
+
* ID of the subscription
|
|
6539
|
+
*/
|
|
6540
|
+
readonly id: SnowflakeType;
|
|
6541
|
+
/**
|
|
6542
|
+
* ID of the user who is subscribed
|
|
6543
|
+
*/
|
|
6544
|
+
readonly user_id: SnowflakeType;
|
|
6545
|
+
/**
|
|
6546
|
+
* List of SKUs subscribed to
|
|
6547
|
+
*/
|
|
6548
|
+
readonly sku_ids: ReadonlyArray<SnowflakeType>;
|
|
6549
|
+
/**
|
|
6550
|
+
* List of SKUs that this user will be subscribed to at renewal
|
|
6551
|
+
*/
|
|
6552
|
+
readonly renewal_sku_ids: ReadonlyArray<SnowflakeType> | null;
|
|
6553
|
+
/**
|
|
6554
|
+
* List of entitlements granted for this subscription
|
|
6555
|
+
*/
|
|
6556
|
+
readonly entitlement_ids: ReadonlyArray<SnowflakeType>;
|
|
6557
|
+
/**
|
|
6558
|
+
* Start of the current subscription period
|
|
6559
|
+
*/
|
|
6560
|
+
readonly current_period_start: string;
|
|
6561
|
+
/**
|
|
6562
|
+
* End of the current subscription period
|
|
6563
|
+
*/
|
|
6564
|
+
readonly current_period_end: string;
|
|
6565
|
+
/**
|
|
6566
|
+
* Current status of the subscription
|
|
6567
|
+
*/
|
|
6568
|
+
readonly status: SubscriptionResponseStatusType;
|
|
6569
|
+
/**
|
|
6570
|
+
* When the subscription was canceled
|
|
6571
|
+
*/
|
|
6572
|
+
readonly canceled_at: string | null;
|
|
6573
|
+
/**
|
|
6574
|
+
* ISO3166-1 alpha-2 country code of the payment source used to purchase the subscription
|
|
6575
|
+
*/
|
|
6576
|
+
readonly country?: string | null | undefined;
|
|
6577
|
+
}
|
|
6578
|
+
export type GetSkuSubscriptions200 = ReadonlyArray<SubscriptionResponse>;
|
|
6579
|
+
export interface GetSkuSubscriptionParams {
|
|
6580
|
+
readonly user_id?: SnowflakeType | undefined;
|
|
6581
|
+
}
|
|
5616
6582
|
export type GetSoundboardDefaultSounds200 = ReadonlyArray<SoundboardSoundResponse>;
|
|
5617
6583
|
export declare const StageInstancesPrivacyLevels: {
|
|
5618
6584
|
/**
|
|
@@ -5620,7 +6586,7 @@ export declare const StageInstancesPrivacyLevels: {
|
|
|
5620
6586
|
*/
|
|
5621
6587
|
readonly PUBLIC: 1;
|
|
5622
6588
|
/**
|
|
5623
|
-
* The Stage instance is visible
|
|
6589
|
+
* The Stage instance is visible to only guild members.
|
|
5624
6590
|
*/
|
|
5625
6591
|
readonly GUILD_ONLY: 2;
|
|
5626
6592
|
};
|
|
@@ -5678,18 +6644,57 @@ export declare const PremiumTypes: {
|
|
|
5678
6644
|
};
|
|
5679
6645
|
export type PremiumTypes = (typeof PremiumTypes)[keyof typeof PremiumTypes];
|
|
5680
6646
|
export interface UserPIIResponse {
|
|
6647
|
+
/**
|
|
6648
|
+
* the user's id
|
|
6649
|
+
*/
|
|
5681
6650
|
readonly id: SnowflakeType;
|
|
6651
|
+
/**
|
|
6652
|
+
* the user's username, not unique across the platform
|
|
6653
|
+
*/
|
|
5682
6654
|
readonly username: string;
|
|
6655
|
+
/**
|
|
6656
|
+
* the user's avatar hash
|
|
6657
|
+
*/
|
|
5683
6658
|
readonly avatar: string | null;
|
|
6659
|
+
/**
|
|
6660
|
+
* the user's Discord-tag
|
|
6661
|
+
*/
|
|
5684
6662
|
readonly discriminator: string;
|
|
6663
|
+
/**
|
|
6664
|
+
* the public flags on a user's account
|
|
6665
|
+
*/
|
|
5685
6666
|
readonly public_flags: number;
|
|
6667
|
+
/**
|
|
6668
|
+
* the flags on a user's account
|
|
6669
|
+
*/
|
|
5686
6670
|
readonly flags: Int53Type;
|
|
6671
|
+
/**
|
|
6672
|
+
* whether the user belongs to an OAuth2 application
|
|
6673
|
+
*/
|
|
5687
6674
|
readonly bot?: boolean | undefined;
|
|
6675
|
+
/**
|
|
6676
|
+
* whether the user is an Official Discord System user (part of the urgent message system)
|
|
6677
|
+
*/
|
|
5688
6678
|
readonly system?: boolean | undefined;
|
|
6679
|
+
/**
|
|
6680
|
+
* the user's banner hash
|
|
6681
|
+
*/
|
|
5689
6682
|
readonly banner?: string | null | undefined;
|
|
6683
|
+
/**
|
|
6684
|
+
* the user's banner color encoded as an integer representation of hexadecimal color code
|
|
6685
|
+
*/
|
|
5690
6686
|
readonly accent_color?: number | null | undefined;
|
|
6687
|
+
/**
|
|
6688
|
+
* the user's display name, if it is set
|
|
6689
|
+
*/
|
|
5691
6690
|
readonly global_name: string | null;
|
|
6691
|
+
/**
|
|
6692
|
+
* data for the user's avatar decoration
|
|
6693
|
+
*/
|
|
5692
6694
|
readonly avatar_decoration_data?: UserAvatarDecorationResponse | null | undefined;
|
|
6695
|
+
/**
|
|
6696
|
+
* data for the user's collectibles
|
|
6697
|
+
*/
|
|
5693
6698
|
readonly collectibles?: UserCollectiblesResponse | null | undefined;
|
|
5694
6699
|
readonly primary_guild?: UserPrimaryGuildResponse | null | undefined;
|
|
5695
6700
|
readonly mfa_enabled: boolean;
|
|
@@ -6115,6 +7120,10 @@ export interface DiscordRest {
|
|
|
6115
7120
|
readonly getGuildEmoji: (guildId: string, emojiId: string) => Effect.Effect<EmojiResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6116
7121
|
readonly deleteGuildEmoji: (guildId: string, emojiId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6117
7122
|
readonly updateGuildEmoji: (guildId: string, emojiId: string, options: UpdateGuildEmojiRequest) => Effect.Effect<EmojiResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
7123
|
+
/**
|
|
7124
|
+
* Modifies the incident actions of the guild
|
|
7125
|
+
*/
|
|
7126
|
+
readonly updateGuildIncidentActions: (guildId: string, options: GuildIncidentActionsRequest) => Effect.Effect<GuildIncidentsDataResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6118
7127
|
readonly listGuildIntegrations: (guildId: string) => Effect.Effect<ListGuildIntegrations200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6119
7128
|
readonly deleteGuildIntegration: (guildId: string, integrationId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6120
7129
|
readonly listGuildInvites: (guildId: string) => Effect.Effect<ListGuildInvites200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
@@ -6155,7 +7164,27 @@ export interface DiscordRest {
|
|
|
6155
7164
|
readonly getGuildScheduledEvent: (guildId: string, guildScheduledEventId: string, options?: GetGuildScheduledEventParams | undefined) => Effect.Effect<GetGuildScheduledEvent200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6156
7165
|
readonly deleteGuildScheduledEvent: (guildId: string, guildScheduledEventId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6157
7166
|
readonly updateGuildScheduledEvent: (guildId: string, guildScheduledEventId: string, options: UpdateGuildScheduledEventRequest) => Effect.Effect<UpdateGuildScheduledEvent200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
7167
|
+
/**
|
|
7168
|
+
* Create an exception to a recurring guild scheduled event
|
|
7169
|
+
*/
|
|
7170
|
+
readonly createGuildScheduledEventException: (guildId: string, guildScheduledEventId: string, options: GuildScheduledEventExceptionCreateRequest) => Effect.Effect<GuildScheduledEventExceptionResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
7171
|
+
/**
|
|
7172
|
+
* Delete an exception to a recurring guild scheduled event
|
|
7173
|
+
*/
|
|
7174
|
+
readonly deleteGuildScheduledEventException: (guildId: string, guildScheduledEventId: string, exceptionId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
7175
|
+
/**
|
|
7176
|
+
* Modify an exception to a recurring guild scheduled event
|
|
7177
|
+
*/
|
|
7178
|
+
readonly updateGuildScheduledEventException: (guildId: string, guildScheduledEventId: string, exceptionId: string, options: GuildScheduledEventExceptionPatchRequestPartial) => Effect.Effect<GuildScheduledEventExceptionResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6158
7179
|
readonly listGuildScheduledEventUsers: (guildId: string, guildScheduledEventId: string, options?: ListGuildScheduledEventUsersParams | undefined) => Effect.Effect<ListGuildScheduledEventUsers200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
7180
|
+
/**
|
|
7181
|
+
* Get the count of users subscribed to a guild scheduled event
|
|
7182
|
+
*/
|
|
7183
|
+
readonly countGuildScheduledEventUsers: (guildId: string, guildScheduledEventId: string, options?: CountGuildScheduledEventUsersParams | undefined) => Effect.Effect<ScheduledEventUserCountResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
7184
|
+
/**
|
|
7185
|
+
* Get a list of users subscribed to a guild scheduled event exception
|
|
7186
|
+
*/
|
|
7187
|
+
readonly listGuildScheduledEventExceptionUsers: (guildId: string, guildScheduledEventId: string, guildScheduledEventExceptionId: string, options?: ListGuildScheduledEventExceptionUsersParams | undefined) => Effect.Effect<ListGuildScheduledEventExceptionUsers200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6159
7188
|
readonly listGuildSoundboardSounds: (guildId: string) => Effect.Effect<ListGuildSoundboardSoundsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6160
7189
|
readonly createGuildSoundboardSound: (guildId: string, options: SoundboardCreateRequest) => Effect.Effect<SoundboardSoundResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6161
7190
|
readonly getGuildSoundboardSound: (guildId: string, soundId: string) => Effect.Effect<SoundboardSoundResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
@@ -6205,6 +7234,10 @@ export interface DiscordRest {
|
|
|
6205
7234
|
readonly createOrJoinLobby: (options: CreateOrJoinLobbyRequest) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6206
7235
|
readonly createLobby: (options: CreateLobbyRequest) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6207
7236
|
readonly getLobby: (lobbyId: string) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
7237
|
+
/**
|
|
7238
|
+
* Deletes the specified lobby if it exists. It is safe to call even if the lobby is already deleted.
|
|
7239
|
+
*/
|
|
7240
|
+
readonly deleteLobby: (lobbyId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6208
7241
|
readonly editLobby: (lobbyId: string, options: EditLobbyRequest) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6209
7242
|
readonly editLobbyChannelLink: (lobbyId: string, options: EditLobbyChannelLinkRequest) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6210
7243
|
readonly leaveLobby: (lobbyId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
@@ -6231,6 +7264,14 @@ export interface DiscordRest {
|
|
|
6231
7264
|
readonly botPartnerSdkUnmergeProvisionalAccount: (options: BotPartnerSdkUnmergeProvisionalAccountRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6232
7265
|
readonly partnerSdkToken: (options: PartnerSdkTokenRequest) => Effect.Effect<ProvisionalTokenResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6233
7266
|
readonly botPartnerSdkToken: (options: BotPartnerSdkTokenRequest) => Effect.Effect<ProvisionalTokenResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
7267
|
+
/**
|
|
7268
|
+
* Returns all subscriptions containing the SKU, filtered by user.
|
|
7269
|
+
*/
|
|
7270
|
+
readonly getSkuSubscriptions: (skuId: string, options?: GetSkuSubscriptionsParams | undefined) => Effect.Effect<GetSkuSubscriptions200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
7271
|
+
/**
|
|
7272
|
+
* Get a subscription by its ID.
|
|
7273
|
+
*/
|
|
7274
|
+
readonly getSkuSubscription: (skuId: string, subscriptionId: string, options?: GetSkuSubscriptionParams | undefined) => Effect.Effect<SubscriptionResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6234
7275
|
readonly getSoundboardDefaultSounds: () => Effect.Effect<GetSoundboardDefaultSounds200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6235
7276
|
readonly createStageInstance: (options: CreateStageInstanceRequest) => Effect.Effect<StageInstanceResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6236
7277
|
readonly getStageInstance: (channelId: string) => Effect.Effect<StageInstanceResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|