dfx 1.0.13 → 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/DiscordConfig.d.ts.map +1 -1
- package/dist/DiscordConfig.js +1 -1
- package/dist/DiscordConfig.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 +1320 -49
- package/dist/DiscordREST/Generated.d.ts.map +1 -1
- package/dist/DiscordREST/Generated.js +288 -6
- 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/Interactions/webhook.d.ts.map +1 -1
- package/dist/Interactions/webhook.js +1 -1
- package/dist/Interactions/webhook.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/DiscordConfig.ts +1 -1
- package/src/DiscordGateway/DiscordWS.ts +1 -3
- package/src/DiscordGateway/Sharder.ts +5 -2
- package/src/DiscordREST/Generated.ts +1675 -71
- package/src/Interactions/gateway.ts +4 -3
- package/src/Interactions/webhook.ts +1 -1
- 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: {
|
|
@@ -357,6 +482,18 @@ export declare const ActionTypes: {
|
|
|
357
482
|
* Properties about the user changed
|
|
358
483
|
*/
|
|
359
484
|
readonly USER_UPDATE: "USER_UPDATE";
|
|
485
|
+
/**
|
|
486
|
+
* Entitlement was created
|
|
487
|
+
*/
|
|
488
|
+
readonly ENTITLEMENT_CREATE: "ENTITLEMENT_CREATE";
|
|
489
|
+
/**
|
|
490
|
+
* Entitlement was updated
|
|
491
|
+
*/
|
|
492
|
+
readonly ENTITLEMENT_UPDATE: "ENTITLEMENT_UPDATE";
|
|
493
|
+
/**
|
|
494
|
+
* Entitlement was deleted
|
|
495
|
+
*/
|
|
496
|
+
readonly ENTITLEMENT_DELETE: "ENTITLEMENT_DELETE";
|
|
360
497
|
/**
|
|
361
498
|
* Contains the initial state information
|
|
362
499
|
*/
|
|
@@ -377,6 +514,30 @@ export declare const ActionTypes: {
|
|
|
377
514
|
* Guild's voice server was updated
|
|
378
515
|
*/
|
|
379
516
|
readonly VOICE_SERVER_UPDATE: "VOICE_SERVER_UPDATE";
|
|
517
|
+
/**
|
|
518
|
+
* Sent when a message is created in a lobby
|
|
519
|
+
*/
|
|
520
|
+
readonly LOBBY_MESSAGE_CREATE: "LOBBY_MESSAGE_CREATE";
|
|
521
|
+
/**
|
|
522
|
+
* Sent when a message is updated in a lobby
|
|
523
|
+
*/
|
|
524
|
+
readonly LOBBY_MESSAGE_UPDATE: "LOBBY_MESSAGE_UPDATE";
|
|
525
|
+
/**
|
|
526
|
+
* Sent when a message is deleted from a lobby
|
|
527
|
+
*/
|
|
528
|
+
readonly LOBBY_MESSAGE_DELETE: "LOBBY_MESSAGE_DELETE";
|
|
529
|
+
/**
|
|
530
|
+
* Sent when a direct message is created during an active Social SDK session
|
|
531
|
+
*/
|
|
532
|
+
readonly GAME_DIRECT_MESSAGE_CREATE: "GAME_DIRECT_MESSAGE_CREATE";
|
|
533
|
+
/**
|
|
534
|
+
* Sent when a direct message is deleted during an active Social SDK session
|
|
535
|
+
*/
|
|
536
|
+
readonly GAME_DIRECT_MESSAGE_DELETE: "GAME_DIRECT_MESSAGE_DELETE";
|
|
537
|
+
/**
|
|
538
|
+
* Sent when a direct message is updated during an active Social SDK session
|
|
539
|
+
*/
|
|
540
|
+
readonly GAME_DIRECT_MESSAGE_UPDATE: "GAME_DIRECT_MESSAGE_UPDATE";
|
|
380
541
|
/**
|
|
381
542
|
* User used an interaction, such as an Application Command
|
|
382
543
|
*/
|
|
@@ -397,6 +558,14 @@ export declare const ActionTypes: {
|
|
|
397
558
|
* Application command permission was updated
|
|
398
559
|
*/
|
|
399
560
|
readonly APPLICATION_COMMAND_PERMISSIONS_UPDATE: "APPLICATION_COMMAND_PERMISSIONS_UPDATE";
|
|
561
|
+
/**
|
|
562
|
+
* Sent when an app was authorized by a user to a server or their account
|
|
563
|
+
*/
|
|
564
|
+
readonly APPLICATION_AUTHORIZED: "APPLICATION_AUTHORIZED";
|
|
565
|
+
/**
|
|
566
|
+
* Sent when an app was deauthorized by a user
|
|
567
|
+
*/
|
|
568
|
+
readonly APPLICATION_DEAUTHORIZED: "APPLICATION_DEAUTHORIZED";
|
|
400
569
|
/**
|
|
401
570
|
* Stage instance was created
|
|
402
571
|
*/
|
|
@@ -453,6 +622,10 @@ export declare const ActionTypes: {
|
|
|
453
622
|
readonly GUILD_SOUNDBOARD_SOUND_CREATE: "GUILD_SOUNDBOARD_SOUND_CREATE";
|
|
454
623
|
readonly GUILD_SOUNDBOARD_SOUND_UPDATE: "GUILD_SOUNDBOARD_SOUND_UPDATE";
|
|
455
624
|
readonly GUILD_SOUNDBOARD_SOUND_DELETE: "GUILD_SOUNDBOARD_SOUND_DELETE";
|
|
625
|
+
/**
|
|
626
|
+
* User was added to a Quest (currently unavailable)
|
|
627
|
+
*/
|
|
628
|
+
readonly QUEST_USER_ENROLLMENT: "QUEST_USER_ENROLLMENT";
|
|
456
629
|
readonly RATE_LIMITED: "RATE_LIMITED";
|
|
457
630
|
};
|
|
458
631
|
export type ActionTypes = (typeof ActionTypes)[keyof typeof ActionTypes];
|
|
@@ -528,6 +701,7 @@ export interface PrivateApplicationResponse {
|
|
|
528
701
|
readonly integration_types_config?: Record<string, unknown> | undefined;
|
|
529
702
|
readonly verify_key: string;
|
|
530
703
|
readonly flags: number;
|
|
704
|
+
readonly flags_new: string;
|
|
531
705
|
readonly max_participants?: number | null | undefined;
|
|
532
706
|
readonly tags?: ReadonlyArray<string> | undefined;
|
|
533
707
|
readonly redirect_uris: ReadonlyArray<string>;
|
|
@@ -539,9 +713,10 @@ export interface PrivateApplicationResponse {
|
|
|
539
713
|
readonly approximate_user_authorization_count: number;
|
|
540
714
|
readonly event_webhooks_url?: string | null | undefined;
|
|
541
715
|
readonly event_webhooks_status?: ApplicationEventWebhooksStatus | undefined;
|
|
542
|
-
readonly event_webhooks_types?: ReadonlyArray<
|
|
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;
|
|
543
717
|
readonly explicit_content_filter: ApplicationExplicitContentFilterTypes;
|
|
544
718
|
readonly team: TeamResponse | null;
|
|
719
|
+
readonly eligible_oauth2_scopes: ReadonlyArray<OAuth2Scopes>;
|
|
545
720
|
}
|
|
546
721
|
/**
|
|
547
722
|
* Ratelimit error object returned by the Discord API
|
|
@@ -621,8 +796,11 @@ export interface ApplicationFormPartial {
|
|
|
621
796
|
readonly role_connections_verification_url?: string | null | undefined;
|
|
622
797
|
readonly integration_types_config?: Record<string, unknown> | null | undefined;
|
|
623
798
|
readonly event_webhooks_status?: 1 | 2 | null | undefined;
|
|
799
|
+
/**
|
|
800
|
+
* Event webhooks URL for the app to receive webhook events
|
|
801
|
+
*/
|
|
624
802
|
readonly event_webhooks_url?: string | null | undefined;
|
|
625
|
-
readonly event_webhooks_types?: ReadonlyArray<
|
|
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;
|
|
626
804
|
}
|
|
627
805
|
export declare const EmbeddedActivityLocationKind: {
|
|
628
806
|
/**
|
|
@@ -681,17 +859,10 @@ export interface ApplicationResponse {
|
|
|
681
859
|
readonly integration_types_config?: Record<string, unknown> | undefined;
|
|
682
860
|
readonly verify_key: string;
|
|
683
861
|
readonly flags: number;
|
|
862
|
+
readonly flags_new: string;
|
|
684
863
|
readonly max_participants?: number | null | undefined;
|
|
685
864
|
readonly tags?: ReadonlyArray<string> | undefined;
|
|
686
865
|
}
|
|
687
|
-
export interface ClipSpeakingEventResponse {
|
|
688
|
-
readonly user_id: SnowflakeType;
|
|
689
|
-
readonly speaking_flags: number;
|
|
690
|
-
}
|
|
691
|
-
export interface ClipEventTimelineEntryResponse {
|
|
692
|
-
readonly timestamp_ms: number;
|
|
693
|
-
readonly speaking?: ClipSpeakingEventResponse | undefined;
|
|
694
|
-
}
|
|
695
866
|
export interface AttachmentResponse {
|
|
696
867
|
readonly id: SnowflakeType;
|
|
697
868
|
readonly filename: string;
|
|
@@ -712,7 +883,6 @@ export interface AttachmentResponse {
|
|
|
712
883
|
readonly application?: ApplicationResponse | undefined;
|
|
713
884
|
readonly clip_created_at?: string | undefined;
|
|
714
885
|
readonly clip_participants?: ReadonlyArray<UserResponse> | undefined;
|
|
715
|
-
readonly clip_events_timeline?: ReadonlyArray<ClipEventTimelineEntryResponse> | undefined;
|
|
716
886
|
}
|
|
717
887
|
export interface ActivitiesAttachmentResponse {
|
|
718
888
|
readonly attachment: AttachmentResponse;
|
|
@@ -1006,6 +1176,17 @@ export interface ApplicationCommandSubcommandGroupOptionResponse {
|
|
|
1006
1176
|
readonly required?: boolean | undefined;
|
|
1007
1177
|
readonly options?: ReadonlyArray<ApplicationCommandSubcommandOptionResponse> | undefined;
|
|
1008
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];
|
|
1009
1190
|
export interface ApplicationCommandResponse {
|
|
1010
1191
|
readonly id: SnowflakeType;
|
|
1011
1192
|
readonly application_id: SnowflakeType;
|
|
@@ -1024,6 +1205,10 @@ export interface ApplicationCommandResponse {
|
|
|
1024
1205
|
readonly integration_types?: ReadonlyArray<ApplicationIntegrationType> | undefined;
|
|
1025
1206
|
readonly options?: ReadonlyArray<ApplicationCommandAttachmentOptionResponse | ApplicationCommandBooleanOptionResponse | ApplicationCommandChannelOptionResponse | ApplicationCommandIntegerOptionResponse | ApplicationCommandMentionableOptionResponse | ApplicationCommandNumberOptionResponse | ApplicationCommandRoleOptionResponse | ApplicationCommandStringOptionResponse | ApplicationCommandSubcommandGroupOptionResponse | ApplicationCommandSubcommandOptionResponse | ApplicationCommandUserOptionResponse> | undefined;
|
|
1026
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;
|
|
1027
1212
|
}
|
|
1028
1213
|
export type ListApplicationCommands200 = ReadonlyArray<ApplicationCommandResponse>;
|
|
1029
1214
|
export interface ApplicationCommandAttachmentOption {
|
|
@@ -1144,7 +1329,6 @@ export interface ApplicationCommandSubcommandGroupOption {
|
|
|
1144
1329
|
readonly required?: boolean | null | undefined;
|
|
1145
1330
|
readonly options?: ReadonlyArray<ApplicationCommandSubcommandOption> | null | undefined;
|
|
1146
1331
|
}
|
|
1147
|
-
export type ApplicationCommandHandler = number;
|
|
1148
1332
|
export interface ApplicationCommandUpdateRequest {
|
|
1149
1333
|
readonly name: string;
|
|
1150
1334
|
readonly name_localizations?: Record<string, unknown> | null | undefined;
|
|
@@ -1155,6 +1339,9 @@ export interface ApplicationCommandUpdateRequest {
|
|
|
1155
1339
|
readonly dm_permission?: boolean | null | undefined;
|
|
1156
1340
|
readonly contexts?: ReadonlyArray<InteractionContextType> | null | undefined;
|
|
1157
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
|
+
*/
|
|
1158
1345
|
readonly handler?: ApplicationCommandHandler | null | undefined;
|
|
1159
1346
|
readonly type?: ApplicationCommandType | null | undefined;
|
|
1160
1347
|
readonly id?: SnowflakeType | null | undefined;
|
|
@@ -1171,6 +1358,9 @@ export interface ApplicationCommandCreateRequest {
|
|
|
1171
1358
|
readonly dm_permission?: boolean | null | undefined;
|
|
1172
1359
|
readonly contexts?: ReadonlyArray<InteractionContextType> | null | undefined;
|
|
1173
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
|
+
*/
|
|
1174
1364
|
readonly handler?: ApplicationCommandHandler | null | undefined;
|
|
1175
1365
|
readonly type?: ApplicationCommandType | null | undefined;
|
|
1176
1366
|
}
|
|
@@ -1184,6 +1374,9 @@ export interface ApplicationCommandPatchRequestPartial {
|
|
|
1184
1374
|
readonly dm_permission?: boolean | null | undefined;
|
|
1185
1375
|
readonly contexts?: ReadonlyArray<InteractionContextType> | null | undefined;
|
|
1186
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
|
+
*/
|
|
1187
1380
|
readonly handler?: ApplicationCommandHandler | null | undefined;
|
|
1188
1381
|
}
|
|
1189
1382
|
export interface EmojiResponse {
|
|
@@ -1250,10 +1443,29 @@ export interface EntitlementResponse {
|
|
|
1250
1443
|
readonly parent_id?: SnowflakeType | null | undefined;
|
|
1251
1444
|
}
|
|
1252
1445
|
export type GetEntitlements200 = ReadonlyArray<EntitlementResponse>;
|
|
1253
|
-
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];
|
|
1254
1457
|
export interface CreateEntitlementRequestData {
|
|
1458
|
+
/**
|
|
1459
|
+
* ID of the SKU to grant the entitlement to
|
|
1460
|
+
*/
|
|
1255
1461
|
readonly sku_id: SnowflakeType;
|
|
1462
|
+
/**
|
|
1463
|
+
* ID of the guild or user to grant the entitlement to
|
|
1464
|
+
*/
|
|
1256
1465
|
readonly owner_id: SnowflakeType;
|
|
1466
|
+
/**
|
|
1467
|
+
* 1 for a guild subscription, 2 for a user subscription
|
|
1468
|
+
*/
|
|
1257
1469
|
readonly owner_type: EntitlementOwnerTypes;
|
|
1258
1470
|
}
|
|
1259
1471
|
export interface ListGuildApplicationCommandsParams {
|
|
@@ -1466,8 +1678,6 @@ export interface GuildChannelResponse {
|
|
|
1466
1678
|
readonly default_sort_order?: ThreadSortOrder | null | undefined;
|
|
1467
1679
|
readonly default_forum_layout?: ForumLayout | undefined;
|
|
1468
1680
|
readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined;
|
|
1469
|
-
readonly hd_streaming_until?: string | undefined;
|
|
1470
|
-
readonly hd_streaming_buyer_id?: SnowflakeType | undefined;
|
|
1471
1681
|
}
|
|
1472
1682
|
export interface PrivateChannelResponse {
|
|
1473
1683
|
readonly id: SnowflakeType;
|
|
@@ -1499,19 +1709,61 @@ export interface ThreadMetadataResponse {
|
|
|
1499
1709
|
readonly invitable?: boolean | undefined;
|
|
1500
1710
|
}
|
|
1501
1711
|
export interface GuildMemberResponse {
|
|
1712
|
+
/**
|
|
1713
|
+
* the member's guild avatar hash
|
|
1714
|
+
*/
|
|
1502
1715
|
readonly avatar: string | null;
|
|
1716
|
+
/**
|
|
1717
|
+
* data for the member's guild avatar decoration
|
|
1718
|
+
*/
|
|
1503
1719
|
readonly avatar_decoration_data?: UserAvatarDecorationResponse | null | undefined;
|
|
1720
|
+
/**
|
|
1721
|
+
* the member's guild banner hash
|
|
1722
|
+
*/
|
|
1504
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
|
+
*/
|
|
1505
1727
|
readonly communication_disabled_until: string | null;
|
|
1728
|
+
/**
|
|
1729
|
+
* guild member flags represented as a bit set, defaults to 0
|
|
1730
|
+
*/
|
|
1506
1731
|
readonly flags: number;
|
|
1732
|
+
/**
|
|
1733
|
+
* when the user joined the guild
|
|
1734
|
+
*/
|
|
1507
1735
|
readonly joined_at: string;
|
|
1736
|
+
/**
|
|
1737
|
+
* this user's guild nickname
|
|
1738
|
+
*/
|
|
1508
1739
|
readonly nick: string | null;
|
|
1740
|
+
/**
|
|
1741
|
+
* whether the user has not yet passed the guild's Membership Screening requirements
|
|
1742
|
+
*/
|
|
1509
1743
|
readonly pending: boolean;
|
|
1744
|
+
/**
|
|
1745
|
+
* when the user started boosting the guild
|
|
1746
|
+
*/
|
|
1510
1747
|
readonly premium_since: string | null;
|
|
1748
|
+
/**
|
|
1749
|
+
* array of role object ids
|
|
1750
|
+
*/
|
|
1511
1751
|
readonly roles: ReadonlyArray<SnowflakeType>;
|
|
1752
|
+
/**
|
|
1753
|
+
* data for the member's collectibles
|
|
1754
|
+
*/
|
|
1512
1755
|
readonly collectibles?: UserCollectiblesResponse | null | undefined;
|
|
1756
|
+
/**
|
|
1757
|
+
* the user this guild member represents
|
|
1758
|
+
*/
|
|
1513
1759
|
readonly user: UserResponse;
|
|
1760
|
+
/**
|
|
1761
|
+
* whether the user is muted in voice channels
|
|
1762
|
+
*/
|
|
1514
1763
|
readonly mute: boolean;
|
|
1764
|
+
/**
|
|
1765
|
+
* whether the user is deafened in voice channels
|
|
1766
|
+
*/
|
|
1515
1767
|
readonly deaf: boolean;
|
|
1516
1768
|
}
|
|
1517
1769
|
export interface ThreadMemberResponse {
|
|
@@ -1622,7 +1874,9 @@ export declare const InviteTypes: {
|
|
|
1622
1874
|
};
|
|
1623
1875
|
export type InviteTypes = (typeof InviteTypes)[keyof typeof InviteTypes];
|
|
1624
1876
|
export interface InviteChannelRecipientResponse {
|
|
1877
|
+
readonly id: SnowflakeType;
|
|
1625
1878
|
readonly username: string;
|
|
1879
|
+
readonly avatar: string | null;
|
|
1626
1880
|
}
|
|
1627
1881
|
export interface InviteChannelResponse {
|
|
1628
1882
|
readonly id: SnowflakeType;
|
|
@@ -1732,6 +1986,10 @@ export declare const GuildFeatures: {
|
|
|
1732
1986
|
* guild has disabled activity alerts in the configured safety alerts channel
|
|
1733
1987
|
*/
|
|
1734
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";
|
|
1735
1993
|
/**
|
|
1736
1994
|
* guild is able to set role icons
|
|
1737
1995
|
*/
|
|
@@ -1841,6 +2099,7 @@ export interface InviteApplicationResponse {
|
|
|
1841
2099
|
readonly integration_types_config?: Record<string, unknown> | undefined;
|
|
1842
2100
|
readonly verify_key: string;
|
|
1843
2101
|
readonly flags: number;
|
|
2102
|
+
readonly flags_new: string;
|
|
1844
2103
|
readonly max_participants?: number | null | undefined;
|
|
1845
2104
|
readonly tags?: ReadonlyArray<string> | undefined;
|
|
1846
2105
|
}
|
|
@@ -1858,30 +2117,221 @@ export declare const GuildScheduledEventEntityTypes: {
|
|
|
1858
2117
|
readonly EXTERNAL: 3;
|
|
1859
2118
|
};
|
|
1860
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
|
+
}
|
|
1861
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];
|
|
1862
2216
|
export interface ScheduledEventUserResponse {
|
|
2217
|
+
/**
|
|
2218
|
+
* ID of the scheduled event
|
|
2219
|
+
*/
|
|
1863
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
|
+
*/
|
|
1864
2228
|
readonly user_id: SnowflakeType;
|
|
2229
|
+
/**
|
|
2230
|
+
* User object for the RSVP user
|
|
2231
|
+
*/
|
|
1865
2232
|
readonly user?: UserResponse | undefined;
|
|
2233
|
+
/**
|
|
2234
|
+
* Guild member object for the RSVP user
|
|
2235
|
+
*/
|
|
1866
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;
|
|
1867
2263
|
}
|
|
1868
2264
|
export interface ScheduledEventResponse {
|
|
2265
|
+
/**
|
|
2266
|
+
* ID of the scheduled event
|
|
2267
|
+
*/
|
|
1869
2268
|
readonly id: SnowflakeType;
|
|
2269
|
+
/**
|
|
2270
|
+
* ID of the guild the scheduled event belongs to
|
|
2271
|
+
*/
|
|
1870
2272
|
readonly guild_id: SnowflakeType;
|
|
2273
|
+
/**
|
|
2274
|
+
* Name of the scheduled event
|
|
2275
|
+
*/
|
|
1871
2276
|
readonly name: string;
|
|
2277
|
+
/**
|
|
2278
|
+
* Description of the scheduled event
|
|
2279
|
+
*/
|
|
1872
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
|
+
*/
|
|
1873
2284
|
readonly channel_id: SnowflakeType | null;
|
|
2285
|
+
/**
|
|
2286
|
+
* ID of the user that created the scheduled event
|
|
2287
|
+
*/
|
|
1874
2288
|
readonly creator_id: SnowflakeType | null;
|
|
2289
|
+
/**
|
|
2290
|
+
* User that created the scheduled event
|
|
2291
|
+
*/
|
|
1875
2292
|
readonly creator?: UserResponse | undefined;
|
|
2293
|
+
/**
|
|
2294
|
+
* Cover image hash of the scheduled event
|
|
2295
|
+
*/
|
|
1876
2296
|
readonly image: string | null;
|
|
2297
|
+
/**
|
|
2298
|
+
* When the scheduled event will start
|
|
2299
|
+
*/
|
|
1877
2300
|
readonly scheduled_start_time: string;
|
|
2301
|
+
/**
|
|
2302
|
+
* When the scheduled event will end, or null if no end time
|
|
2303
|
+
*/
|
|
1878
2304
|
readonly scheduled_end_time: string | null;
|
|
2305
|
+
/**
|
|
2306
|
+
* Status of the scheduled event
|
|
2307
|
+
*/
|
|
1879
2308
|
readonly status: GuildScheduledEventStatuses;
|
|
2309
|
+
/**
|
|
2310
|
+
* Type of hosting entity associated with the scheduled event
|
|
2311
|
+
*/
|
|
1880
2312
|
readonly entity_type: GuildScheduledEventEntityTypes;
|
|
2313
|
+
/**
|
|
2314
|
+
* ID of the hosting entity associated with the scheduled event
|
|
2315
|
+
*/
|
|
1881
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
|
+
*/
|
|
1882
2324
|
readonly user_count?: number | undefined;
|
|
2325
|
+
/**
|
|
2326
|
+
* Privacy level of the scheduled event
|
|
2327
|
+
*/
|
|
1883
2328
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
1884
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;
|
|
1885
2335
|
}
|
|
1886
2336
|
export interface GuildRoleColorsResponse {
|
|
1887
2337
|
readonly primary_color: number;
|
|
@@ -1914,6 +2364,9 @@ export interface GuildInviteResponse {
|
|
|
1914
2364
|
readonly target_user?: UserResponse | undefined;
|
|
1915
2365
|
readonly target_application?: InviteApplicationResponse | undefined;
|
|
1916
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;
|
|
1917
2370
|
readonly uses?: number | undefined;
|
|
1918
2371
|
readonly max_uses?: number | undefined;
|
|
1919
2372
|
readonly temporary?: boolean | undefined;
|
|
@@ -1934,6 +2387,7 @@ export interface CreateGuildInviteRequest {
|
|
|
1934
2387
|
readonly target_user_id?: SnowflakeType | null | undefined;
|
|
1935
2388
|
readonly target_application_id?: SnowflakeType | null | undefined;
|
|
1936
2389
|
readonly target_type?: 1 | 2 | null | undefined;
|
|
2390
|
+
readonly role_ids?: string | ReadonlyArray<SnowflakeType> | null | undefined;
|
|
1937
2391
|
}
|
|
1938
2392
|
export type CreateChannelInviteRequest = CreateGroupDMInviteRequest | CreateGuildInviteRequest;
|
|
1939
2393
|
export type CreateChannelInvite200 = FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse;
|
|
@@ -2003,7 +2457,6 @@ export interface MessageAttachmentResponse {
|
|
|
2003
2457
|
readonly application?: ApplicationResponse | undefined;
|
|
2004
2458
|
readonly clip_created_at?: string | undefined;
|
|
2005
2459
|
readonly clip_participants?: ReadonlyArray<UserResponse> | undefined;
|
|
2006
|
-
readonly clip_events_timeline?: ReadonlyArray<ClipEventTimelineEntryResponse> | undefined;
|
|
2007
2460
|
}
|
|
2008
2461
|
export interface MessageEmbedFieldResponse {
|
|
2009
2462
|
readonly name: string;
|
|
@@ -2406,7 +2859,7 @@ export interface MessageActivityResponse {
|
|
|
2406
2859
|
readonly type: ActivityActionTypes;
|
|
2407
2860
|
readonly party_id?: string | undefined;
|
|
2408
2861
|
}
|
|
2409
|
-
export interface
|
|
2862
|
+
export interface BasicApplicationResponseWithBot {
|
|
2410
2863
|
readonly id: SnowflakeType;
|
|
2411
2864
|
readonly name: string;
|
|
2412
2865
|
readonly icon: string | null;
|
|
@@ -2490,29 +2943,74 @@ export interface MessageReactionEmojiResponse {
|
|
|
2490
2943
|
readonly animated?: boolean | undefined;
|
|
2491
2944
|
}
|
|
2492
2945
|
export interface PollMediaResponse {
|
|
2946
|
+
/**
|
|
2947
|
+
* The text of the field
|
|
2948
|
+
*/
|
|
2493
2949
|
readonly text?: string | undefined;
|
|
2950
|
+
/**
|
|
2951
|
+
* The emoji of the field
|
|
2952
|
+
*/
|
|
2494
2953
|
readonly emoji?: MessageReactionEmojiResponse | undefined;
|
|
2495
2954
|
}
|
|
2496
2955
|
export interface PollAnswerResponse {
|
|
2956
|
+
/**
|
|
2957
|
+
* The ID of the answer
|
|
2958
|
+
*/
|
|
2497
2959
|
readonly answer_id: number;
|
|
2960
|
+
/**
|
|
2961
|
+
* The data of the answer
|
|
2962
|
+
*/
|
|
2498
2963
|
readonly poll_media: PollMediaResponse;
|
|
2499
2964
|
}
|
|
2500
|
-
export type PollLayoutTypes =
|
|
2965
|
+
export type PollLayoutTypes = 1;
|
|
2501
2966
|
export interface PollResultsEntryResponse {
|
|
2967
|
+
/**
|
|
2968
|
+
* The answer_id
|
|
2969
|
+
*/
|
|
2502
2970
|
readonly id: number;
|
|
2971
|
+
/**
|
|
2972
|
+
* The number of votes for this answer
|
|
2973
|
+
*/
|
|
2503
2974
|
readonly count: number;
|
|
2975
|
+
/**
|
|
2976
|
+
* Whether the current user voted for this answer
|
|
2977
|
+
*/
|
|
2504
2978
|
readonly me_voted: boolean;
|
|
2505
2979
|
}
|
|
2506
2980
|
export interface PollResultsResponse {
|
|
2981
|
+
/**
|
|
2982
|
+
* The counts for each answer
|
|
2983
|
+
*/
|
|
2507
2984
|
readonly answer_counts: ReadonlyArray<PollResultsEntryResponse>;
|
|
2985
|
+
/**
|
|
2986
|
+
* Whether the votes have been precisely counted
|
|
2987
|
+
*/
|
|
2508
2988
|
readonly is_finalized: boolean;
|
|
2509
2989
|
}
|
|
2510
2990
|
export interface PollResponse {
|
|
2991
|
+
/**
|
|
2992
|
+
* The question of the poll. Only `text` is supported.
|
|
2993
|
+
*/
|
|
2511
2994
|
readonly question: PollMediaResponse;
|
|
2995
|
+
/**
|
|
2996
|
+
* Each of the answers available in the poll
|
|
2997
|
+
*/
|
|
2512
2998
|
readonly answers: ReadonlyArray<PollAnswerResponse>;
|
|
2999
|
+
/**
|
|
3000
|
+
* The time when the poll ends
|
|
3001
|
+
*/
|
|
2513
3002
|
readonly expiry: string;
|
|
3003
|
+
/**
|
|
3004
|
+
* Whether a user can select multiple answers
|
|
3005
|
+
*/
|
|
2514
3006
|
readonly allow_multiselect: boolean;
|
|
3007
|
+
/**
|
|
3008
|
+
* The layout type of the poll
|
|
3009
|
+
*/
|
|
2515
3010
|
readonly layout_type: PollLayoutTypes;
|
|
3011
|
+
/**
|
|
3012
|
+
* The results of the poll
|
|
3013
|
+
*/
|
|
2516
3014
|
readonly results: PollResultsResponse;
|
|
2517
3015
|
}
|
|
2518
3016
|
export declare const MessageShareCustomUserThemeBaseTheme: {
|
|
@@ -2586,6 +3084,9 @@ export interface MinimalContentMessageResponse {
|
|
|
2586
3084
|
export interface MessageSnapshotResponse {
|
|
2587
3085
|
readonly message: MinimalContentMessageResponse;
|
|
2588
3086
|
}
|
|
3087
|
+
export interface MessageLobbyMemberResponse {
|
|
3088
|
+
readonly additional_name: string;
|
|
3089
|
+
}
|
|
2589
3090
|
export interface MessageReactionCountDetailsResponse {
|
|
2590
3091
|
readonly burst: number;
|
|
2591
3092
|
readonly normal: number;
|
|
@@ -2619,7 +3120,7 @@ export interface BasicMessageResponse {
|
|
|
2619
3120
|
readonly tts: boolean;
|
|
2620
3121
|
readonly call?: MessageCallResponse | undefined;
|
|
2621
3122
|
readonly activity?: MessageActivityResponse | undefined;
|
|
2622
|
-
readonly application?:
|
|
3123
|
+
readonly application?: BasicApplicationResponseWithBot | undefined;
|
|
2623
3124
|
readonly application_id?: SnowflakeType | undefined;
|
|
2624
3125
|
readonly interaction?: MessageInteractionResponse | undefined;
|
|
2625
3126
|
readonly nonce?: number | string | undefined;
|
|
@@ -2635,6 +3136,7 @@ export interface BasicMessageResponse {
|
|
|
2635
3136
|
readonly shared_client_theme?: CustomClientThemeResponse | undefined;
|
|
2636
3137
|
readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | undefined;
|
|
2637
3138
|
readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | undefined;
|
|
3139
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined;
|
|
2638
3140
|
}
|
|
2639
3141
|
export interface MessageResponse {
|
|
2640
3142
|
readonly type: MessageType;
|
|
@@ -2657,7 +3159,7 @@ export interface MessageResponse {
|
|
|
2657
3159
|
readonly tts: boolean;
|
|
2658
3160
|
readonly call?: MessageCallResponse | undefined;
|
|
2659
3161
|
readonly activity?: MessageActivityResponse | undefined;
|
|
2660
|
-
readonly application?:
|
|
3162
|
+
readonly application?: BasicApplicationResponseWithBot | undefined;
|
|
2661
3163
|
readonly application_id?: SnowflakeType | undefined;
|
|
2662
3164
|
readonly interaction?: MessageInteractionResponse | undefined;
|
|
2663
3165
|
readonly nonce?: number | string | undefined;
|
|
@@ -2673,6 +3175,7 @@ export interface MessageResponse {
|
|
|
2673
3175
|
readonly shared_client_theme?: CustomClientThemeResponse | undefined;
|
|
2674
3176
|
readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | undefined;
|
|
2675
3177
|
readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | undefined;
|
|
3178
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined;
|
|
2676
3179
|
readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined;
|
|
2677
3180
|
readonly referenced_message?: BasicMessageResponse | null | undefined;
|
|
2678
3181
|
}
|
|
@@ -2913,34 +3416,83 @@ export interface MessageAttachmentRequest {
|
|
|
2913
3416
|
readonly duration_secs?: number | null | undefined;
|
|
2914
3417
|
readonly waveform?: string | null | undefined;
|
|
2915
3418
|
readonly title?: string | null | undefined;
|
|
3419
|
+
readonly is_spoiler?: boolean | null | undefined;
|
|
2916
3420
|
readonly is_remix?: boolean | null | undefined;
|
|
2917
3421
|
}
|
|
2918
3422
|
export interface PollEmoji {
|
|
3423
|
+
/**
|
|
3424
|
+
* The ID of the custom emoji
|
|
3425
|
+
*/
|
|
2919
3426
|
readonly id?: SnowflakeType | null | undefined;
|
|
3427
|
+
/**
|
|
3428
|
+
* The name of the emoji, or the unicode emoji character
|
|
3429
|
+
*/
|
|
2920
3430
|
readonly name?: string | null | undefined;
|
|
3431
|
+
/**
|
|
3432
|
+
* Whether the emoji is animated
|
|
3433
|
+
*/
|
|
2921
3434
|
readonly animated?: boolean | null | undefined;
|
|
2922
3435
|
}
|
|
2923
3436
|
export interface PollMedia {
|
|
3437
|
+
/**
|
|
3438
|
+
* The text of the field
|
|
3439
|
+
*/
|
|
2924
3440
|
readonly text?: string | null | undefined;
|
|
3441
|
+
/**
|
|
3442
|
+
* The emoji of the field
|
|
3443
|
+
*/
|
|
2925
3444
|
readonly emoji?: PollEmoji | null | undefined;
|
|
2926
3445
|
}
|
|
2927
3446
|
export interface PollEmojiCreateRequest {
|
|
3447
|
+
/**
|
|
3448
|
+
* The ID of the custom emoji
|
|
3449
|
+
*/
|
|
2928
3450
|
readonly id?: SnowflakeType | null | undefined;
|
|
3451
|
+
/**
|
|
3452
|
+
* The name of the emoji, or the unicode emoji character
|
|
3453
|
+
*/
|
|
2929
3454
|
readonly name?: string | null | undefined;
|
|
3455
|
+
/**
|
|
3456
|
+
* Whether the emoji is animated
|
|
3457
|
+
*/
|
|
2930
3458
|
readonly animated?: boolean | null | undefined;
|
|
2931
3459
|
}
|
|
2932
3460
|
export interface PollMediaCreateRequest {
|
|
3461
|
+
/**
|
|
3462
|
+
* The text of the field
|
|
3463
|
+
*/
|
|
2933
3464
|
readonly text?: string | null | undefined;
|
|
3465
|
+
/**
|
|
3466
|
+
* The emoji of the field
|
|
3467
|
+
*/
|
|
2934
3468
|
readonly emoji?: PollEmojiCreateRequest | null | undefined;
|
|
2935
3469
|
}
|
|
2936
3470
|
export interface PollAnswerCreateRequest {
|
|
3471
|
+
/**
|
|
3472
|
+
* The data of the answer
|
|
3473
|
+
*/
|
|
2937
3474
|
readonly poll_media: PollMediaCreateRequest;
|
|
2938
3475
|
}
|
|
2939
3476
|
export interface PollCreateRequest {
|
|
3477
|
+
/**
|
|
3478
|
+
* The question of the poll. Only `text` is supported.
|
|
3479
|
+
*/
|
|
2940
3480
|
readonly question: PollMedia;
|
|
3481
|
+
/**
|
|
3482
|
+
* Each of the answers available in the poll, up to 10
|
|
3483
|
+
*/
|
|
2941
3484
|
readonly answers: ReadonlyArray<PollAnswerCreateRequest>;
|
|
3485
|
+
/**
|
|
3486
|
+
* Whether a user can select multiple answers
|
|
3487
|
+
*/
|
|
2942
3488
|
readonly allow_multiselect?: boolean | null | undefined;
|
|
3489
|
+
/**
|
|
3490
|
+
* The layout type of the poll. Defaults to... DEFAULT!
|
|
3491
|
+
*/
|
|
2943
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
|
+
*/
|
|
2944
3496
|
readonly duration?: number | null | undefined;
|
|
2945
3497
|
}
|
|
2946
3498
|
export interface CustomClientThemeShareRequest {
|
|
@@ -3143,6 +3695,12 @@ export interface ThreadSearchResponse {
|
|
|
3143
3695
|
readonly first_messages?: ReadonlyArray<MessageResponse> | undefined;
|
|
3144
3696
|
readonly total_results: number;
|
|
3145
3697
|
}
|
|
3698
|
+
export interface SearchIndexNotReadyResponse {
|
|
3699
|
+
readonly message: string;
|
|
3700
|
+
readonly code: number;
|
|
3701
|
+
readonly documents_indexed: number;
|
|
3702
|
+
readonly retry_after: number;
|
|
3703
|
+
}
|
|
3146
3704
|
export interface TypingIndicatorResponse {
|
|
3147
3705
|
}
|
|
3148
3706
|
export interface ListMyPrivateArchivedThreadsParams {
|
|
@@ -3428,8 +3986,6 @@ export interface GuildTemplateChannelTags {
|
|
|
3428
3986
|
readonly emoji_name: string | null;
|
|
3429
3987
|
readonly moderated: boolean | null;
|
|
3430
3988
|
}
|
|
3431
|
-
export interface IconEmojiResponse {
|
|
3432
|
-
}
|
|
3433
3989
|
export interface GuildTemplateChannelResponse {
|
|
3434
3990
|
readonly id: number | null;
|
|
3435
3991
|
readonly type: 0 | 2 | 4 | 15;
|
|
@@ -3450,7 +4006,6 @@ export interface GuildTemplateChannelResponse {
|
|
|
3450
4006
|
readonly default_sort_order: ThreadSortOrder | null;
|
|
3451
4007
|
readonly default_forum_layout: ForumLayout | null;
|
|
3452
4008
|
readonly default_tag_setting: ThreadSearchTagSetting | null;
|
|
3453
|
-
readonly icon_emoji: IconEmojiResponse | null;
|
|
3454
4009
|
readonly theme_color: number | null;
|
|
3455
4010
|
}
|
|
3456
4011
|
export interface GuildTemplateSnapshotResponse {
|
|
@@ -3495,7 +4050,6 @@ export interface GuildRoleTagsResponse {
|
|
|
3495
4050
|
export interface GuildRoleResponse {
|
|
3496
4051
|
readonly id: SnowflakeType;
|
|
3497
4052
|
readonly name: string;
|
|
3498
|
-
readonly description: string | null;
|
|
3499
4053
|
readonly permissions: string;
|
|
3500
4054
|
readonly position: number;
|
|
3501
4055
|
readonly color: number;
|
|
@@ -3539,7 +4093,13 @@ export declare const PremiumGuildTiers: {
|
|
|
3539
4093
|
};
|
|
3540
4094
|
export type PremiumGuildTiers = (typeof PremiumGuildTiers)[keyof typeof PremiumGuildTiers];
|
|
3541
4095
|
export interface GuildIncidentsDataResponse {
|
|
4096
|
+
/**
|
|
4097
|
+
* When invites get enabled again
|
|
4098
|
+
*/
|
|
3542
4099
|
readonly invites_disabled_until: string | null;
|
|
4100
|
+
/**
|
|
4101
|
+
* When direct messages get enabled again
|
|
4102
|
+
*/
|
|
3543
4103
|
readonly dms_disabled_until: string | null;
|
|
3544
4104
|
}
|
|
3545
4105
|
export interface GuildWithCountsResponse {
|
|
@@ -3726,6 +4286,18 @@ export declare const AuditLogActionTypes: {
|
|
|
3726
4286
|
readonly HOME_SETTINGS_UPDATE: 191;
|
|
3727
4287
|
readonly VOICE_CHANNEL_STATUS_CREATE: 192;
|
|
3728
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;
|
|
3729
4301
|
readonly GUILD_PROFILE_UPDATE: 211;
|
|
3730
4302
|
};
|
|
3731
4303
|
export type AuditLogActionTypes = (typeof AuditLogActionTypes)[keyof typeof AuditLogActionTypes];
|
|
@@ -3780,67 +4352,220 @@ export interface PartialGuildSubscriptionIntegrationResponse {
|
|
|
3780
4352
|
readonly account: AccountResponse;
|
|
3781
4353
|
}
|
|
3782
4354
|
export interface EntityMetadataExternalResponse {
|
|
4355
|
+
/**
|
|
4356
|
+
* Location of the external event
|
|
4357
|
+
*/
|
|
3783
4358
|
readonly location: string;
|
|
3784
4359
|
}
|
|
3785
4360
|
export interface ExternalScheduledEventResponse {
|
|
4361
|
+
/**
|
|
4362
|
+
* ID of the scheduled event
|
|
4363
|
+
*/
|
|
3786
4364
|
readonly id: SnowflakeType;
|
|
4365
|
+
/**
|
|
4366
|
+
* ID of the guild the scheduled event belongs to
|
|
4367
|
+
*/
|
|
3787
4368
|
readonly guild_id: SnowflakeType;
|
|
4369
|
+
/**
|
|
4370
|
+
* Name of the scheduled event
|
|
4371
|
+
*/
|
|
3788
4372
|
readonly name: string;
|
|
4373
|
+
/**
|
|
4374
|
+
* Description of the scheduled event
|
|
4375
|
+
*/
|
|
3789
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
|
+
*/
|
|
3790
4380
|
readonly channel_id: SnowflakeType | null;
|
|
4381
|
+
/**
|
|
4382
|
+
* ID of the user that created the scheduled event
|
|
4383
|
+
*/
|
|
3791
4384
|
readonly creator_id: SnowflakeType | null;
|
|
4385
|
+
/**
|
|
4386
|
+
* User that created the scheduled event
|
|
4387
|
+
*/
|
|
3792
4388
|
readonly creator?: UserResponse | undefined;
|
|
4389
|
+
/**
|
|
4390
|
+
* Cover image hash of the scheduled event
|
|
4391
|
+
*/
|
|
3793
4392
|
readonly image: string | null;
|
|
4393
|
+
/**
|
|
4394
|
+
* When the scheduled event will start
|
|
4395
|
+
*/
|
|
3794
4396
|
readonly scheduled_start_time: string;
|
|
4397
|
+
/**
|
|
4398
|
+
* When the scheduled event will end, or null if no end time
|
|
4399
|
+
*/
|
|
3795
4400
|
readonly scheduled_end_time: string | null;
|
|
4401
|
+
/**
|
|
4402
|
+
* Status of the scheduled event
|
|
4403
|
+
*/
|
|
3796
4404
|
readonly status: GuildScheduledEventStatuses;
|
|
4405
|
+
/**
|
|
4406
|
+
* Type of hosting entity associated with the scheduled event
|
|
4407
|
+
*/
|
|
3797
4408
|
readonly entity_type: 3;
|
|
4409
|
+
/**
|
|
4410
|
+
* ID of the hosting entity associated with the scheduled event
|
|
4411
|
+
*/
|
|
3798
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
|
+
*/
|
|
3799
4420
|
readonly user_count?: number | undefined;
|
|
4421
|
+
/**
|
|
4422
|
+
* Privacy level of the scheduled event
|
|
4423
|
+
*/
|
|
3800
4424
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
3801
4425
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
|
|
4426
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>;
|
|
3802
4427
|
readonly entity_metadata: EntityMetadataExternalResponse;
|
|
3803
4428
|
}
|
|
3804
4429
|
export interface EntityMetadataStageInstanceResponse {
|
|
3805
4430
|
}
|
|
3806
4431
|
export interface StageScheduledEventResponse {
|
|
4432
|
+
/**
|
|
4433
|
+
* ID of the scheduled event
|
|
4434
|
+
*/
|
|
3807
4435
|
readonly id: SnowflakeType;
|
|
4436
|
+
/**
|
|
4437
|
+
* ID of the guild the scheduled event belongs to
|
|
4438
|
+
*/
|
|
3808
4439
|
readonly guild_id: SnowflakeType;
|
|
4440
|
+
/**
|
|
4441
|
+
* Name of the scheduled event
|
|
4442
|
+
*/
|
|
3809
4443
|
readonly name: string;
|
|
4444
|
+
/**
|
|
4445
|
+
* Description of the scheduled event
|
|
4446
|
+
*/
|
|
3810
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
|
+
*/
|
|
3811
4451
|
readonly channel_id: SnowflakeType | null;
|
|
4452
|
+
/**
|
|
4453
|
+
* ID of the user that created the scheduled event
|
|
4454
|
+
*/
|
|
3812
4455
|
readonly creator_id: SnowflakeType | null;
|
|
4456
|
+
/**
|
|
4457
|
+
* User that created the scheduled event
|
|
4458
|
+
*/
|
|
3813
4459
|
readonly creator?: UserResponse | undefined;
|
|
4460
|
+
/**
|
|
4461
|
+
* Cover image hash of the scheduled event
|
|
4462
|
+
*/
|
|
3814
4463
|
readonly image: string | null;
|
|
4464
|
+
/**
|
|
4465
|
+
* When the scheduled event will start
|
|
4466
|
+
*/
|
|
3815
4467
|
readonly scheduled_start_time: string;
|
|
4468
|
+
/**
|
|
4469
|
+
* When the scheduled event will end, or null if no end time
|
|
4470
|
+
*/
|
|
3816
4471
|
readonly scheduled_end_time: string | null;
|
|
4472
|
+
/**
|
|
4473
|
+
* Status of the scheduled event
|
|
4474
|
+
*/
|
|
3817
4475
|
readonly status: GuildScheduledEventStatuses;
|
|
4476
|
+
/**
|
|
4477
|
+
* Type of hosting entity associated with the scheduled event
|
|
4478
|
+
*/
|
|
3818
4479
|
readonly entity_type: 1;
|
|
4480
|
+
/**
|
|
4481
|
+
* ID of the hosting entity associated with the scheduled event
|
|
4482
|
+
*/
|
|
3819
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
|
+
*/
|
|
3820
4491
|
readonly user_count?: number | undefined;
|
|
4492
|
+
/**
|
|
4493
|
+
* Privacy level of the scheduled event
|
|
4494
|
+
*/
|
|
3821
4495
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
3822
4496
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
|
|
4497
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>;
|
|
3823
4498
|
readonly entity_metadata: EntityMetadataStageInstanceResponse | null;
|
|
3824
4499
|
}
|
|
3825
4500
|
export interface EntityMetadataVoiceResponse {
|
|
3826
4501
|
}
|
|
3827
4502
|
export interface VoiceScheduledEventResponse {
|
|
4503
|
+
/**
|
|
4504
|
+
* ID of the scheduled event
|
|
4505
|
+
*/
|
|
3828
4506
|
readonly id: SnowflakeType;
|
|
4507
|
+
/**
|
|
4508
|
+
* ID of the guild the scheduled event belongs to
|
|
4509
|
+
*/
|
|
3829
4510
|
readonly guild_id: SnowflakeType;
|
|
4511
|
+
/**
|
|
4512
|
+
* Name of the scheduled event
|
|
4513
|
+
*/
|
|
3830
4514
|
readonly name: string;
|
|
4515
|
+
/**
|
|
4516
|
+
* Description of the scheduled event
|
|
4517
|
+
*/
|
|
3831
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
|
+
*/
|
|
3832
4522
|
readonly channel_id: SnowflakeType | null;
|
|
4523
|
+
/**
|
|
4524
|
+
* ID of the user that created the scheduled event
|
|
4525
|
+
*/
|
|
3833
4526
|
readonly creator_id: SnowflakeType | null;
|
|
4527
|
+
/**
|
|
4528
|
+
* User that created the scheduled event
|
|
4529
|
+
*/
|
|
3834
4530
|
readonly creator?: UserResponse | undefined;
|
|
4531
|
+
/**
|
|
4532
|
+
* Cover image hash of the scheduled event
|
|
4533
|
+
*/
|
|
3835
4534
|
readonly image: string | null;
|
|
4535
|
+
/**
|
|
4536
|
+
* When the scheduled event will start
|
|
4537
|
+
*/
|
|
3836
4538
|
readonly scheduled_start_time: string;
|
|
4539
|
+
/**
|
|
4540
|
+
* When the scheduled event will end, or null if no end time
|
|
4541
|
+
*/
|
|
3837
4542
|
readonly scheduled_end_time: string | null;
|
|
4543
|
+
/**
|
|
4544
|
+
* Status of the scheduled event
|
|
4545
|
+
*/
|
|
3838
4546
|
readonly status: GuildScheduledEventStatuses;
|
|
4547
|
+
/**
|
|
4548
|
+
* Type of hosting entity associated with the scheduled event
|
|
4549
|
+
*/
|
|
3839
4550
|
readonly entity_type: 2;
|
|
4551
|
+
/**
|
|
4552
|
+
* ID of the hosting entity associated with the scheduled event
|
|
4553
|
+
*/
|
|
3840
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
|
+
*/
|
|
3841
4562
|
readonly user_count?: number | undefined;
|
|
4563
|
+
/**
|
|
4564
|
+
* Privacy level of the scheduled event
|
|
4565
|
+
*/
|
|
3842
4566
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
3843
4567
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined;
|
|
4568
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>;
|
|
3844
4569
|
readonly entity_metadata: EntityMetadataVoiceResponse | null;
|
|
3845
4570
|
}
|
|
3846
4571
|
export declare const AutomodEventType: {
|
|
@@ -3905,10 +4630,6 @@ export declare const AutomodTriggerType: {
|
|
|
3905
4630
|
* Check if content contains words from a list of keywords or matches regex
|
|
3906
4631
|
*/
|
|
3907
4632
|
readonly KEYWORD: 1;
|
|
3908
|
-
/**
|
|
3909
|
-
* DEPRECATED
|
|
3910
|
-
*/
|
|
3911
|
-
readonly SPAM_LINK: 2;
|
|
3912
4633
|
/**
|
|
3913
4634
|
* Check if content represents generic spam
|
|
3914
4635
|
*/
|
|
@@ -3921,6 +4642,10 @@ export declare const AutomodTriggerType: {
|
|
|
3921
4642
|
* Check if content contains more unique mentions than allowed
|
|
3922
4643
|
*/
|
|
3923
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;
|
|
3924
4649
|
};
|
|
3925
4650
|
export type AutomodTriggerType = (typeof AutomodTriggerType)[keyof typeof AutomodTriggerType];
|
|
3926
4651
|
export declare const AutomodKeywordPresetType: {
|
|
@@ -4005,20 +4730,23 @@ export interface MentionSpamRuleResponse {
|
|
|
4005
4730
|
readonly exempt_channels: ReadonlyArray<SnowflakeType>;
|
|
4006
4731
|
readonly trigger_metadata: MentionSpamTriggerMetadataResponse;
|
|
4007
4732
|
}
|
|
4008
|
-
export interface
|
|
4733
|
+
export interface UserProfileMetadataResponse {
|
|
4734
|
+
readonly keyword_filter: ReadonlyArray<string>;
|
|
4735
|
+
readonly regex_patterns: ReadonlyArray<string>;
|
|
4736
|
+
readonly allow_list: ReadonlyArray<string>;
|
|
4009
4737
|
}
|
|
4010
|
-
export interface
|
|
4738
|
+
export interface UserProfileRuleResponse {
|
|
4011
4739
|
readonly id: SnowflakeType;
|
|
4012
4740
|
readonly guild_id: SnowflakeType;
|
|
4013
4741
|
readonly creator_id: SnowflakeType;
|
|
4014
4742
|
readonly name: string;
|
|
4015
4743
|
readonly event_type: AutomodEventType;
|
|
4016
4744
|
readonly actions: ReadonlyArray<BlockMessageActionResponse | FlagToChannelActionResponse | QuarantineUserActionResponse | UserCommunicationDisabledActionResponse>;
|
|
4017
|
-
readonly trigger_type:
|
|
4745
|
+
readonly trigger_type: 6;
|
|
4018
4746
|
readonly enabled: boolean;
|
|
4019
4747
|
readonly exempt_roles: ReadonlyArray<SnowflakeType>;
|
|
4020
4748
|
readonly exempt_channels: ReadonlyArray<SnowflakeType>;
|
|
4021
|
-
readonly trigger_metadata:
|
|
4749
|
+
readonly trigger_metadata: UserProfileMetadataResponse;
|
|
4022
4750
|
}
|
|
4023
4751
|
export interface GuildAuditLogResponse {
|
|
4024
4752
|
readonly audit_log_entries: ReadonlyArray<AuditLogEntryResponse>;
|
|
@@ -4028,9 +4756,9 @@ export interface GuildAuditLogResponse {
|
|
|
4028
4756
|
readonly guild_scheduled_events: ReadonlyArray<ExternalScheduledEventResponse | StageScheduledEventResponse | VoiceScheduledEventResponse>;
|
|
4029
4757
|
readonly threads: ReadonlyArray<ThreadResponse>;
|
|
4030
4758
|
readonly application_commands: ReadonlyArray<ApplicationCommandResponse>;
|
|
4031
|
-
readonly auto_moderation_rules: ReadonlyArray<DefaultKeywordRuleResponse | KeywordRuleResponse | MLSpamRuleResponse | MentionSpamRuleResponse |
|
|
4759
|
+
readonly auto_moderation_rules: ReadonlyArray<DefaultKeywordRuleResponse | KeywordRuleResponse | MLSpamRuleResponse | MentionSpamRuleResponse | UserProfileRuleResponse | null>;
|
|
4032
4760
|
}
|
|
4033
|
-
export type ListAutoModerationRules200 = ReadonlyArray<DefaultKeywordRuleResponse | KeywordRuleResponse | MLSpamRuleResponse | MentionSpamRuleResponse |
|
|
4761
|
+
export type ListAutoModerationRules200 = ReadonlyArray<DefaultKeywordRuleResponse | KeywordRuleResponse | MLSpamRuleResponse | MentionSpamRuleResponse | UserProfileRuleResponse | null>;
|
|
4034
4762
|
export interface BlockMessageActionMetadata {
|
|
4035
4763
|
readonly custom_message?: string | null | undefined;
|
|
4036
4764
|
}
|
|
@@ -4113,9 +4841,24 @@ export interface MentionSpamUpsertRequest {
|
|
|
4113
4841
|
readonly trigger_type: 5;
|
|
4114
4842
|
readonly trigger_metadata?: MentionSpamTriggerMetadata | null | undefined;
|
|
4115
4843
|
}
|
|
4116
|
-
export
|
|
4117
|
-
|
|
4118
|
-
|
|
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;
|
|
4119
4862
|
export interface DefaultKeywordListUpsertRequestPartial {
|
|
4120
4863
|
readonly name?: string | undefined;
|
|
4121
4864
|
readonly event_type?: AutomodEventType | undefined;
|
|
@@ -4156,8 +4899,18 @@ export interface MentionSpamUpsertRequestPartial {
|
|
|
4156
4899
|
readonly trigger_type?: 5 | undefined;
|
|
4157
4900
|
readonly trigger_metadata?: MentionSpamTriggerMetadata | null | undefined;
|
|
4158
4901
|
}
|
|
4159
|
-
export
|
|
4160
|
-
|
|
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;
|
|
4161
4914
|
export interface ListGuildBansParams {
|
|
4162
4915
|
readonly limit?: number | undefined;
|
|
4163
4916
|
readonly before?: SnowflakeType | undefined;
|
|
@@ -4226,6 +4979,16 @@ export interface UpdateGuildEmojiRequest {
|
|
|
4226
4979
|
readonly name?: string | undefined;
|
|
4227
4980
|
readonly roles?: ReadonlyArray<null | SnowflakeType> | null | undefined;
|
|
4228
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
|
+
}
|
|
4229
4992
|
export interface IntegrationApplicationResponse {
|
|
4230
4993
|
readonly id: SnowflakeType;
|
|
4231
4994
|
readonly name: string;
|
|
@@ -4317,19 +5080,61 @@ export interface UpdateMyGuildMemberRequest {
|
|
|
4317
5080
|
readonly banner?: string | null | undefined;
|
|
4318
5081
|
}
|
|
4319
5082
|
export interface PrivateGuildMemberResponse {
|
|
5083
|
+
/**
|
|
5084
|
+
* the member's guild avatar hash
|
|
5085
|
+
*/
|
|
4320
5086
|
readonly avatar: string | null;
|
|
5087
|
+
/**
|
|
5088
|
+
* data for the member's guild avatar decoration
|
|
5089
|
+
*/
|
|
4321
5090
|
readonly avatar_decoration_data?: UserAvatarDecorationResponse | null | undefined;
|
|
5091
|
+
/**
|
|
5092
|
+
* the member's guild banner hash
|
|
5093
|
+
*/
|
|
4322
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
|
+
*/
|
|
4323
5098
|
readonly communication_disabled_until: string | null;
|
|
5099
|
+
/**
|
|
5100
|
+
* guild member flags represented as a bit set, defaults to 0
|
|
5101
|
+
*/
|
|
4324
5102
|
readonly flags: number;
|
|
5103
|
+
/**
|
|
5104
|
+
* when the user joined the guild
|
|
5105
|
+
*/
|
|
4325
5106
|
readonly joined_at: string;
|
|
5107
|
+
/**
|
|
5108
|
+
* this user's guild nickname
|
|
5109
|
+
*/
|
|
4326
5110
|
readonly nick: string | null;
|
|
5111
|
+
/**
|
|
5112
|
+
* whether the user has not yet passed the guild's Membership Screening requirements
|
|
5113
|
+
*/
|
|
4327
5114
|
readonly pending: boolean;
|
|
5115
|
+
/**
|
|
5116
|
+
* when the user started boosting the guild
|
|
5117
|
+
*/
|
|
4328
5118
|
readonly premium_since: string | null;
|
|
5119
|
+
/**
|
|
5120
|
+
* array of role object ids
|
|
5121
|
+
*/
|
|
4329
5122
|
readonly roles: ReadonlyArray<SnowflakeType>;
|
|
5123
|
+
/**
|
|
5124
|
+
* data for the member's collectibles
|
|
5125
|
+
*/
|
|
4330
5126
|
readonly collectibles?: UserCollectiblesResponse | null | undefined;
|
|
5127
|
+
/**
|
|
5128
|
+
* the user this guild member represents
|
|
5129
|
+
*/
|
|
4331
5130
|
readonly user: UserResponse;
|
|
5131
|
+
/**
|
|
5132
|
+
* whether the user is muted in voice channels
|
|
5133
|
+
*/
|
|
4332
5134
|
readonly mute: boolean;
|
|
5135
|
+
/**
|
|
5136
|
+
* whether the user is deafened in voice channels
|
|
5137
|
+
*/
|
|
4333
5138
|
readonly deaf: boolean;
|
|
4334
5139
|
readonly permissions?: string | undefined;
|
|
4335
5140
|
}
|
|
@@ -4445,7 +5250,7 @@ export interface SearchMessageResponse {
|
|
|
4445
5250
|
readonly tts: boolean;
|
|
4446
5251
|
readonly call?: MessageCallResponse | undefined;
|
|
4447
5252
|
readonly activity?: MessageActivityResponse | undefined;
|
|
4448
|
-
readonly application?:
|
|
5253
|
+
readonly application?: BasicApplicationResponseWithBot | undefined;
|
|
4449
5254
|
readonly application_id?: SnowflakeType | undefined;
|
|
4450
5255
|
readonly interaction?: MessageInteractionResponse | undefined;
|
|
4451
5256
|
readonly nonce?: number | string | undefined;
|
|
@@ -4461,9 +5266,11 @@ export interface SearchMessageResponse {
|
|
|
4461
5266
|
readonly shared_client_theme?: CustomClientThemeResponse | undefined;
|
|
4462
5267
|
readonly interaction_metadata?: ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse | undefined;
|
|
4463
5268
|
readonly message_snapshots?: ReadonlyArray<MessageSnapshotResponse> | undefined;
|
|
5269
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined;
|
|
4464
5270
|
readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined;
|
|
4465
5271
|
readonly referenced_message?: BasicMessageResponse | null | undefined;
|
|
4466
5272
|
readonly hit: boolean;
|
|
5273
|
+
readonly restriction_count?: number | undefined;
|
|
4467
5274
|
}
|
|
4468
5275
|
export interface GuildSearchResponse {
|
|
4469
5276
|
readonly messages: ReadonlyArray<ReadonlyArray<SearchMessageResponse>>;
|
|
@@ -4473,12 +5280,6 @@ export interface GuildSearchResponse {
|
|
|
4473
5280
|
readonly members?: ReadonlyArray<ThreadMemberResponse> | null | undefined;
|
|
4474
5281
|
readonly documents_indexed?: number | null | undefined;
|
|
4475
5282
|
}
|
|
4476
|
-
export interface SearchIndexNotReadyResponse {
|
|
4477
|
-
readonly message: string;
|
|
4478
|
-
readonly code: number;
|
|
4479
|
-
readonly documents_indexed: number;
|
|
4480
|
-
readonly retry_after: number;
|
|
4481
|
-
}
|
|
4482
5283
|
export interface WelcomeMessageResponse {
|
|
4483
5284
|
readonly author_ids: ReadonlyArray<SnowflakeType>;
|
|
4484
5285
|
readonly message: string;
|
|
@@ -4627,6 +5428,186 @@ export interface VoiceRegionResponse {
|
|
|
4627
5428
|
readonly optimal: boolean;
|
|
4628
5429
|
}
|
|
4629
5430
|
export type ListGuildVoiceRegions200 = ReadonlyArray<VoiceRegionResponse>;
|
|
5431
|
+
export declare const GuildJoinRequestApplicationStatus: {
|
|
5432
|
+
/**
|
|
5433
|
+
* Applicant started but not yet submitted join request
|
|
5434
|
+
*/
|
|
5435
|
+
readonly STARTED: "STARTED";
|
|
5436
|
+
/**
|
|
5437
|
+
* Applicant submitted join request that is awaiting review
|
|
5438
|
+
*/
|
|
5439
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
5440
|
+
/**
|
|
5441
|
+
* Join request rejected
|
|
5442
|
+
*/
|
|
5443
|
+
readonly REJECTED: "REJECTED";
|
|
5444
|
+
/**
|
|
5445
|
+
* Join request approved
|
|
5446
|
+
*/
|
|
5447
|
+
readonly APPROVED: "APPROVED";
|
|
5448
|
+
};
|
|
5449
|
+
export type GuildJoinRequestApplicationStatus = (typeof GuildJoinRequestApplicationStatus)[keyof typeof GuildJoinRequestApplicationStatus];
|
|
5450
|
+
export interface GetGuildJoinRequestsParams {
|
|
5451
|
+
readonly status?: undefined;
|
|
5452
|
+
readonly limit?: number | undefined;
|
|
5453
|
+
readonly before?: SnowflakeType | undefined;
|
|
5454
|
+
readonly after?: SnowflakeType | undefined;
|
|
5455
|
+
}
|
|
5456
|
+
export declare const GuildMemberVerificationFormFieldType: {
|
|
5457
|
+
/**
|
|
5458
|
+
* Field requiring applicant to acknowledge list of terms
|
|
5459
|
+
*/
|
|
5460
|
+
readonly TERMS: "TERMS";
|
|
5461
|
+
/**
|
|
5462
|
+
* Short text input field
|
|
5463
|
+
*/
|
|
5464
|
+
readonly TEXT_INPUT: "TEXT_INPUT";
|
|
5465
|
+
/**
|
|
5466
|
+
* Long-form text input field
|
|
5467
|
+
*/
|
|
5468
|
+
readonly PARAGRAPH: "PARAGRAPH";
|
|
5469
|
+
/**
|
|
5470
|
+
* Field where applicant selects one of many options
|
|
5471
|
+
*/
|
|
5472
|
+
readonly MULTIPLE_CHOICE: "MULTIPLE_CHOICE";
|
|
5473
|
+
};
|
|
5474
|
+
export type GuildMemberVerificationFormFieldType = (typeof GuildMemberVerificationFormFieldType)[keyof typeof GuildMemberVerificationFormFieldType];
|
|
5475
|
+
export interface MultipleChoiceFormFieldResponse {
|
|
5476
|
+
/**
|
|
5477
|
+
* Type of form field
|
|
5478
|
+
*/
|
|
5479
|
+
readonly field_type: "MULTIPLE_CHOICE";
|
|
5480
|
+
/**
|
|
5481
|
+
* Label shown above field
|
|
5482
|
+
*/
|
|
5483
|
+
readonly label?: string | undefined;
|
|
5484
|
+
/**
|
|
5485
|
+
* Optional helper text shown below label
|
|
5486
|
+
*/
|
|
5487
|
+
readonly description?: string | undefined;
|
|
5488
|
+
/**
|
|
5489
|
+
* Whether applicant must fill in field
|
|
5490
|
+
*/
|
|
5491
|
+
readonly required?: boolean | undefined;
|
|
5492
|
+
/**
|
|
5493
|
+
* Choices applicant can select from
|
|
5494
|
+
*/
|
|
5495
|
+
readonly choices: ReadonlyArray<string>;
|
|
5496
|
+
/**
|
|
5497
|
+
* Index of choice selected by applicant
|
|
5498
|
+
*/
|
|
5499
|
+
readonly response?: number | undefined;
|
|
5500
|
+
}
|
|
5501
|
+
export interface ParagraphFormFieldResponse {
|
|
5502
|
+
/**
|
|
5503
|
+
* Type of form field
|
|
5504
|
+
*/
|
|
5505
|
+
readonly field_type: "PARAGRAPH";
|
|
5506
|
+
/**
|
|
5507
|
+
* Label shown above field
|
|
5508
|
+
*/
|
|
5509
|
+
readonly label?: string | undefined;
|
|
5510
|
+
/**
|
|
5511
|
+
* Optional helper text shown below label
|
|
5512
|
+
*/
|
|
5513
|
+
readonly description?: string | undefined;
|
|
5514
|
+
/**
|
|
5515
|
+
* Whether applicant must fill in field
|
|
5516
|
+
*/
|
|
5517
|
+
readonly required?: boolean | undefined;
|
|
5518
|
+
/**
|
|
5519
|
+
* Placeholder text shown in empty input
|
|
5520
|
+
*/
|
|
5521
|
+
readonly placeholder?: string | undefined;
|
|
5522
|
+
/**
|
|
5523
|
+
* Applicant's text response
|
|
5524
|
+
*/
|
|
5525
|
+
readonly response?: string | undefined;
|
|
5526
|
+
}
|
|
5527
|
+
export interface TermsFormFieldResponse {
|
|
5528
|
+
/**
|
|
5529
|
+
* Type of form field
|
|
5530
|
+
*/
|
|
5531
|
+
readonly field_type: "TERMS";
|
|
5532
|
+
/**
|
|
5533
|
+
* Label shown above field
|
|
5534
|
+
*/
|
|
5535
|
+
readonly label?: string | undefined;
|
|
5536
|
+
/**
|
|
5537
|
+
* Optional helper text shown below label
|
|
5538
|
+
*/
|
|
5539
|
+
readonly description?: string | undefined;
|
|
5540
|
+
/**
|
|
5541
|
+
* Whether applicant must fill in field
|
|
5542
|
+
*/
|
|
5543
|
+
readonly required?: boolean | undefined;
|
|
5544
|
+
/**
|
|
5545
|
+
* Terms applicant must acknowledge
|
|
5546
|
+
*/
|
|
5547
|
+
readonly values: ReadonlyArray<string>;
|
|
5548
|
+
/**
|
|
5549
|
+
* Whether applicant accepted terms
|
|
5550
|
+
*/
|
|
5551
|
+
readonly response?: boolean | undefined;
|
|
5552
|
+
}
|
|
5553
|
+
export interface TextInputFormFieldResponse {
|
|
5554
|
+
/**
|
|
5555
|
+
* Type of form field
|
|
5556
|
+
*/
|
|
5557
|
+
readonly field_type: "TEXT_INPUT";
|
|
5558
|
+
/**
|
|
5559
|
+
* Label shown above field
|
|
5560
|
+
*/
|
|
5561
|
+
readonly label?: string | undefined;
|
|
5562
|
+
/**
|
|
5563
|
+
* Optional helper text shown below label
|
|
5564
|
+
*/
|
|
5565
|
+
readonly description?: string | undefined;
|
|
5566
|
+
/**
|
|
5567
|
+
* Whether applicant must fill in field
|
|
5568
|
+
*/
|
|
5569
|
+
readonly required?: boolean | undefined;
|
|
5570
|
+
/**
|
|
5571
|
+
* Placeholder text shown in empty input
|
|
5572
|
+
*/
|
|
5573
|
+
readonly placeholder?: string | undefined;
|
|
5574
|
+
/**
|
|
5575
|
+
* Applicant's text response
|
|
5576
|
+
*/
|
|
5577
|
+
readonly response?: string | undefined;
|
|
5578
|
+
}
|
|
5579
|
+
export interface GuildJoinRequestResponse {
|
|
5580
|
+
readonly id: SnowflakeType;
|
|
5581
|
+
readonly created_at: string;
|
|
5582
|
+
readonly reviewed_at: string | null;
|
|
5583
|
+
readonly application_status: GuildJoinRequestApplicationStatus | null;
|
|
5584
|
+
/**
|
|
5585
|
+
* Reason request was rejected. Only set when application_status is REJECTED
|
|
5586
|
+
*/
|
|
5587
|
+
readonly rejection_reason: string | null;
|
|
5588
|
+
readonly guild_id: SnowflakeType;
|
|
5589
|
+
readonly user_id: SnowflakeType;
|
|
5590
|
+
readonly user?: UserResponse | null | undefined;
|
|
5591
|
+
/**
|
|
5592
|
+
* Applicant's responses on join request form
|
|
5593
|
+
*/
|
|
5594
|
+
readonly form_responses?: ReadonlyArray<MultipleChoiceFormFieldResponse | ParagraphFormFieldResponse | TermsFormFieldResponse | TextInputFormFieldResponse> | null | undefined;
|
|
5595
|
+
readonly actioned_by_user?: UserResponse | null | undefined;
|
|
5596
|
+
}
|
|
5597
|
+
export interface GuildJoinRequestsListResponse {
|
|
5598
|
+
readonly total?: number | undefined;
|
|
5599
|
+
readonly guild_join_requests?: ReadonlyArray<GuildJoinRequestResponse> | undefined;
|
|
5600
|
+
}
|
|
5601
|
+
export interface ActionGuildJoinRequestRequest {
|
|
5602
|
+
/**
|
|
5603
|
+
* Whether to approve or reject the join request
|
|
5604
|
+
*/
|
|
5605
|
+
readonly action?: undefined;
|
|
5606
|
+
/**
|
|
5607
|
+
* Reason for rejection. Only used when action is REJECTED
|
|
5608
|
+
*/
|
|
5609
|
+
readonly rejection_reason?: string | null | undefined;
|
|
5610
|
+
}
|
|
4630
5611
|
export type ListGuildRoles200 = ReadonlyArray<GuildRoleResponse>;
|
|
4631
5612
|
export interface RoleColors {
|
|
4632
5613
|
readonly primary_color?: number | null | undefined;
|
|
@@ -4664,6 +5645,58 @@ export interface ListGuildScheduledEventsParams {
|
|
|
4664
5645
|
readonly with_user_count?: boolean | undefined;
|
|
4665
5646
|
}
|
|
4666
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
|
+
}
|
|
4667
5700
|
export interface EntityMetadataExternal {
|
|
4668
5701
|
readonly location: string;
|
|
4669
5702
|
}
|
|
@@ -4676,6 +5709,10 @@ export interface ExternalScheduledEventCreateRequest {
|
|
|
4676
5709
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
4677
5710
|
readonly entity_type: 3;
|
|
4678
5711
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
5712
|
+
/**
|
|
5713
|
+
* Recurrence rule for the scheduled event
|
|
5714
|
+
*/
|
|
5715
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined;
|
|
4679
5716
|
readonly entity_metadata: EntityMetadataExternal;
|
|
4680
5717
|
}
|
|
4681
5718
|
export interface EntityMetadataStageInstance {
|
|
@@ -4689,6 +5726,10 @@ export interface StageScheduledEventCreateRequest {
|
|
|
4689
5726
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
4690
5727
|
readonly entity_type: 1;
|
|
4691
5728
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
5729
|
+
/**
|
|
5730
|
+
* Recurrence rule for the scheduled event
|
|
5731
|
+
*/
|
|
5732
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined;
|
|
4692
5733
|
readonly entity_metadata?: EntityMetadataStageInstance | null | undefined;
|
|
4693
5734
|
}
|
|
4694
5735
|
export interface EntityMetadataVoice {
|
|
@@ -4702,6 +5743,10 @@ export interface VoiceScheduledEventCreateRequest {
|
|
|
4702
5743
|
readonly privacy_level: GuildScheduledEventPrivacyLevels;
|
|
4703
5744
|
readonly entity_type: 2;
|
|
4704
5745
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
5746
|
+
/**
|
|
5747
|
+
* Recurrence rule for the scheduled event
|
|
5748
|
+
*/
|
|
5749
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined;
|
|
4705
5750
|
readonly entity_metadata?: EntityMetadataVoice | null | undefined;
|
|
4706
5751
|
}
|
|
4707
5752
|
export type CreateGuildScheduledEventRequest = ExternalScheduledEventCreateRequest | StageScheduledEventCreateRequest | VoiceScheduledEventCreateRequest;
|
|
@@ -4720,6 +5765,10 @@ export interface ExternalScheduledEventPatchRequestPartial {
|
|
|
4720
5765
|
readonly entity_type?: 3 | null | undefined;
|
|
4721
5766
|
readonly privacy_level?: GuildScheduledEventPrivacyLevels | undefined;
|
|
4722
5767
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
5768
|
+
/**
|
|
5769
|
+
* Recurrence rule for the scheduled event
|
|
5770
|
+
*/
|
|
5771
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined;
|
|
4723
5772
|
readonly entity_metadata?: EntityMetadataExternal | undefined;
|
|
4724
5773
|
}
|
|
4725
5774
|
export interface StageScheduledEventPatchRequestPartial {
|
|
@@ -4732,6 +5781,10 @@ export interface StageScheduledEventPatchRequestPartial {
|
|
|
4732
5781
|
readonly entity_type?: 1 | null | undefined;
|
|
4733
5782
|
readonly privacy_level?: GuildScheduledEventPrivacyLevels | undefined;
|
|
4734
5783
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
5784
|
+
/**
|
|
5785
|
+
* Recurrence rule for the scheduled event
|
|
5786
|
+
*/
|
|
5787
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined;
|
|
4735
5788
|
readonly entity_metadata?: EntityMetadataStageInstance | null | undefined;
|
|
4736
5789
|
}
|
|
4737
5790
|
export interface VoiceScheduledEventPatchRequestPartial {
|
|
@@ -4744,10 +5797,46 @@ export interface VoiceScheduledEventPatchRequestPartial {
|
|
|
4744
5797
|
readonly entity_type?: 2 | null | undefined;
|
|
4745
5798
|
readonly privacy_level?: GuildScheduledEventPrivacyLevels | undefined;
|
|
4746
5799
|
readonly channel_id?: SnowflakeType | null | undefined;
|
|
5800
|
+
/**
|
|
5801
|
+
* Recurrence rule for the scheduled event
|
|
5802
|
+
*/
|
|
5803
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined;
|
|
4747
5804
|
readonly entity_metadata?: EntityMetadataVoice | null | undefined;
|
|
4748
5805
|
}
|
|
4749
5806
|
export type UpdateGuildScheduledEventRequest = ExternalScheduledEventPatchRequestPartial | StageScheduledEventPatchRequestPartial | VoiceScheduledEventPatchRequestPartial;
|
|
4750
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
|
+
}
|
|
4751
5840
|
export interface ListGuildScheduledEventUsersParams {
|
|
4752
5841
|
readonly with_member?: boolean | undefined;
|
|
4753
5842
|
readonly limit?: number | undefined;
|
|
@@ -4755,6 +5844,26 @@ export interface ListGuildScheduledEventUsersParams {
|
|
|
4755
5844
|
readonly after?: SnowflakeType | undefined;
|
|
4756
5845
|
}
|
|
4757
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>;
|
|
4758
5867
|
export interface SoundboardSoundResponse {
|
|
4759
5868
|
readonly name: string;
|
|
4760
5869
|
readonly sound_id: SnowflakeType;
|
|
@@ -5147,6 +6256,7 @@ export type CreateInteractionResponseRequest = ApplicationCommandAutocompleteCal
|
|
|
5147
6256
|
export interface InteractionResponse {
|
|
5148
6257
|
readonly id: SnowflakeType;
|
|
5149
6258
|
readonly type: InteractionTypes;
|
|
6259
|
+
readonly activity_instance_id?: string | null | undefined;
|
|
5150
6260
|
readonly response_message_id?: SnowflakeType | undefined;
|
|
5151
6261
|
readonly response_message_loading?: boolean | undefined;
|
|
5152
6262
|
readonly response_message_ephemeral?: boolean | undefined;
|
|
@@ -5157,8 +6267,12 @@ export interface CreateMessageInteractionCallbackResponse {
|
|
|
5157
6267
|
readonly type: 4;
|
|
5158
6268
|
readonly message: MessageResponse;
|
|
5159
6269
|
}
|
|
6270
|
+
export interface ActivityInstanceCallbackResponse {
|
|
6271
|
+
readonly id: string;
|
|
6272
|
+
}
|
|
5160
6273
|
export interface LaunchActivityInteractionCallbackResponse {
|
|
5161
6274
|
readonly type: 12;
|
|
6275
|
+
readonly activity_instance: ActivityInstanceCallbackResponse;
|
|
5162
6276
|
}
|
|
5163
6277
|
export interface UpdateMessageInteractionCallbackResponse {
|
|
5164
6278
|
readonly type: 7;
|
|
@@ -5171,6 +6285,8 @@ export interface InteractionCallbackResponse {
|
|
|
5171
6285
|
export interface InviteResolveParams {
|
|
5172
6286
|
readonly with_counts?: boolean | undefined;
|
|
5173
6287
|
readonly guild_scheduled_event_id?: SnowflakeType | undefined;
|
|
6288
|
+
readonly target_channel_id?: SnowflakeType | undefined;
|
|
6289
|
+
readonly target_message_id?: SnowflakeType | undefined;
|
|
5174
6290
|
}
|
|
5175
6291
|
export type InviteResolve200 = FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse;
|
|
5176
6292
|
export type InviteRevoke200 = FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse;
|
|
@@ -5234,6 +6350,7 @@ export interface LobbyMemberResponse {
|
|
|
5234
6350
|
readonly id: SnowflakeType;
|
|
5235
6351
|
readonly metadata: Record<string, unknown> | null;
|
|
5236
6352
|
readonly flags: number;
|
|
6353
|
+
readonly additional_name?: string | undefined;
|
|
5237
6354
|
}
|
|
5238
6355
|
export interface LobbyResponse {
|
|
5239
6356
|
readonly id: SnowflakeType;
|
|
@@ -5278,6 +6395,7 @@ export interface BulkLobbyMemberRequest {
|
|
|
5278
6395
|
readonly metadata?: Record<string, unknown> | null | undefined;
|
|
5279
6396
|
readonly flags?: BulkLobbyMemberRequestFlagsEnum | null | undefined;
|
|
5280
6397
|
readonly remove_member?: boolean | null | undefined;
|
|
6398
|
+
readonly additional_name?: string | null | undefined;
|
|
5281
6399
|
}
|
|
5282
6400
|
export type BulkUpdateLobbyMembersRequest = ReadonlyArray<BulkLobbyMemberRequest>;
|
|
5283
6401
|
export type BulkUpdateLobbyMembers200 = ReadonlyArray<LobbyMemberResponse>;
|
|
@@ -5285,6 +6403,7 @@ export type AddLobbyMemberRequestFlagsEnum = 1;
|
|
|
5285
6403
|
export interface AddLobbyMemberRequest {
|
|
5286
6404
|
readonly metadata?: Record<string, unknown> | null | undefined;
|
|
5287
6405
|
readonly flags?: AddLobbyMemberRequestFlagsEnum | null | undefined;
|
|
6406
|
+
readonly additional_name?: string | null | undefined;
|
|
5288
6407
|
}
|
|
5289
6408
|
export interface GetLobbyMessagesParams {
|
|
5290
6409
|
readonly limit?: number | undefined;
|
|
@@ -5296,6 +6415,7 @@ export interface LobbyMessageResponse {
|
|
|
5296
6415
|
readonly lobby_id: SnowflakeType;
|
|
5297
6416
|
readonly channel_id: SnowflakeType;
|
|
5298
6417
|
readonly author: UserResponse;
|
|
6418
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined;
|
|
5299
6419
|
readonly metadata?: Record<string, unknown> | undefined;
|
|
5300
6420
|
readonly moderation_metadata?: Record<string, unknown> | undefined;
|
|
5301
6421
|
readonly flags: number;
|
|
@@ -5388,9 +6508,77 @@ export interface ProvisionalTokenResponse {
|
|
|
5388
6508
|
readonly expires_at_s?: number | null | undefined;
|
|
5389
6509
|
}
|
|
5390
6510
|
export interface BotPartnerSdkTokenRequest {
|
|
6511
|
+
readonly provisional_user_id?: SnowflakeType | null | undefined;
|
|
5391
6512
|
readonly external_user_id: string;
|
|
5392
6513
|
readonly preferred_global_name?: string | null | undefined;
|
|
5393
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
|
+
}
|
|
5394
6582
|
export type GetSoundboardDefaultSounds200 = ReadonlyArray<SoundboardSoundResponse>;
|
|
5395
6583
|
export declare const StageInstancesPrivacyLevels: {
|
|
5396
6584
|
/**
|
|
@@ -5398,7 +6586,7 @@ export declare const StageInstancesPrivacyLevels: {
|
|
|
5398
6586
|
*/
|
|
5399
6587
|
readonly PUBLIC: 1;
|
|
5400
6588
|
/**
|
|
5401
|
-
* The Stage instance is visible
|
|
6589
|
+
* The Stage instance is visible to only guild members.
|
|
5402
6590
|
*/
|
|
5403
6591
|
readonly GUILD_ONLY: 2;
|
|
5404
6592
|
};
|
|
@@ -5456,18 +6644,57 @@ export declare const PremiumTypes: {
|
|
|
5456
6644
|
};
|
|
5457
6645
|
export type PremiumTypes = (typeof PremiumTypes)[keyof typeof PremiumTypes];
|
|
5458
6646
|
export interface UserPIIResponse {
|
|
6647
|
+
/**
|
|
6648
|
+
* the user's id
|
|
6649
|
+
*/
|
|
5459
6650
|
readonly id: SnowflakeType;
|
|
6651
|
+
/**
|
|
6652
|
+
* the user's username, not unique across the platform
|
|
6653
|
+
*/
|
|
5460
6654
|
readonly username: string;
|
|
6655
|
+
/**
|
|
6656
|
+
* the user's avatar hash
|
|
6657
|
+
*/
|
|
5461
6658
|
readonly avatar: string | null;
|
|
6659
|
+
/**
|
|
6660
|
+
* the user's Discord-tag
|
|
6661
|
+
*/
|
|
5462
6662
|
readonly discriminator: string;
|
|
6663
|
+
/**
|
|
6664
|
+
* the public flags on a user's account
|
|
6665
|
+
*/
|
|
5463
6666
|
readonly public_flags: number;
|
|
6667
|
+
/**
|
|
6668
|
+
* the flags on a user's account
|
|
6669
|
+
*/
|
|
5464
6670
|
readonly flags: Int53Type;
|
|
6671
|
+
/**
|
|
6672
|
+
* whether the user belongs to an OAuth2 application
|
|
6673
|
+
*/
|
|
5465
6674
|
readonly bot?: boolean | undefined;
|
|
6675
|
+
/**
|
|
6676
|
+
* whether the user is an Official Discord System user (part of the urgent message system)
|
|
6677
|
+
*/
|
|
5466
6678
|
readonly system?: boolean | undefined;
|
|
6679
|
+
/**
|
|
6680
|
+
* the user's banner hash
|
|
6681
|
+
*/
|
|
5467
6682
|
readonly banner?: string | null | undefined;
|
|
6683
|
+
/**
|
|
6684
|
+
* the user's banner color encoded as an integer representation of hexadecimal color code
|
|
6685
|
+
*/
|
|
5468
6686
|
readonly accent_color?: number | null | undefined;
|
|
6687
|
+
/**
|
|
6688
|
+
* the user's display name, if it is set
|
|
6689
|
+
*/
|
|
5469
6690
|
readonly global_name: string | null;
|
|
6691
|
+
/**
|
|
6692
|
+
* data for the user's avatar decoration
|
|
6693
|
+
*/
|
|
5470
6694
|
readonly avatar_decoration_data?: UserAvatarDecorationResponse | null | undefined;
|
|
6695
|
+
/**
|
|
6696
|
+
* data for the user's collectibles
|
|
6697
|
+
*/
|
|
5471
6698
|
readonly collectibles?: UserCollectiblesResponse | null | undefined;
|
|
5472
6699
|
readonly primary_guild?: UserPrimaryGuildResponse | null | undefined;
|
|
5473
6700
|
readonly mfa_enabled: boolean;
|
|
@@ -5860,7 +7087,7 @@ export interface DiscordRest {
|
|
|
5860
7087
|
readonly createThread: (channelId: string, options: CreateThreadRequest) => Effect.Effect<CreatedThreadResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5861
7088
|
readonly listPrivateArchivedThreads: (channelId: string, options?: ListPrivateArchivedThreadsParams | undefined) => Effect.Effect<ThreadsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5862
7089
|
readonly listPublicArchivedThreads: (channelId: string, options?: ListPublicArchivedThreadsParams | undefined) => Effect.Effect<ThreadsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5863
|
-
readonly threadSearch: (channelId: string, options?: ThreadSearchParams | undefined) => Effect.Effect<ThreadSearchResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
7090
|
+
readonly threadSearch: (channelId: string, options?: ThreadSearchParams | undefined) => Effect.Effect<ThreadSearchResponse | SearchIndexNotReadyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5864
7091
|
readonly triggerTypingIndicator: (channelId: string) => Effect.Effect<TypingIndicatorResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5865
7092
|
readonly listMyPrivateArchivedThreads: (channelId: string, options?: ListMyPrivateArchivedThreadsParams | undefined) => Effect.Effect<ThreadsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5866
7093
|
/**
|
|
@@ -5893,6 +7120,10 @@ export interface DiscordRest {
|
|
|
5893
7120
|
readonly getGuildEmoji: (guildId: string, emojiId: string) => Effect.Effect<EmojiResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5894
7121
|
readonly deleteGuildEmoji: (guildId: string, emojiId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5895
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>>;
|
|
5896
7127
|
readonly listGuildIntegrations: (guildId: string) => Effect.Effect<ListGuildIntegrations200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5897
7128
|
readonly deleteGuildIntegration: (guildId: string, integrationId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5898
7129
|
readonly listGuildInvites: (guildId: string) => Effect.Effect<ListGuildInvites200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
@@ -5913,6 +7144,14 @@ export interface DiscordRest {
|
|
|
5913
7144
|
readonly previewPruneGuild: (guildId: string, options?: PreviewPruneGuildParams | undefined) => Effect.Effect<GuildPruneResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5914
7145
|
readonly pruneGuild: (guildId: string, options: PruneGuildRequest) => Effect.Effect<GuildPruneResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5915
7146
|
readonly listGuildVoiceRegions: (guildId: string) => Effect.Effect<ListGuildVoiceRegions200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
7147
|
+
/**
|
|
7148
|
+
* List join requests for guild, optionally filtered by application status
|
|
7149
|
+
*/
|
|
7150
|
+
readonly getGuildJoinRequests: (guildId: string, options?: GetGuildJoinRequestsParams | undefined) => Effect.Effect<GuildJoinRequestsListResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
7151
|
+
/**
|
|
7152
|
+
* Approve or reject guild join request
|
|
7153
|
+
*/
|
|
7154
|
+
readonly actionGuildJoinRequest: (guildId: string, requestId: string, options: ActionGuildJoinRequestRequest) => Effect.Effect<GuildJoinRequestResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5916
7155
|
readonly listGuildRoles: (guildId: string) => Effect.Effect<ListGuildRoles200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5917
7156
|
readonly createGuildRole: (guildId: string, options: CreateRoleRequest) => Effect.Effect<GuildRoleResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5918
7157
|
readonly bulkUpdateGuildRoles: (guildId: string, options: BulkUpdateGuildRolesRequest) => Effect.Effect<BulkUpdateGuildRoles200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
@@ -5925,7 +7164,27 @@ export interface DiscordRest {
|
|
|
5925
7164
|
readonly getGuildScheduledEvent: (guildId: string, guildScheduledEventId: string, options?: GetGuildScheduledEventParams | undefined) => Effect.Effect<GetGuildScheduledEvent200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5926
7165
|
readonly deleteGuildScheduledEvent: (guildId: string, guildScheduledEventId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5927
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>>;
|
|
5928
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>>;
|
|
5929
7188
|
readonly listGuildSoundboardSounds: (guildId: string) => Effect.Effect<ListGuildSoundboardSoundsResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5930
7189
|
readonly createGuildSoundboardSound: (guildId: string, options: SoundboardCreateRequest) => Effect.Effect<SoundboardSoundResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5931
7190
|
readonly getGuildSoundboardSound: (guildId: string, soundId: string) => Effect.Effect<SoundboardSoundResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
@@ -5975,6 +7234,10 @@ export interface DiscordRest {
|
|
|
5975
7234
|
readonly createOrJoinLobby: (options: CreateOrJoinLobbyRequest) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5976
7235
|
readonly createLobby: (options: CreateLobbyRequest) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5977
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>>;
|
|
5978
7241
|
readonly editLobby: (lobbyId: string, options: EditLobbyRequest) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5979
7242
|
readonly editLobbyChannelLink: (lobbyId: string, options: EditLobbyChannelLinkRequest) => Effect.Effect<LobbyResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
5980
7243
|
readonly leaveLobby: (lobbyId: string) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
@@ -6001,6 +7264,14 @@ export interface DiscordRest {
|
|
|
6001
7264
|
readonly botPartnerSdkUnmergeProvisionalAccount: (options: BotPartnerSdkUnmergeProvisionalAccountRequest) => Effect.Effect<void, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6002
7265
|
readonly partnerSdkToken: (options: PartnerSdkTokenRequest) => Effect.Effect<ProvisionalTokenResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6003
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>>;
|
|
6004
7275
|
readonly getSoundboardDefaultSounds: () => Effect.Effect<GetSoundboardDefaultSounds200, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6005
7276
|
readonly createStageInstance: (options: CreateStageInstanceRequest) => Effect.Effect<StageInstanceResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|
|
6006
7277
|
readonly getStageInstance: (channelId: string) => Effect.Effect<StageInstanceResponse, HttpClientError.HttpClientError | DiscordRestError<"RatelimitedResponse", RatelimitedResponse> | DiscordRestError<"ErrorResponse", ErrorResponse>>;
|