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
|
@@ -13,47 +13,173 @@ export type ApplicationTypes = 4
|
|
|
13
13
|
export type Int53Type = number
|
|
14
14
|
|
|
15
15
|
export interface UserAvatarDecorationResponse {
|
|
16
|
+
/**
|
|
17
|
+
* the avatar decoration hash
|
|
18
|
+
*/
|
|
16
19
|
readonly asset: string
|
|
20
|
+
/**
|
|
21
|
+
* id of the avatar decoration's SKU
|
|
22
|
+
*/
|
|
17
23
|
readonly sku_id: SnowflakeType | null
|
|
18
24
|
}
|
|
19
25
|
|
|
20
|
-
export
|
|
26
|
+
export const NameplatePalette = {
|
|
27
|
+
/**
|
|
28
|
+
* Crimson color palette
|
|
29
|
+
*/
|
|
30
|
+
CRIMSON: "crimson",
|
|
31
|
+
/**
|
|
32
|
+
* Berry color palette
|
|
33
|
+
*/
|
|
34
|
+
BERRY: "berry",
|
|
35
|
+
/**
|
|
36
|
+
* Sky color palette
|
|
37
|
+
*/
|
|
38
|
+
SKY: "sky",
|
|
39
|
+
/**
|
|
40
|
+
* Teal color palette
|
|
41
|
+
*/
|
|
42
|
+
TEAL: "teal",
|
|
43
|
+
/**
|
|
44
|
+
* Forest color palette
|
|
45
|
+
*/
|
|
46
|
+
FOREST: "forest",
|
|
47
|
+
/**
|
|
48
|
+
* Bubble gum color palette
|
|
49
|
+
*/
|
|
50
|
+
BUBBLE_GUM: "bubble_gum",
|
|
51
|
+
/**
|
|
52
|
+
* Violet color palette
|
|
53
|
+
*/
|
|
54
|
+
VIOLET: "violet",
|
|
55
|
+
/**
|
|
56
|
+
* Cobalt color palette
|
|
57
|
+
*/
|
|
58
|
+
COBALT: "cobalt",
|
|
59
|
+
/**
|
|
60
|
+
* Clover color palette
|
|
61
|
+
*/
|
|
62
|
+
CLOVER: "clover",
|
|
63
|
+
/**
|
|
64
|
+
* Lemon color palette
|
|
65
|
+
*/
|
|
66
|
+
LEMON: "lemon",
|
|
67
|
+
/**
|
|
68
|
+
* White color palette
|
|
69
|
+
*/
|
|
70
|
+
WHITE: "white",
|
|
71
|
+
/**
|
|
72
|
+
* Black color palette
|
|
73
|
+
*/
|
|
74
|
+
BLACK: "black",
|
|
75
|
+
} as const
|
|
76
|
+
export type NameplatePalette =
|
|
77
|
+
(typeof NameplatePalette)[keyof typeof NameplatePalette]
|
|
21
78
|
|
|
22
79
|
export interface UserNameplateResponse {
|
|
80
|
+
/**
|
|
81
|
+
* ID of the nameplate SKU
|
|
82
|
+
*/
|
|
23
83
|
readonly sku_id: SnowflakeType | null
|
|
84
|
+
/**
|
|
85
|
+
* Path to the nameplate asset
|
|
86
|
+
*/
|
|
24
87
|
readonly asset: string
|
|
88
|
+
/**
|
|
89
|
+
* The label of this nameplate. Currently unused
|
|
90
|
+
*/
|
|
25
91
|
readonly label: string
|
|
92
|
+
/**
|
|
93
|
+
* Background color of the nameplate
|
|
94
|
+
*/
|
|
26
95
|
readonly palette: NameplatePalette
|
|
27
96
|
}
|
|
28
97
|
|
|
29
98
|
export interface UserCollectiblesResponse {
|
|
99
|
+
/**
|
|
100
|
+
* Object mapping of nameplate data
|
|
101
|
+
*/
|
|
30
102
|
readonly nameplate: UserNameplateResponse | null
|
|
31
103
|
}
|
|
32
104
|
|
|
33
105
|
export interface UserPrimaryGuildResponse {
|
|
106
|
+
/**
|
|
107
|
+
* the id of the user's primary guild
|
|
108
|
+
*/
|
|
34
109
|
readonly identity_guild_id: SnowflakeType | null
|
|
110
|
+
/**
|
|
111
|
+
* whether the user is displaying the primary guild's server tag
|
|
112
|
+
*/
|
|
35
113
|
readonly identity_enabled: boolean | null
|
|
114
|
+
/**
|
|
115
|
+
* the text of the user's server tag, limited to 4 characters
|
|
116
|
+
*/
|
|
36
117
|
readonly tag: string | null
|
|
118
|
+
/**
|
|
119
|
+
* the server tag badge hash
|
|
120
|
+
*/
|
|
37
121
|
readonly badge: string | null
|
|
38
122
|
}
|
|
39
123
|
|
|
40
124
|
export interface UserResponse {
|
|
125
|
+
/**
|
|
126
|
+
* the user's id
|
|
127
|
+
*/
|
|
41
128
|
readonly id: SnowflakeType
|
|
129
|
+
/**
|
|
130
|
+
* the user's username, not unique across the platform
|
|
131
|
+
*/
|
|
42
132
|
readonly username: string
|
|
133
|
+
/**
|
|
134
|
+
* the user's avatar hash
|
|
135
|
+
*/
|
|
43
136
|
readonly avatar: string | null
|
|
137
|
+
/**
|
|
138
|
+
* the user's Discord-tag
|
|
139
|
+
*/
|
|
44
140
|
readonly discriminator: string
|
|
141
|
+
/**
|
|
142
|
+
* the public flags on a user's account
|
|
143
|
+
*/
|
|
45
144
|
readonly public_flags: number
|
|
145
|
+
/**
|
|
146
|
+
* the flags on a user's account
|
|
147
|
+
*/
|
|
46
148
|
readonly flags: Int53Type
|
|
149
|
+
/**
|
|
150
|
+
* whether the user belongs to an OAuth2 application
|
|
151
|
+
*/
|
|
47
152
|
readonly bot?: boolean | undefined
|
|
153
|
+
/**
|
|
154
|
+
* whether the user is an Official Discord System user (part of the urgent message system)
|
|
155
|
+
*/
|
|
48
156
|
readonly system?: boolean | undefined
|
|
157
|
+
/**
|
|
158
|
+
* the user's banner hash
|
|
159
|
+
*/
|
|
49
160
|
readonly banner?: string | null | undefined
|
|
161
|
+
/**
|
|
162
|
+
* the user's banner color encoded as an integer representation of hexadecimal color code
|
|
163
|
+
*/
|
|
50
164
|
readonly accent_color?: number | null | undefined
|
|
165
|
+
/**
|
|
166
|
+
* the user's display name, if it is set
|
|
167
|
+
*/
|
|
51
168
|
readonly global_name: string | null
|
|
169
|
+
/**
|
|
170
|
+
* data for the user's avatar decoration
|
|
171
|
+
*/
|
|
52
172
|
readonly avatar_decoration_data?:
|
|
53
173
|
| UserAvatarDecorationResponse
|
|
54
174
|
| null
|
|
55
175
|
| undefined
|
|
176
|
+
/**
|
|
177
|
+
* data for the user's collectibles
|
|
178
|
+
*/
|
|
56
179
|
readonly collectibles?: UserCollectiblesResponse | null | undefined
|
|
180
|
+
/**
|
|
181
|
+
* the user's primary guild
|
|
182
|
+
*/
|
|
57
183
|
readonly primary_guild: UserPrimaryGuildResponse | null
|
|
58
184
|
}
|
|
59
185
|
|
|
@@ -377,6 +503,18 @@ export const ActionTypes = {
|
|
|
377
503
|
* Properties about the user changed
|
|
378
504
|
*/
|
|
379
505
|
USER_UPDATE: "USER_UPDATE",
|
|
506
|
+
/**
|
|
507
|
+
* Entitlement was created
|
|
508
|
+
*/
|
|
509
|
+
ENTITLEMENT_CREATE: "ENTITLEMENT_CREATE",
|
|
510
|
+
/**
|
|
511
|
+
* Entitlement was updated
|
|
512
|
+
*/
|
|
513
|
+
ENTITLEMENT_UPDATE: "ENTITLEMENT_UPDATE",
|
|
514
|
+
/**
|
|
515
|
+
* Entitlement was deleted
|
|
516
|
+
*/
|
|
517
|
+
ENTITLEMENT_DELETE: "ENTITLEMENT_DELETE",
|
|
380
518
|
/**
|
|
381
519
|
* Contains the initial state information
|
|
382
520
|
*/
|
|
@@ -397,6 +535,30 @@ export const ActionTypes = {
|
|
|
397
535
|
* Guild's voice server was updated
|
|
398
536
|
*/
|
|
399
537
|
VOICE_SERVER_UPDATE: "VOICE_SERVER_UPDATE",
|
|
538
|
+
/**
|
|
539
|
+
* Sent when a message is created in a lobby
|
|
540
|
+
*/
|
|
541
|
+
LOBBY_MESSAGE_CREATE: "LOBBY_MESSAGE_CREATE",
|
|
542
|
+
/**
|
|
543
|
+
* Sent when a message is updated in a lobby
|
|
544
|
+
*/
|
|
545
|
+
LOBBY_MESSAGE_UPDATE: "LOBBY_MESSAGE_UPDATE",
|
|
546
|
+
/**
|
|
547
|
+
* Sent when a message is deleted from a lobby
|
|
548
|
+
*/
|
|
549
|
+
LOBBY_MESSAGE_DELETE: "LOBBY_MESSAGE_DELETE",
|
|
550
|
+
/**
|
|
551
|
+
* Sent when a direct message is created during an active Social SDK session
|
|
552
|
+
*/
|
|
553
|
+
GAME_DIRECT_MESSAGE_CREATE: "GAME_DIRECT_MESSAGE_CREATE",
|
|
554
|
+
/**
|
|
555
|
+
* Sent when a direct message is deleted during an active Social SDK session
|
|
556
|
+
*/
|
|
557
|
+
GAME_DIRECT_MESSAGE_DELETE: "GAME_DIRECT_MESSAGE_DELETE",
|
|
558
|
+
/**
|
|
559
|
+
* Sent when a direct message is updated during an active Social SDK session
|
|
560
|
+
*/
|
|
561
|
+
GAME_DIRECT_MESSAGE_UPDATE: "GAME_DIRECT_MESSAGE_UPDATE",
|
|
400
562
|
/**
|
|
401
563
|
* User used an interaction, such as an Application Command
|
|
402
564
|
*/
|
|
@@ -418,6 +580,14 @@ export const ActionTypes = {
|
|
|
418
580
|
*/
|
|
419
581
|
APPLICATION_COMMAND_PERMISSIONS_UPDATE:
|
|
420
582
|
"APPLICATION_COMMAND_PERMISSIONS_UPDATE",
|
|
583
|
+
/**
|
|
584
|
+
* Sent when an app was authorized by a user to a server or their account
|
|
585
|
+
*/
|
|
586
|
+
APPLICATION_AUTHORIZED: "APPLICATION_AUTHORIZED",
|
|
587
|
+
/**
|
|
588
|
+
* Sent when an app was deauthorized by a user
|
|
589
|
+
*/
|
|
590
|
+
APPLICATION_DEAUTHORIZED: "APPLICATION_DEAUTHORIZED",
|
|
421
591
|
/**
|
|
422
592
|
* Stage instance was created
|
|
423
593
|
*/
|
|
@@ -474,6 +644,10 @@ export const ActionTypes = {
|
|
|
474
644
|
GUILD_SOUNDBOARD_SOUND_CREATE: "GUILD_SOUNDBOARD_SOUND_CREATE",
|
|
475
645
|
GUILD_SOUNDBOARD_SOUND_UPDATE: "GUILD_SOUNDBOARD_SOUND_UPDATE",
|
|
476
646
|
GUILD_SOUNDBOARD_SOUND_DELETE: "GUILD_SOUNDBOARD_SOUND_DELETE",
|
|
647
|
+
/**
|
|
648
|
+
* User was added to a Quest (currently unavailable)
|
|
649
|
+
*/
|
|
650
|
+
QUEST_USER_ENROLLMENT: "QUEST_USER_ENROLLMENT",
|
|
477
651
|
RATE_LIMITED: "RATE_LIMITED",
|
|
478
652
|
} as const
|
|
479
653
|
export type ActionTypes = (typeof ActionTypes)[keyof typeof ActionTypes]
|
|
@@ -558,6 +732,7 @@ export interface PrivateApplicationResponse {
|
|
|
558
732
|
readonly integration_types_config?: Record<string, unknown> | undefined
|
|
559
733
|
readonly verify_key: string
|
|
560
734
|
readonly flags: number
|
|
735
|
+
readonly flags_new: string
|
|
561
736
|
readonly max_participants?: number | null | undefined
|
|
562
737
|
readonly tags?: ReadonlyArray<string> | undefined
|
|
563
738
|
readonly redirect_uris: ReadonlyArray<string>
|
|
@@ -569,9 +744,25 @@ export interface PrivateApplicationResponse {
|
|
|
569
744
|
readonly approximate_user_authorization_count: number
|
|
570
745
|
readonly event_webhooks_url?: string | null | undefined
|
|
571
746
|
readonly event_webhooks_status?: ApplicationEventWebhooksStatus | undefined
|
|
572
|
-
readonly event_webhooks_types?:
|
|
747
|
+
readonly event_webhooks_types?:
|
|
748
|
+
| ReadonlyArray<
|
|
749
|
+
| "APPLICATION_AUTHORIZED"
|
|
750
|
+
| "APPLICATION_DEAUTHORIZED"
|
|
751
|
+
| "ENTITLEMENT_CREATE"
|
|
752
|
+
| "ENTITLEMENT_DELETE"
|
|
753
|
+
| "ENTITLEMENT_UPDATE"
|
|
754
|
+
| "GAME_DIRECT_MESSAGE_CREATE"
|
|
755
|
+
| "GAME_DIRECT_MESSAGE_DELETE"
|
|
756
|
+
| "GAME_DIRECT_MESSAGE_UPDATE"
|
|
757
|
+
| "LOBBY_MESSAGE_CREATE"
|
|
758
|
+
| "LOBBY_MESSAGE_DELETE"
|
|
759
|
+
| "LOBBY_MESSAGE_UPDATE"
|
|
760
|
+
| "QUEST_USER_ENROLLMENT"
|
|
761
|
+
>
|
|
762
|
+
| undefined
|
|
573
763
|
readonly explicit_content_filter: ApplicationExplicitContentFilterTypes
|
|
574
764
|
readonly team: TeamResponse | null
|
|
765
|
+
readonly eligible_oauth2_scopes: ReadonlyArray<OAuth2Scopes>
|
|
575
766
|
}
|
|
576
767
|
|
|
577
768
|
/**
|
|
@@ -667,8 +858,27 @@ export interface ApplicationFormPartial {
|
|
|
667
858
|
readonly role_connections_verification_url?: string | null | undefined
|
|
668
859
|
readonly integration_types_config?: Record<string, unknown> | null | undefined
|
|
669
860
|
readonly event_webhooks_status?: 1 | 2 | null | undefined
|
|
861
|
+
/**
|
|
862
|
+
* Event webhooks URL for the app to receive webhook events
|
|
863
|
+
*/
|
|
670
864
|
readonly event_webhooks_url?: string | null | undefined
|
|
671
|
-
readonly event_webhooks_types?:
|
|
865
|
+
readonly event_webhooks_types?:
|
|
866
|
+
| ReadonlyArray<
|
|
867
|
+
| "APPLICATION_AUTHORIZED"
|
|
868
|
+
| "APPLICATION_DEAUTHORIZED"
|
|
869
|
+
| "ENTITLEMENT_CREATE"
|
|
870
|
+
| "ENTITLEMENT_DELETE"
|
|
871
|
+
| "ENTITLEMENT_UPDATE"
|
|
872
|
+
| "GAME_DIRECT_MESSAGE_CREATE"
|
|
873
|
+
| "GAME_DIRECT_MESSAGE_DELETE"
|
|
874
|
+
| "GAME_DIRECT_MESSAGE_UPDATE"
|
|
875
|
+
| "LOBBY_MESSAGE_CREATE"
|
|
876
|
+
| "LOBBY_MESSAGE_DELETE"
|
|
877
|
+
| "LOBBY_MESSAGE_UPDATE"
|
|
878
|
+
| "QUEST_USER_ENROLLMENT"
|
|
879
|
+
>
|
|
880
|
+
| null
|
|
881
|
+
| undefined
|
|
672
882
|
}
|
|
673
883
|
|
|
674
884
|
export const EmbeddedActivityLocationKind = {
|
|
@@ -734,20 +944,11 @@ export interface ApplicationResponse {
|
|
|
734
944
|
readonly integration_types_config?: Record<string, unknown> | undefined
|
|
735
945
|
readonly verify_key: string
|
|
736
946
|
readonly flags: number
|
|
947
|
+
readonly flags_new: string
|
|
737
948
|
readonly max_participants?: number | null | undefined
|
|
738
949
|
readonly tags?: ReadonlyArray<string> | undefined
|
|
739
950
|
}
|
|
740
951
|
|
|
741
|
-
export interface ClipSpeakingEventResponse {
|
|
742
|
-
readonly user_id: SnowflakeType
|
|
743
|
-
readonly speaking_flags: number
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
export interface ClipEventTimelineEntryResponse {
|
|
747
|
-
readonly timestamp_ms: number
|
|
748
|
-
readonly speaking?: ClipSpeakingEventResponse | undefined
|
|
749
|
-
}
|
|
750
|
-
|
|
751
952
|
export interface AttachmentResponse {
|
|
752
953
|
readonly id: SnowflakeType
|
|
753
954
|
readonly filename: string
|
|
@@ -768,9 +969,6 @@ export interface AttachmentResponse {
|
|
|
768
969
|
readonly application?: ApplicationResponse | undefined
|
|
769
970
|
readonly clip_created_at?: string | undefined
|
|
770
971
|
readonly clip_participants?: ReadonlyArray<UserResponse> | undefined
|
|
771
|
-
readonly clip_events_timeline?:
|
|
772
|
-
| ReadonlyArray<ClipEventTimelineEntryResponse>
|
|
773
|
-
| undefined
|
|
774
972
|
}
|
|
775
973
|
|
|
776
974
|
export interface ActivitiesAttachmentResponse {
|
|
@@ -1143,6 +1341,19 @@ export interface ApplicationCommandSubcommandGroupOptionResponse {
|
|
|
1143
1341
|
| undefined
|
|
1144
1342
|
}
|
|
1145
1343
|
|
|
1344
|
+
export const ApplicationCommandHandler = {
|
|
1345
|
+
/**
|
|
1346
|
+
* The app handles the interaction using an interaction token
|
|
1347
|
+
*/
|
|
1348
|
+
APP_HANDLER: 1,
|
|
1349
|
+
/**
|
|
1350
|
+
* Discord handles the interaction by launching an Activity and sending a follow-up message without coordinating with the app
|
|
1351
|
+
*/
|
|
1352
|
+
DISCORD_LAUNCH_ACTIVITY: 2,
|
|
1353
|
+
} as const
|
|
1354
|
+
export type ApplicationCommandHandler =
|
|
1355
|
+
(typeof ApplicationCommandHandler)[keyof typeof ApplicationCommandHandler]
|
|
1356
|
+
|
|
1146
1357
|
export interface ApplicationCommandResponse {
|
|
1147
1358
|
readonly id: SnowflakeType
|
|
1148
1359
|
readonly application_id: SnowflakeType
|
|
@@ -1180,6 +1391,10 @@ export interface ApplicationCommandResponse {
|
|
|
1180
1391
|
>
|
|
1181
1392
|
| undefined
|
|
1182
1393
|
readonly nsfw?: boolean | undefined
|
|
1394
|
+
/**
|
|
1395
|
+
* Determines whether the interaction is handled by the app's interactions handler or by Discord
|
|
1396
|
+
*/
|
|
1397
|
+
readonly handler?: ApplicationCommandHandler | undefined
|
|
1183
1398
|
}
|
|
1184
1399
|
|
|
1185
1400
|
export type ListApplicationCommands200 =
|
|
@@ -1375,8 +1590,6 @@ export interface ApplicationCommandSubcommandGroupOption {
|
|
|
1375
1590
|
| undefined
|
|
1376
1591
|
}
|
|
1377
1592
|
|
|
1378
|
-
export type ApplicationCommandHandler = number
|
|
1379
|
-
|
|
1380
1593
|
export interface ApplicationCommandUpdateRequest {
|
|
1381
1594
|
readonly name: string
|
|
1382
1595
|
readonly name_localizations?: Record<string, unknown> | null | undefined
|
|
@@ -1408,6 +1621,9 @@ export interface ApplicationCommandUpdateRequest {
|
|
|
1408
1621
|
| ReadonlyArray<ApplicationIntegrationType>
|
|
1409
1622
|
| null
|
|
1410
1623
|
| undefined
|
|
1624
|
+
/**
|
|
1625
|
+
* Determines whether the interaction is handled by the app's interactions handler or by Discord
|
|
1626
|
+
*/
|
|
1411
1627
|
readonly handler?: ApplicationCommandHandler | null | undefined
|
|
1412
1628
|
readonly type?: ApplicationCommandType | null | undefined
|
|
1413
1629
|
readonly id?: SnowflakeType | null | undefined
|
|
@@ -1450,6 +1666,9 @@ export interface ApplicationCommandCreateRequest {
|
|
|
1450
1666
|
| ReadonlyArray<ApplicationIntegrationType>
|
|
1451
1667
|
| null
|
|
1452
1668
|
| undefined
|
|
1669
|
+
/**
|
|
1670
|
+
* Determines whether the interaction is handled by the app's interactions handler or by Discord
|
|
1671
|
+
*/
|
|
1453
1672
|
readonly handler?: ApplicationCommandHandler | null | undefined
|
|
1454
1673
|
readonly type?: ApplicationCommandType | null | undefined
|
|
1455
1674
|
}
|
|
@@ -1485,6 +1704,9 @@ export interface ApplicationCommandPatchRequestPartial {
|
|
|
1485
1704
|
| ReadonlyArray<ApplicationIntegrationType>
|
|
1486
1705
|
| null
|
|
1487
1706
|
| undefined
|
|
1707
|
+
/**
|
|
1708
|
+
* Determines whether the interaction is handled by the app's interactions handler or by Discord
|
|
1709
|
+
*/
|
|
1488
1710
|
readonly handler?: ApplicationCommandHandler | null | undefined
|
|
1489
1711
|
}
|
|
1490
1712
|
|
|
@@ -1566,11 +1788,31 @@ export interface EntitlementResponse {
|
|
|
1566
1788
|
|
|
1567
1789
|
export type GetEntitlements200 = ReadonlyArray<EntitlementResponse>
|
|
1568
1790
|
|
|
1569
|
-
export
|
|
1791
|
+
export const EntitlementOwnerTypes = {
|
|
1792
|
+
/**
|
|
1793
|
+
* A guild subscription
|
|
1794
|
+
*/
|
|
1795
|
+
GUILD: 1,
|
|
1796
|
+
/**
|
|
1797
|
+
* A user subscription
|
|
1798
|
+
*/
|
|
1799
|
+
USER: 2,
|
|
1800
|
+
} as const
|
|
1801
|
+
export type EntitlementOwnerTypes =
|
|
1802
|
+
(typeof EntitlementOwnerTypes)[keyof typeof EntitlementOwnerTypes]
|
|
1570
1803
|
|
|
1571
1804
|
export interface CreateEntitlementRequestData {
|
|
1805
|
+
/**
|
|
1806
|
+
* ID of the SKU to grant the entitlement to
|
|
1807
|
+
*/
|
|
1572
1808
|
readonly sku_id: SnowflakeType
|
|
1809
|
+
/**
|
|
1810
|
+
* ID of the guild or user to grant the entitlement to
|
|
1811
|
+
*/
|
|
1573
1812
|
readonly owner_id: SnowflakeType
|
|
1813
|
+
/**
|
|
1814
|
+
* 1 for a guild subscription, 2 for a user subscription
|
|
1815
|
+
*/
|
|
1574
1816
|
readonly owner_type: EntitlementOwnerTypes
|
|
1575
1817
|
}
|
|
1576
1818
|
|
|
@@ -1837,8 +2079,6 @@ export interface GuildChannelResponse {
|
|
|
1837
2079
|
readonly default_sort_order?: ThreadSortOrder | null | undefined
|
|
1838
2080
|
readonly default_forum_layout?: ForumLayout | undefined
|
|
1839
2081
|
readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
|
|
1840
|
-
readonly hd_streaming_until?: string | undefined
|
|
1841
|
-
readonly hd_streaming_buyer_id?: SnowflakeType | undefined
|
|
1842
2082
|
}
|
|
1843
2083
|
|
|
1844
2084
|
export interface PrivateChannelResponse {
|
|
@@ -1874,22 +2114,64 @@ export interface ThreadMetadataResponse {
|
|
|
1874
2114
|
}
|
|
1875
2115
|
|
|
1876
2116
|
export interface GuildMemberResponse {
|
|
2117
|
+
/**
|
|
2118
|
+
* the member's guild avatar hash
|
|
2119
|
+
*/
|
|
1877
2120
|
readonly avatar: string | null
|
|
2121
|
+
/**
|
|
2122
|
+
* data for the member's guild avatar decoration
|
|
2123
|
+
*/
|
|
1878
2124
|
readonly avatar_decoration_data?:
|
|
1879
2125
|
| UserAvatarDecorationResponse
|
|
1880
2126
|
| null
|
|
1881
2127
|
| undefined
|
|
2128
|
+
/**
|
|
2129
|
+
* the member's guild banner hash
|
|
2130
|
+
*/
|
|
1882
2131
|
readonly banner: string | null
|
|
2132
|
+
/**
|
|
2133
|
+
* 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
|
|
2134
|
+
*/
|
|
1883
2135
|
readonly communication_disabled_until: string | null
|
|
2136
|
+
/**
|
|
2137
|
+
* guild member flags represented as a bit set, defaults to 0
|
|
2138
|
+
*/
|
|
1884
2139
|
readonly flags: number
|
|
2140
|
+
/**
|
|
2141
|
+
* when the user joined the guild
|
|
2142
|
+
*/
|
|
1885
2143
|
readonly joined_at: string
|
|
2144
|
+
/**
|
|
2145
|
+
* this user's guild nickname
|
|
2146
|
+
*/
|
|
1886
2147
|
readonly nick: string | null
|
|
2148
|
+
/**
|
|
2149
|
+
* whether the user has not yet passed the guild's Membership Screening requirements
|
|
2150
|
+
*/
|
|
1887
2151
|
readonly pending: boolean
|
|
2152
|
+
/**
|
|
2153
|
+
* when the user started boosting the guild
|
|
2154
|
+
*/
|
|
1888
2155
|
readonly premium_since: string | null
|
|
2156
|
+
/**
|
|
2157
|
+
* array of role object ids
|
|
2158
|
+
*/
|
|
1889
2159
|
readonly roles: ReadonlyArray<SnowflakeType>
|
|
2160
|
+
/**
|
|
2161
|
+
* data for the member's collectibles
|
|
2162
|
+
*/
|
|
1890
2163
|
readonly collectibles?: UserCollectiblesResponse | null | undefined
|
|
2164
|
+
/**
|
|
2165
|
+
* the user this guild member represents
|
|
2166
|
+
*/
|
|
1891
2167
|
readonly user: UserResponse
|
|
2168
|
+
/**
|
|
2169
|
+
* whether the user is muted in voice channels
|
|
2170
|
+
*/
|
|
1892
2171
|
readonly mute: boolean
|
|
2172
|
+
/**
|
|
2173
|
+
* whether the user is deafened in voice channels
|
|
2174
|
+
*/
|
|
1893
2175
|
readonly deaf: boolean
|
|
1894
2176
|
}
|
|
1895
2177
|
|
|
@@ -2045,7 +2327,9 @@ export const InviteTypes = {
|
|
|
2045
2327
|
export type InviteTypes = (typeof InviteTypes)[keyof typeof InviteTypes]
|
|
2046
2328
|
|
|
2047
2329
|
export interface InviteChannelRecipientResponse {
|
|
2330
|
+
readonly id: SnowflakeType
|
|
2048
2331
|
readonly username: string
|
|
2332
|
+
readonly avatar: string | null
|
|
2049
2333
|
}
|
|
2050
2334
|
|
|
2051
2335
|
export interface InviteChannelResponse {
|
|
@@ -2161,6 +2445,10 @@ export const GuildFeatures = {
|
|
|
2161
2445
|
* guild has disabled activity alerts in the configured safety alerts channel
|
|
2162
2446
|
*/
|
|
2163
2447
|
RAID_ALERTS_DISABLED: "RAID_ALERTS_DISABLED",
|
|
2448
|
+
/**
|
|
2449
|
+
* guild has restricted member prune to administrators and the guild owner
|
|
2450
|
+
*/
|
|
2451
|
+
PRUNE_REQUIRES_ADMIN: "PRUNE_REQUIRES_ADMIN",
|
|
2164
2452
|
/**
|
|
2165
2453
|
* guild is able to set role icons
|
|
2166
2454
|
*/
|
|
@@ -2279,6 +2567,7 @@ export interface InviteApplicationResponse {
|
|
|
2279
2567
|
readonly integration_types_config?: Record<string, unknown> | undefined
|
|
2280
2568
|
readonly verify_key: string
|
|
2281
2569
|
readonly flags: number
|
|
2570
|
+
readonly flags_new: string
|
|
2282
2571
|
readonly max_participants?: number | null | undefined
|
|
2283
2572
|
readonly tags?: ReadonlyArray<string> | undefined
|
|
2284
2573
|
}
|
|
@@ -2301,32 +2590,235 @@ export const GuildScheduledEventEntityTypes = {
|
|
|
2301
2590
|
export type GuildScheduledEventEntityTypes =
|
|
2302
2591
|
(typeof GuildScheduledEventEntityTypes)[keyof typeof GuildScheduledEventEntityTypes]
|
|
2303
2592
|
|
|
2593
|
+
export const RecurrenceRuleFrequencies = {
|
|
2594
|
+
DAILY: 3,
|
|
2595
|
+
WEEKLY: 2,
|
|
2596
|
+
MONTHLY: 1,
|
|
2597
|
+
YEARLY: 0,
|
|
2598
|
+
} as const
|
|
2599
|
+
export type RecurrenceRuleFrequencies =
|
|
2600
|
+
(typeof RecurrenceRuleFrequencies)[keyof typeof RecurrenceRuleFrequencies]
|
|
2601
|
+
|
|
2602
|
+
export const RecurrenceRuleWeekdays = {
|
|
2603
|
+
MONDAY: 0,
|
|
2604
|
+
TUESDAY: 1,
|
|
2605
|
+
WEDNESDAY: 2,
|
|
2606
|
+
THURSDAY: 3,
|
|
2607
|
+
FRIDAY: 4,
|
|
2608
|
+
SATURDAY: 5,
|
|
2609
|
+
SUNDAY: 6,
|
|
2610
|
+
} as const
|
|
2611
|
+
export type RecurrenceRuleWeekdays =
|
|
2612
|
+
(typeof RecurrenceRuleWeekdays)[keyof typeof RecurrenceRuleWeekdays]
|
|
2613
|
+
|
|
2614
|
+
export interface ByNWeekdayResponse {
|
|
2615
|
+
/**
|
|
2616
|
+
* The week to reoccur on (1-5, where 5 represents the last week)
|
|
2617
|
+
*/
|
|
2618
|
+
readonly n: number
|
|
2619
|
+
/**
|
|
2620
|
+
* The day within the week to reoccur on
|
|
2621
|
+
*/
|
|
2622
|
+
readonly day: RecurrenceRuleWeekdays
|
|
2623
|
+
}
|
|
2624
|
+
|
|
2625
|
+
export const RecurrenceRuleMonths = {
|
|
2626
|
+
JANUARY: 1,
|
|
2627
|
+
FEBRUARY: 2,
|
|
2628
|
+
MARCH: 3,
|
|
2629
|
+
APRIL: 4,
|
|
2630
|
+
MAY: 5,
|
|
2631
|
+
JUNE: 6,
|
|
2632
|
+
JULY: 7,
|
|
2633
|
+
AUGUST: 8,
|
|
2634
|
+
SEPTEMBER: 9,
|
|
2635
|
+
OCTOBER: 10,
|
|
2636
|
+
NOVEMBER: 11,
|
|
2637
|
+
DECEMBER: 12,
|
|
2638
|
+
} as const
|
|
2639
|
+
export type RecurrenceRuleMonths =
|
|
2640
|
+
(typeof RecurrenceRuleMonths)[keyof typeof RecurrenceRuleMonths]
|
|
2641
|
+
|
|
2642
|
+
export interface RecurrenceRuleResponse {
|
|
2643
|
+
/**
|
|
2644
|
+
* Starting time of the recurrence interval
|
|
2645
|
+
*/
|
|
2646
|
+
readonly start: string
|
|
2647
|
+
/**
|
|
2648
|
+
* Ending time of the recurrence interval
|
|
2649
|
+
*/
|
|
2650
|
+
readonly end?: string | null | undefined
|
|
2651
|
+
/**
|
|
2652
|
+
* How often the event occurs
|
|
2653
|
+
*/
|
|
2654
|
+
readonly frequency: RecurrenceRuleFrequencies
|
|
2655
|
+
/**
|
|
2656
|
+
* The spacing between events, defined by frequency
|
|
2657
|
+
*/
|
|
2658
|
+
readonly interval: number
|
|
2659
|
+
/**
|
|
2660
|
+
* Set of specific days within a week for the event to recur on
|
|
2661
|
+
*/
|
|
2662
|
+
readonly by_weekday: ReadonlyArray<RecurrenceRuleWeekdays> | null
|
|
2663
|
+
/**
|
|
2664
|
+
* List of specific days within a specific week to recur on
|
|
2665
|
+
*/
|
|
2666
|
+
readonly by_n_weekday: ReadonlyArray<ByNWeekdayResponse> | null
|
|
2667
|
+
/**
|
|
2668
|
+
* Set of specific months to recur on
|
|
2669
|
+
*/
|
|
2670
|
+
readonly by_month: ReadonlyArray<RecurrenceRuleMonths> | null
|
|
2671
|
+
/**
|
|
2672
|
+
* Set of specific dates within a month to recur on
|
|
2673
|
+
*/
|
|
2674
|
+
readonly by_month_day: ReadonlyArray<number> | null
|
|
2675
|
+
/**
|
|
2676
|
+
* Set of days within a year to recur on (1-364)
|
|
2677
|
+
*/
|
|
2678
|
+
readonly by_year_day?: ReadonlyArray<number> | null | undefined
|
|
2679
|
+
/**
|
|
2680
|
+
* Total number of times the event is allowed to recur
|
|
2681
|
+
*/
|
|
2682
|
+
readonly count?: number | null | undefined
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2304
2685
|
export type GuildScheduledEventPrivacyLevels = 2
|
|
2305
2686
|
|
|
2687
|
+
export const GuildScheduledEventUserResponses = {
|
|
2688
|
+
/**
|
|
2689
|
+
* User is not interested in the event
|
|
2690
|
+
*/
|
|
2691
|
+
UNINTERESTED: 0,
|
|
2692
|
+
/**
|
|
2693
|
+
* User is interested in the event
|
|
2694
|
+
*/
|
|
2695
|
+
INTERESTED: 1,
|
|
2696
|
+
} as const
|
|
2697
|
+
export type GuildScheduledEventUserResponses =
|
|
2698
|
+
(typeof GuildScheduledEventUserResponses)[keyof typeof GuildScheduledEventUserResponses]
|
|
2699
|
+
|
|
2306
2700
|
export interface ScheduledEventUserResponse {
|
|
2701
|
+
/**
|
|
2702
|
+
* ID of the scheduled event
|
|
2703
|
+
*/
|
|
2307
2704
|
readonly guild_scheduled_event_id: SnowflakeType
|
|
2705
|
+
/**
|
|
2706
|
+
* ID of the scheduled event exception
|
|
2707
|
+
*/
|
|
2708
|
+
readonly guild_scheduled_event_exception_id?: SnowflakeType | null | undefined
|
|
2709
|
+
/**
|
|
2710
|
+
* ID of the user
|
|
2711
|
+
*/
|
|
2308
2712
|
readonly user_id: SnowflakeType
|
|
2713
|
+
/**
|
|
2714
|
+
* User object for the RSVP user
|
|
2715
|
+
*/
|
|
2309
2716
|
readonly user?: UserResponse | undefined
|
|
2717
|
+
/**
|
|
2718
|
+
* Guild member object for the RSVP user
|
|
2719
|
+
*/
|
|
2310
2720
|
readonly member?: GuildMemberResponse | undefined
|
|
2721
|
+
/**
|
|
2722
|
+
* User's RSVP status for the event
|
|
2723
|
+
*/
|
|
2724
|
+
readonly response: GuildScheduledEventUserResponses
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
export interface GuildScheduledEventExceptionResponse {
|
|
2728
|
+
/**
|
|
2729
|
+
* ID of the scheduled event this exception belongs to
|
|
2730
|
+
*/
|
|
2731
|
+
readonly event_id: SnowflakeType
|
|
2732
|
+
/**
|
|
2733
|
+
* ID of the event exception
|
|
2734
|
+
*/
|
|
2735
|
+
readonly event_exception_id: SnowflakeType
|
|
2736
|
+
/**
|
|
2737
|
+
* Overridden start time of this occurrence
|
|
2738
|
+
*/
|
|
2739
|
+
readonly scheduled_start_time: string | null
|
|
2740
|
+
/**
|
|
2741
|
+
* Overridden end time of this occurrence
|
|
2742
|
+
*/
|
|
2743
|
+
readonly scheduled_end_time: string | null
|
|
2744
|
+
/**
|
|
2745
|
+
* Whether this occurrence is canceled
|
|
2746
|
+
*/
|
|
2747
|
+
readonly is_canceled: boolean
|
|
2311
2748
|
}
|
|
2312
2749
|
|
|
2313
2750
|
export interface ScheduledEventResponse {
|
|
2751
|
+
/**
|
|
2752
|
+
* ID of the scheduled event
|
|
2753
|
+
*/
|
|
2314
2754
|
readonly id: SnowflakeType
|
|
2755
|
+
/**
|
|
2756
|
+
* ID of the guild the scheduled event belongs to
|
|
2757
|
+
*/
|
|
2315
2758
|
readonly guild_id: SnowflakeType
|
|
2759
|
+
/**
|
|
2760
|
+
* Name of the scheduled event
|
|
2761
|
+
*/
|
|
2316
2762
|
readonly name: string
|
|
2763
|
+
/**
|
|
2764
|
+
* Description of the scheduled event
|
|
2765
|
+
*/
|
|
2317
2766
|
readonly description: string | null
|
|
2767
|
+
/**
|
|
2768
|
+
* Channel ID in which the scheduled event will be hosted, or null if entity type is EXTERNAL
|
|
2769
|
+
*/
|
|
2318
2770
|
readonly channel_id: SnowflakeType | null
|
|
2771
|
+
/**
|
|
2772
|
+
* ID of the user that created the scheduled event
|
|
2773
|
+
*/
|
|
2319
2774
|
readonly creator_id: SnowflakeType | null
|
|
2775
|
+
/**
|
|
2776
|
+
* User that created the scheduled event
|
|
2777
|
+
*/
|
|
2320
2778
|
readonly creator?: UserResponse | undefined
|
|
2779
|
+
/**
|
|
2780
|
+
* Cover image hash of the scheduled event
|
|
2781
|
+
*/
|
|
2321
2782
|
readonly image: string | null
|
|
2783
|
+
/**
|
|
2784
|
+
* When the scheduled event will start
|
|
2785
|
+
*/
|
|
2322
2786
|
readonly scheduled_start_time: string
|
|
2323
|
-
|
|
2787
|
+
/**
|
|
2788
|
+
* When the scheduled event will end, or null if no end time
|
|
2789
|
+
*/
|
|
2790
|
+
readonly scheduled_end_time: string | null
|
|
2791
|
+
/**
|
|
2792
|
+
* Status of the scheduled event
|
|
2793
|
+
*/
|
|
2324
2794
|
readonly status: GuildScheduledEventStatuses
|
|
2795
|
+
/**
|
|
2796
|
+
* Type of hosting entity associated with the scheduled event
|
|
2797
|
+
*/
|
|
2325
2798
|
readonly entity_type: GuildScheduledEventEntityTypes
|
|
2799
|
+
/**
|
|
2800
|
+
* ID of the hosting entity associated with the scheduled event
|
|
2801
|
+
*/
|
|
2326
2802
|
readonly entity_id: SnowflakeType | null
|
|
2803
|
+
/**
|
|
2804
|
+
* Recurrence rule for the scheduled event, or null if not recurring
|
|
2805
|
+
*/
|
|
2806
|
+
readonly recurrence_rule: RecurrenceRuleResponse | null
|
|
2807
|
+
/**
|
|
2808
|
+
* Number of users subscribed to the scheduled event
|
|
2809
|
+
*/
|
|
2327
2810
|
readonly user_count?: number | undefined
|
|
2811
|
+
/**
|
|
2812
|
+
* Privacy level of the scheduled event
|
|
2813
|
+
*/
|
|
2328
2814
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
2329
2815
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
|
|
2816
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
export interface GuildLivelinessResponse {
|
|
2820
|
+
readonly msg_activity_bins: ReadonlyArray<number>
|
|
2821
|
+
readonly last_updated_ts?: string | null | undefined
|
|
2330
2822
|
}
|
|
2331
2823
|
|
|
2332
2824
|
export interface GuildRoleColorsResponse {
|
|
@@ -2362,6 +2854,9 @@ export interface GuildInviteResponse {
|
|
|
2362
2854
|
readonly target_user?: UserResponse | undefined
|
|
2363
2855
|
readonly target_application?: InviteApplicationResponse | undefined
|
|
2364
2856
|
readonly guild_scheduled_event?: ScheduledEventResponse | undefined
|
|
2857
|
+
readonly target_channel_id?: SnowflakeType | undefined
|
|
2858
|
+
readonly target_message_id?: SnowflakeType | undefined
|
|
2859
|
+
readonly liveliness?: GuildLivelinessResponse | null | undefined
|
|
2365
2860
|
readonly uses?: number | undefined
|
|
2366
2861
|
readonly max_uses?: number | undefined
|
|
2367
2862
|
readonly temporary?: boolean | undefined
|
|
@@ -2387,6 +2882,7 @@ export interface CreateGuildInviteRequest {
|
|
|
2387
2882
|
readonly target_user_id?: SnowflakeType | null | undefined
|
|
2388
2883
|
readonly target_application_id?: SnowflakeType | null | undefined
|
|
2389
2884
|
readonly target_type?: 1 | 2 | null | undefined
|
|
2885
|
+
readonly role_ids?: string | ReadonlyArray<SnowflakeType> | null | undefined
|
|
2390
2886
|
}
|
|
2391
2887
|
|
|
2392
2888
|
export type CreateChannelInviteRequest =
|
|
@@ -2466,9 +2962,6 @@ export interface MessageAttachmentResponse {
|
|
|
2466
2962
|
readonly application?: ApplicationResponse | undefined
|
|
2467
2963
|
readonly clip_created_at?: string | undefined
|
|
2468
2964
|
readonly clip_participants?: ReadonlyArray<UserResponse> | undefined
|
|
2469
|
-
readonly clip_events_timeline?:
|
|
2470
|
-
| ReadonlyArray<ClipEventTimelineEntryResponse>
|
|
2471
|
-
| undefined
|
|
2472
2965
|
}
|
|
2473
2966
|
|
|
2474
2967
|
export interface MessageEmbedFieldResponse {
|
|
@@ -2947,7 +3440,7 @@ export interface MessageActivityResponse {
|
|
|
2947
3440
|
readonly party_id?: string | undefined
|
|
2948
3441
|
}
|
|
2949
3442
|
|
|
2950
|
-
export interface
|
|
3443
|
+
export interface BasicApplicationResponseWithBot {
|
|
2951
3444
|
readonly id: SnowflakeType
|
|
2952
3445
|
readonly name: string
|
|
2953
3446
|
readonly icon: string | null
|
|
@@ -3044,34 +3537,79 @@ export interface MessageReactionEmojiResponse {
|
|
|
3044
3537
|
}
|
|
3045
3538
|
|
|
3046
3539
|
export interface PollMediaResponse {
|
|
3540
|
+
/**
|
|
3541
|
+
* The text of the field
|
|
3542
|
+
*/
|
|
3047
3543
|
readonly text?: string | undefined
|
|
3544
|
+
/**
|
|
3545
|
+
* The emoji of the field
|
|
3546
|
+
*/
|
|
3048
3547
|
readonly emoji?: MessageReactionEmojiResponse | undefined
|
|
3049
3548
|
}
|
|
3050
3549
|
|
|
3051
3550
|
export interface PollAnswerResponse {
|
|
3551
|
+
/**
|
|
3552
|
+
* The ID of the answer
|
|
3553
|
+
*/
|
|
3052
3554
|
readonly answer_id: number
|
|
3555
|
+
/**
|
|
3556
|
+
* The data of the answer
|
|
3557
|
+
*/
|
|
3053
3558
|
readonly poll_media: PollMediaResponse
|
|
3054
3559
|
}
|
|
3055
3560
|
|
|
3056
|
-
export type PollLayoutTypes =
|
|
3561
|
+
export type PollLayoutTypes = 1
|
|
3057
3562
|
|
|
3058
3563
|
export interface PollResultsEntryResponse {
|
|
3564
|
+
/**
|
|
3565
|
+
* The answer_id
|
|
3566
|
+
*/
|
|
3059
3567
|
readonly id: number
|
|
3568
|
+
/**
|
|
3569
|
+
* The number of votes for this answer
|
|
3570
|
+
*/
|
|
3060
3571
|
readonly count: number
|
|
3572
|
+
/**
|
|
3573
|
+
* Whether the current user voted for this answer
|
|
3574
|
+
*/
|
|
3061
3575
|
readonly me_voted: boolean
|
|
3062
3576
|
}
|
|
3063
3577
|
|
|
3064
3578
|
export interface PollResultsResponse {
|
|
3579
|
+
/**
|
|
3580
|
+
* The counts for each answer
|
|
3581
|
+
*/
|
|
3065
3582
|
readonly answer_counts: ReadonlyArray<PollResultsEntryResponse>
|
|
3583
|
+
/**
|
|
3584
|
+
* Whether the votes have been precisely counted
|
|
3585
|
+
*/
|
|
3066
3586
|
readonly is_finalized: boolean
|
|
3067
3587
|
}
|
|
3068
3588
|
|
|
3069
3589
|
export interface PollResponse {
|
|
3590
|
+
/**
|
|
3591
|
+
* The question of the poll. Only `text` is supported.
|
|
3592
|
+
*/
|
|
3070
3593
|
readonly question: PollMediaResponse
|
|
3594
|
+
/**
|
|
3595
|
+
* Each of the answers available in the poll
|
|
3596
|
+
*/
|
|
3071
3597
|
readonly answers: ReadonlyArray<PollAnswerResponse>
|
|
3598
|
+
/**
|
|
3599
|
+
* The time when the poll ends
|
|
3600
|
+
*/
|
|
3072
3601
|
readonly expiry: string
|
|
3602
|
+
/**
|
|
3603
|
+
* Whether a user can select multiple answers
|
|
3604
|
+
*/
|
|
3073
3605
|
readonly allow_multiselect: boolean
|
|
3606
|
+
/**
|
|
3607
|
+
* The layout type of the poll
|
|
3608
|
+
*/
|
|
3074
3609
|
readonly layout_type: PollLayoutTypes
|
|
3610
|
+
/**
|
|
3611
|
+
* The results of the poll
|
|
3612
|
+
*/
|
|
3075
3613
|
readonly results: PollResultsResponse
|
|
3076
3614
|
}
|
|
3077
3615
|
|
|
@@ -3166,6 +3704,10 @@ export interface MessageSnapshotResponse {
|
|
|
3166
3704
|
readonly message: MinimalContentMessageResponse
|
|
3167
3705
|
}
|
|
3168
3706
|
|
|
3707
|
+
export interface MessageLobbyMemberResponse {
|
|
3708
|
+
readonly additional_name: string
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3169
3711
|
export interface MessageReactionCountDetailsResponse {
|
|
3170
3712
|
readonly burst: number
|
|
3171
3713
|
readonly normal: number
|
|
@@ -3211,7 +3753,7 @@ export interface BasicMessageResponse {
|
|
|
3211
3753
|
readonly tts: boolean
|
|
3212
3754
|
readonly call?: MessageCallResponse | undefined
|
|
3213
3755
|
readonly activity?: MessageActivityResponse | undefined
|
|
3214
|
-
readonly application?:
|
|
3756
|
+
readonly application?: BasicApplicationResponseWithBot | undefined
|
|
3215
3757
|
readonly application_id?: SnowflakeType | undefined
|
|
3216
3758
|
readonly interaction?: MessageInteractionResponse | undefined
|
|
3217
3759
|
readonly nonce?: number | string | undefined
|
|
@@ -3237,6 +3779,7 @@ export interface BasicMessageResponse {
|
|
|
3237
3779
|
readonly message_snapshots?:
|
|
3238
3780
|
| ReadonlyArray<MessageSnapshotResponse>
|
|
3239
3781
|
| undefined
|
|
3782
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined
|
|
3240
3783
|
}
|
|
3241
3784
|
|
|
3242
3785
|
export interface MessageResponse {
|
|
@@ -3270,7 +3813,7 @@ export interface MessageResponse {
|
|
|
3270
3813
|
readonly tts: boolean
|
|
3271
3814
|
readonly call?: MessageCallResponse | undefined
|
|
3272
3815
|
readonly activity?: MessageActivityResponse | undefined
|
|
3273
|
-
readonly application?:
|
|
3816
|
+
readonly application?: BasicApplicationResponseWithBot | undefined
|
|
3274
3817
|
readonly application_id?: SnowflakeType | undefined
|
|
3275
3818
|
readonly interaction?: MessageInteractionResponse | undefined
|
|
3276
3819
|
readonly nonce?: number | string | undefined
|
|
@@ -3296,6 +3839,7 @@ export interface MessageResponse {
|
|
|
3296
3839
|
readonly message_snapshots?:
|
|
3297
3840
|
| ReadonlyArray<MessageSnapshotResponse>
|
|
3298
3841
|
| undefined
|
|
3842
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined
|
|
3299
3843
|
readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined
|
|
3300
3844
|
readonly referenced_message?: BasicMessageResponse | null | undefined
|
|
3301
3845
|
}
|
|
@@ -3599,40 +4143,89 @@ export interface MessageAttachmentRequest {
|
|
|
3599
4143
|
readonly duration_secs?: number | null | undefined
|
|
3600
4144
|
readonly waveform?: string | null | undefined
|
|
3601
4145
|
readonly title?: string | null | undefined
|
|
4146
|
+
readonly is_spoiler?: boolean | null | undefined
|
|
3602
4147
|
readonly is_remix?: boolean | null | undefined
|
|
3603
4148
|
}
|
|
3604
4149
|
|
|
3605
4150
|
export interface PollEmoji {
|
|
4151
|
+
/**
|
|
4152
|
+
* The ID of the custom emoji
|
|
4153
|
+
*/
|
|
3606
4154
|
readonly id?: SnowflakeType | null | undefined
|
|
4155
|
+
/**
|
|
4156
|
+
* The name of the emoji, or the unicode emoji character
|
|
4157
|
+
*/
|
|
3607
4158
|
readonly name?: string | null | undefined
|
|
4159
|
+
/**
|
|
4160
|
+
* Whether the emoji is animated
|
|
4161
|
+
*/
|
|
3608
4162
|
readonly animated?: boolean | null | undefined
|
|
3609
4163
|
}
|
|
3610
4164
|
|
|
3611
4165
|
export interface PollMedia {
|
|
4166
|
+
/**
|
|
4167
|
+
* The text of the field
|
|
4168
|
+
*/
|
|
3612
4169
|
readonly text?: string | null | undefined
|
|
4170
|
+
/**
|
|
4171
|
+
* The emoji of the field
|
|
4172
|
+
*/
|
|
3613
4173
|
readonly emoji?: PollEmoji | null | undefined
|
|
3614
4174
|
}
|
|
3615
4175
|
|
|
3616
4176
|
export interface PollEmojiCreateRequest {
|
|
4177
|
+
/**
|
|
4178
|
+
* The ID of the custom emoji
|
|
4179
|
+
*/
|
|
3617
4180
|
readonly id?: SnowflakeType | null | undefined
|
|
4181
|
+
/**
|
|
4182
|
+
* The name of the emoji, or the unicode emoji character
|
|
4183
|
+
*/
|
|
3618
4184
|
readonly name?: string | null | undefined
|
|
4185
|
+
/**
|
|
4186
|
+
* Whether the emoji is animated
|
|
4187
|
+
*/
|
|
3619
4188
|
readonly animated?: boolean | null | undefined
|
|
3620
4189
|
}
|
|
3621
4190
|
|
|
3622
4191
|
export interface PollMediaCreateRequest {
|
|
4192
|
+
/**
|
|
4193
|
+
* The text of the field
|
|
4194
|
+
*/
|
|
3623
4195
|
readonly text?: string | null | undefined
|
|
4196
|
+
/**
|
|
4197
|
+
* The emoji of the field
|
|
4198
|
+
*/
|
|
3624
4199
|
readonly emoji?: PollEmojiCreateRequest | null | undefined
|
|
3625
4200
|
}
|
|
3626
4201
|
|
|
3627
4202
|
export interface PollAnswerCreateRequest {
|
|
4203
|
+
/**
|
|
4204
|
+
* The data of the answer
|
|
4205
|
+
*/
|
|
3628
4206
|
readonly poll_media: PollMediaCreateRequest
|
|
3629
4207
|
}
|
|
3630
4208
|
|
|
3631
4209
|
export interface PollCreateRequest {
|
|
4210
|
+
/**
|
|
4211
|
+
* The question of the poll. Only `text` is supported.
|
|
4212
|
+
*/
|
|
3632
4213
|
readonly question: PollMedia
|
|
4214
|
+
/**
|
|
4215
|
+
* Each of the answers available in the poll, up to 10
|
|
4216
|
+
*/
|
|
3633
4217
|
readonly answers: ReadonlyArray<PollAnswerCreateRequest>
|
|
4218
|
+
/**
|
|
4219
|
+
* Whether a user can select multiple answers
|
|
4220
|
+
*/
|
|
3634
4221
|
readonly allow_multiselect?: boolean | null | undefined
|
|
4222
|
+
/**
|
|
4223
|
+
* The layout type of the poll. Defaults to... DEFAULT!
|
|
4224
|
+
*/
|
|
3635
4225
|
readonly layout_type?: PollLayoutTypes | null | undefined
|
|
4226
|
+
/**
|
|
4227
|
+
* Number of hours the poll should be open for, up to 32 days. Defaults to 24
|
|
4228
|
+
*/
|
|
3636
4229
|
readonly duration?: number | null | undefined
|
|
3637
4230
|
}
|
|
3638
4231
|
|
|
@@ -3923,6 +4516,13 @@ export interface ThreadSearchResponse {
|
|
|
3923
4516
|
readonly total_results: number
|
|
3924
4517
|
}
|
|
3925
4518
|
|
|
4519
|
+
export interface SearchIndexNotReadyResponse {
|
|
4520
|
+
readonly message: string
|
|
4521
|
+
readonly code: number
|
|
4522
|
+
readonly documents_indexed: number
|
|
4523
|
+
readonly retry_after: number
|
|
4524
|
+
}
|
|
4525
|
+
|
|
3926
4526
|
export interface TypingIndicatorResponse {}
|
|
3927
4527
|
|
|
3928
4528
|
export interface ListMyPrivateArchivedThreadsParams {
|
|
@@ -4235,8 +4835,6 @@ export interface GuildTemplateChannelTags {
|
|
|
4235
4835
|
readonly moderated: boolean | null
|
|
4236
4836
|
}
|
|
4237
4837
|
|
|
4238
|
-
export interface IconEmojiResponse {}
|
|
4239
|
-
|
|
4240
4838
|
export interface GuildTemplateChannelResponse {
|
|
4241
4839
|
readonly id: number | null
|
|
4242
4840
|
readonly type: 0 | 2 | 4 | 15
|
|
@@ -4257,7 +4855,6 @@ export interface GuildTemplateChannelResponse {
|
|
|
4257
4855
|
readonly default_sort_order: ThreadSortOrder | null
|
|
4258
4856
|
readonly default_forum_layout: ForumLayout | null
|
|
4259
4857
|
readonly default_tag_setting: ThreadSearchTagSetting | null
|
|
4260
|
-
readonly icon_emoji: IconEmojiResponse | null
|
|
4261
4858
|
readonly theme_color: number | null
|
|
4262
4859
|
}
|
|
4263
4860
|
|
|
@@ -4307,7 +4904,6 @@ export interface GuildRoleTagsResponse {
|
|
|
4307
4904
|
export interface GuildRoleResponse {
|
|
4308
4905
|
readonly id: SnowflakeType
|
|
4309
4906
|
readonly name: string
|
|
4310
|
-
readonly description: string | null
|
|
4311
4907
|
readonly permissions: string
|
|
4312
4908
|
readonly position: number
|
|
4313
4909
|
readonly color: number
|
|
@@ -4355,7 +4951,13 @@ export type PremiumGuildTiers =
|
|
|
4355
4951
|
(typeof PremiumGuildTiers)[keyof typeof PremiumGuildTiers]
|
|
4356
4952
|
|
|
4357
4953
|
export interface GuildIncidentsDataResponse {
|
|
4954
|
+
/**
|
|
4955
|
+
* When invites get enabled again
|
|
4956
|
+
*/
|
|
4358
4957
|
readonly invites_disabled_until: string | null
|
|
4958
|
+
/**
|
|
4959
|
+
* When direct messages get enabled again
|
|
4960
|
+
*/
|
|
4359
4961
|
readonly dms_disabled_until: string | null
|
|
4360
4962
|
}
|
|
4361
4963
|
|
|
@@ -4558,6 +5160,18 @@ export const AuditLogActionTypes = {
|
|
|
4558
5160
|
HOME_SETTINGS_UPDATE: 191,
|
|
4559
5161
|
VOICE_CHANNEL_STATUS_CREATE: 192,
|
|
4560
5162
|
VOICE_CHANNEL_STATUS_DELETE: 193,
|
|
5163
|
+
/**
|
|
5164
|
+
* Scheduled event exception was created
|
|
5165
|
+
*/
|
|
5166
|
+
GUILD_SCHEDULED_EVENT_EXCEPTION_CREATE: 200,
|
|
5167
|
+
/**
|
|
5168
|
+
* Scheduled event exception was updated
|
|
5169
|
+
*/
|
|
5170
|
+
GUILD_SCHEDULED_EVENT_EXCEPTION_UPDATE: 201,
|
|
5171
|
+
/**
|
|
5172
|
+
* Scheduled event exception was deleted
|
|
5173
|
+
*/
|
|
5174
|
+
GUILD_SCHEDULED_EVENT_EXCEPTION_DELETE: 202,
|
|
4561
5175
|
GUILD_PROFILE_UPDATE: 211,
|
|
4562
5176
|
} as const
|
|
4563
5177
|
export type AuditLogActionTypes =
|
|
@@ -4623,70 +5237,223 @@ export interface PartialGuildSubscriptionIntegrationResponse {
|
|
|
4623
5237
|
}
|
|
4624
5238
|
|
|
4625
5239
|
export interface EntityMetadataExternalResponse {
|
|
5240
|
+
/**
|
|
5241
|
+
* Location of the external event
|
|
5242
|
+
*/
|
|
4626
5243
|
readonly location: string
|
|
4627
5244
|
}
|
|
4628
5245
|
|
|
4629
5246
|
export interface ExternalScheduledEventResponse {
|
|
5247
|
+
/**
|
|
5248
|
+
* ID of the scheduled event
|
|
5249
|
+
*/
|
|
4630
5250
|
readonly id: SnowflakeType
|
|
5251
|
+
/**
|
|
5252
|
+
* ID of the guild the scheduled event belongs to
|
|
5253
|
+
*/
|
|
4631
5254
|
readonly guild_id: SnowflakeType
|
|
5255
|
+
/**
|
|
5256
|
+
* Name of the scheduled event
|
|
5257
|
+
*/
|
|
4632
5258
|
readonly name: string
|
|
5259
|
+
/**
|
|
5260
|
+
* Description of the scheduled event
|
|
5261
|
+
*/
|
|
4633
5262
|
readonly description: string | null
|
|
5263
|
+
/**
|
|
5264
|
+
* Channel ID in which the scheduled event will be hosted, or null if entity type is EXTERNAL
|
|
5265
|
+
*/
|
|
4634
5266
|
readonly channel_id: SnowflakeType | null
|
|
5267
|
+
/**
|
|
5268
|
+
* ID of the user that created the scheduled event
|
|
5269
|
+
*/
|
|
4635
5270
|
readonly creator_id: SnowflakeType | null
|
|
5271
|
+
/**
|
|
5272
|
+
* User that created the scheduled event
|
|
5273
|
+
*/
|
|
4636
5274
|
readonly creator?: UserResponse | undefined
|
|
5275
|
+
/**
|
|
5276
|
+
* Cover image hash of the scheduled event
|
|
5277
|
+
*/
|
|
4637
5278
|
readonly image: string | null
|
|
5279
|
+
/**
|
|
5280
|
+
* When the scheduled event will start
|
|
5281
|
+
*/
|
|
4638
5282
|
readonly scheduled_start_time: string
|
|
5283
|
+
/**
|
|
5284
|
+
* When the scheduled event will end, or null if no end time
|
|
5285
|
+
*/
|
|
4639
5286
|
readonly scheduled_end_time: string | null
|
|
5287
|
+
/**
|
|
5288
|
+
* Status of the scheduled event
|
|
5289
|
+
*/
|
|
4640
5290
|
readonly status: GuildScheduledEventStatuses
|
|
5291
|
+
/**
|
|
5292
|
+
* Type of hosting entity associated with the scheduled event
|
|
5293
|
+
*/
|
|
4641
5294
|
readonly entity_type: 3
|
|
5295
|
+
/**
|
|
5296
|
+
* ID of the hosting entity associated with the scheduled event
|
|
5297
|
+
*/
|
|
4642
5298
|
readonly entity_id: SnowflakeType | null
|
|
5299
|
+
/**
|
|
5300
|
+
* Recurrence rule for the scheduled event, or null if not recurring
|
|
5301
|
+
*/
|
|
5302
|
+
readonly recurrence_rule: RecurrenceRuleResponse | null
|
|
5303
|
+
/**
|
|
5304
|
+
* Number of users subscribed to the scheduled event
|
|
5305
|
+
*/
|
|
4643
5306
|
readonly user_count?: number | undefined
|
|
5307
|
+
/**
|
|
5308
|
+
* Privacy level of the scheduled event
|
|
5309
|
+
*/
|
|
4644
5310
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
4645
5311
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
|
|
5312
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>
|
|
4646
5313
|
readonly entity_metadata: EntityMetadataExternalResponse
|
|
4647
5314
|
}
|
|
4648
5315
|
|
|
4649
5316
|
export interface EntityMetadataStageInstanceResponse {}
|
|
4650
5317
|
|
|
4651
5318
|
export interface StageScheduledEventResponse {
|
|
5319
|
+
/**
|
|
5320
|
+
* ID of the scheduled event
|
|
5321
|
+
*/
|
|
4652
5322
|
readonly id: SnowflakeType
|
|
5323
|
+
/**
|
|
5324
|
+
* ID of the guild the scheduled event belongs to
|
|
5325
|
+
*/
|
|
4653
5326
|
readonly guild_id: SnowflakeType
|
|
5327
|
+
/**
|
|
5328
|
+
* Name of the scheduled event
|
|
5329
|
+
*/
|
|
4654
5330
|
readonly name: string
|
|
5331
|
+
/**
|
|
5332
|
+
* Description of the scheduled event
|
|
5333
|
+
*/
|
|
4655
5334
|
readonly description: string | null
|
|
5335
|
+
/**
|
|
5336
|
+
* Channel ID in which the scheduled event will be hosted, or null if entity type is EXTERNAL
|
|
5337
|
+
*/
|
|
4656
5338
|
readonly channel_id: SnowflakeType | null
|
|
5339
|
+
/**
|
|
5340
|
+
* ID of the user that created the scheduled event
|
|
5341
|
+
*/
|
|
4657
5342
|
readonly creator_id: SnowflakeType | null
|
|
5343
|
+
/**
|
|
5344
|
+
* User that created the scheduled event
|
|
5345
|
+
*/
|
|
4658
5346
|
readonly creator?: UserResponse | undefined
|
|
5347
|
+
/**
|
|
5348
|
+
* Cover image hash of the scheduled event
|
|
5349
|
+
*/
|
|
4659
5350
|
readonly image: string | null
|
|
5351
|
+
/**
|
|
5352
|
+
* When the scheduled event will start
|
|
5353
|
+
*/
|
|
4660
5354
|
readonly scheduled_start_time: string
|
|
5355
|
+
/**
|
|
5356
|
+
* When the scheduled event will end, or null if no end time
|
|
5357
|
+
*/
|
|
4661
5358
|
readonly scheduled_end_time: string | null
|
|
5359
|
+
/**
|
|
5360
|
+
* Status of the scheduled event
|
|
5361
|
+
*/
|
|
4662
5362
|
readonly status: GuildScheduledEventStatuses
|
|
5363
|
+
/**
|
|
5364
|
+
* Type of hosting entity associated with the scheduled event
|
|
5365
|
+
*/
|
|
4663
5366
|
readonly entity_type: 1
|
|
5367
|
+
/**
|
|
5368
|
+
* ID of the hosting entity associated with the scheduled event
|
|
5369
|
+
*/
|
|
4664
5370
|
readonly entity_id: SnowflakeType | null
|
|
5371
|
+
/**
|
|
5372
|
+
* Recurrence rule for the scheduled event, or null if not recurring
|
|
5373
|
+
*/
|
|
5374
|
+
readonly recurrence_rule: RecurrenceRuleResponse | null
|
|
5375
|
+
/**
|
|
5376
|
+
* Number of users subscribed to the scheduled event
|
|
5377
|
+
*/
|
|
4665
5378
|
readonly user_count?: number | undefined
|
|
5379
|
+
/**
|
|
5380
|
+
* Privacy level of the scheduled event
|
|
5381
|
+
*/
|
|
4666
5382
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
4667
5383
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
|
|
5384
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>
|
|
4668
5385
|
readonly entity_metadata: EntityMetadataStageInstanceResponse | null
|
|
4669
5386
|
}
|
|
4670
5387
|
|
|
4671
5388
|
export interface EntityMetadataVoiceResponse {}
|
|
4672
5389
|
|
|
4673
5390
|
export interface VoiceScheduledEventResponse {
|
|
5391
|
+
/**
|
|
5392
|
+
* ID of the scheduled event
|
|
5393
|
+
*/
|
|
4674
5394
|
readonly id: SnowflakeType
|
|
5395
|
+
/**
|
|
5396
|
+
* ID of the guild the scheduled event belongs to
|
|
5397
|
+
*/
|
|
4675
5398
|
readonly guild_id: SnowflakeType
|
|
5399
|
+
/**
|
|
5400
|
+
* Name of the scheduled event
|
|
5401
|
+
*/
|
|
4676
5402
|
readonly name: string
|
|
5403
|
+
/**
|
|
5404
|
+
* Description of the scheduled event
|
|
5405
|
+
*/
|
|
4677
5406
|
readonly description: string | null
|
|
5407
|
+
/**
|
|
5408
|
+
* Channel ID in which the scheduled event will be hosted, or null if entity type is EXTERNAL
|
|
5409
|
+
*/
|
|
4678
5410
|
readonly channel_id: SnowflakeType | null
|
|
5411
|
+
/**
|
|
5412
|
+
* ID of the user that created the scheduled event
|
|
5413
|
+
*/
|
|
4679
5414
|
readonly creator_id: SnowflakeType | null
|
|
5415
|
+
/**
|
|
5416
|
+
* User that created the scheduled event
|
|
5417
|
+
*/
|
|
4680
5418
|
readonly creator?: UserResponse | undefined
|
|
5419
|
+
/**
|
|
5420
|
+
* Cover image hash of the scheduled event
|
|
5421
|
+
*/
|
|
4681
5422
|
readonly image: string | null
|
|
5423
|
+
/**
|
|
5424
|
+
* When the scheduled event will start
|
|
5425
|
+
*/
|
|
4682
5426
|
readonly scheduled_start_time: string
|
|
5427
|
+
/**
|
|
5428
|
+
* When the scheduled event will end, or null if no end time
|
|
5429
|
+
*/
|
|
4683
5430
|
readonly scheduled_end_time: string | null
|
|
5431
|
+
/**
|
|
5432
|
+
* Status of the scheduled event
|
|
5433
|
+
*/
|
|
4684
5434
|
readonly status: GuildScheduledEventStatuses
|
|
5435
|
+
/**
|
|
5436
|
+
* Type of hosting entity associated with the scheduled event
|
|
5437
|
+
*/
|
|
4685
5438
|
readonly entity_type: 2
|
|
5439
|
+
/**
|
|
5440
|
+
* ID of the hosting entity associated with the scheduled event
|
|
5441
|
+
*/
|
|
4686
5442
|
readonly entity_id: SnowflakeType | null
|
|
5443
|
+
/**
|
|
5444
|
+
* Recurrence rule for the scheduled event, or null if not recurring
|
|
5445
|
+
*/
|
|
5446
|
+
readonly recurrence_rule: RecurrenceRuleResponse | null
|
|
5447
|
+
/**
|
|
5448
|
+
* Number of users subscribed to the scheduled event
|
|
5449
|
+
*/
|
|
4687
5450
|
readonly user_count?: number | undefined
|
|
5451
|
+
/**
|
|
5452
|
+
* Privacy level of the scheduled event
|
|
5453
|
+
*/
|
|
4688
5454
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
4689
5455
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
|
|
5456
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>
|
|
4690
5457
|
readonly entity_metadata: EntityMetadataVoiceResponse | null
|
|
4691
5458
|
}
|
|
4692
5459
|
|
|
@@ -4763,10 +5530,6 @@ export const AutomodTriggerType = {
|
|
|
4763
5530
|
* Check if content contains words from a list of keywords or matches regex
|
|
4764
5531
|
*/
|
|
4765
5532
|
KEYWORD: 1,
|
|
4766
|
-
/**
|
|
4767
|
-
* DEPRECATED
|
|
4768
|
-
*/
|
|
4769
|
-
SPAM_LINK: 2,
|
|
4770
5533
|
/**
|
|
4771
5534
|
* Check if content represents generic spam
|
|
4772
5535
|
*/
|
|
@@ -4779,6 +5542,10 @@ export const AutomodTriggerType = {
|
|
|
4779
5542
|
* Check if content contains more unique mentions than allowed
|
|
4780
5543
|
*/
|
|
4781
5544
|
MENTION_SPAM: 5,
|
|
5545
|
+
/**
|
|
5546
|
+
* Check if user profile fields contains words from a list of keywords or matches regex
|
|
5547
|
+
*/
|
|
5548
|
+
USER_PROFILE: 6,
|
|
4782
5549
|
} as const
|
|
4783
5550
|
export type AutomodTriggerType =
|
|
4784
5551
|
(typeof AutomodTriggerType)[keyof typeof AutomodTriggerType]
|
|
@@ -4894,9 +5661,13 @@ export interface MentionSpamRuleResponse {
|
|
|
4894
5661
|
readonly trigger_metadata: MentionSpamTriggerMetadataResponse
|
|
4895
5662
|
}
|
|
4896
5663
|
|
|
4897
|
-
export interface
|
|
5664
|
+
export interface UserProfileMetadataResponse {
|
|
5665
|
+
readonly keyword_filter: ReadonlyArray<string>
|
|
5666
|
+
readonly regex_patterns: ReadonlyArray<string>
|
|
5667
|
+
readonly allow_list: ReadonlyArray<string>
|
|
5668
|
+
}
|
|
4898
5669
|
|
|
4899
|
-
export interface
|
|
5670
|
+
export interface UserProfileRuleResponse {
|
|
4900
5671
|
readonly id: SnowflakeType
|
|
4901
5672
|
readonly guild_id: SnowflakeType
|
|
4902
5673
|
readonly creator_id: SnowflakeType
|
|
@@ -4908,11 +5679,11 @@ export interface SpamLinkRuleResponse {
|
|
|
4908
5679
|
| QuarantineUserActionResponse
|
|
4909
5680
|
| UserCommunicationDisabledActionResponse
|
|
4910
5681
|
>
|
|
4911
|
-
readonly trigger_type:
|
|
5682
|
+
readonly trigger_type: 6
|
|
4912
5683
|
readonly enabled: boolean
|
|
4913
5684
|
readonly exempt_roles: ReadonlyArray<SnowflakeType>
|
|
4914
5685
|
readonly exempt_channels: ReadonlyArray<SnowflakeType>
|
|
4915
|
-
readonly trigger_metadata:
|
|
5686
|
+
readonly trigger_metadata: UserProfileMetadataResponse
|
|
4916
5687
|
}
|
|
4917
5688
|
|
|
4918
5689
|
export interface GuildAuditLogResponse {
|
|
@@ -4940,7 +5711,7 @@ export interface GuildAuditLogResponse {
|
|
|
4940
5711
|
| KeywordRuleResponse
|
|
4941
5712
|
| MLSpamRuleResponse
|
|
4942
5713
|
| MentionSpamRuleResponse
|
|
4943
|
-
|
|
|
5714
|
+
| UserProfileRuleResponse
|
|
4944
5715
|
| null
|
|
4945
5716
|
>
|
|
4946
5717
|
}
|
|
@@ -4950,7 +5721,7 @@ export type ListAutoModerationRules200 = ReadonlyArray<
|
|
|
4950
5721
|
| KeywordRuleResponse
|
|
4951
5722
|
| MLSpamRuleResponse
|
|
4952
5723
|
| MentionSpamRuleResponse
|
|
4953
|
-
|
|
|
5724
|
+
| UserProfileRuleResponse
|
|
4954
5725
|
| null
|
|
4955
5726
|
>
|
|
4956
5727
|
|
|
@@ -5082,25 +5853,51 @@ export interface MentionSpamUpsertRequest {
|
|
|
5082
5853
|
readonly trigger_metadata?: MentionSpamTriggerMetadata | null | undefined
|
|
5083
5854
|
}
|
|
5084
5855
|
|
|
5856
|
+
export interface UserProfileMetadata {
|
|
5857
|
+
readonly keyword_filter?: ReadonlyArray<string> | null | undefined
|
|
5858
|
+
readonly regex_patterns?: ReadonlyArray<string> | null | undefined
|
|
5859
|
+
readonly allow_list?: ReadonlyArray<string> | null | undefined
|
|
5860
|
+
}
|
|
5861
|
+
|
|
5862
|
+
export interface UserProfileUpsertRequest {
|
|
5863
|
+
readonly name: string
|
|
5864
|
+
readonly event_type: AutomodEventType
|
|
5865
|
+
readonly actions?:
|
|
5866
|
+
| ReadonlyArray<
|
|
5867
|
+
| BlockMessageAction
|
|
5868
|
+
| FlagToChannelAction
|
|
5869
|
+
| QuarantineUserAction
|
|
5870
|
+
| UserCommunicationDisabledAction
|
|
5871
|
+
>
|
|
5872
|
+
| null
|
|
5873
|
+
| undefined
|
|
5874
|
+
readonly enabled?: boolean | null | undefined
|
|
5875
|
+
readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined
|
|
5876
|
+
readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined
|
|
5877
|
+
readonly trigger_type: 6
|
|
5878
|
+
readonly trigger_metadata: UserProfileMetadata
|
|
5879
|
+
}
|
|
5880
|
+
|
|
5085
5881
|
export type CreateAutoModerationRuleRequest =
|
|
5086
5882
|
| DefaultKeywordListUpsertRequest
|
|
5087
5883
|
| KeywordUpsertRequest
|
|
5088
5884
|
| MLSpamUpsertRequest
|
|
5089
5885
|
| MentionSpamUpsertRequest
|
|
5886
|
+
| UserProfileUpsertRequest
|
|
5090
5887
|
|
|
5091
5888
|
export type CreateAutoModerationRule200 =
|
|
5092
5889
|
| DefaultKeywordRuleResponse
|
|
5093
5890
|
| KeywordRuleResponse
|
|
5094
5891
|
| MLSpamRuleResponse
|
|
5095
5892
|
| MentionSpamRuleResponse
|
|
5096
|
-
|
|
|
5893
|
+
| UserProfileRuleResponse
|
|
5097
5894
|
|
|
5098
5895
|
export type GetAutoModerationRule200 =
|
|
5099
5896
|
| DefaultKeywordRuleResponse
|
|
5100
5897
|
| KeywordRuleResponse
|
|
5101
5898
|
| MLSpamRuleResponse
|
|
5102
5899
|
| MentionSpamRuleResponse
|
|
5103
|
-
|
|
|
5900
|
+
| UserProfileRuleResponse
|
|
5104
5901
|
|
|
5105
5902
|
export interface DefaultKeywordListUpsertRequestPartial {
|
|
5106
5903
|
readonly name?: string | undefined
|
|
@@ -5178,18 +5975,38 @@ export interface MentionSpamUpsertRequestPartial {
|
|
|
5178
5975
|
readonly trigger_metadata?: MentionSpamTriggerMetadata | null | undefined
|
|
5179
5976
|
}
|
|
5180
5977
|
|
|
5978
|
+
export interface UserProfileUpsertRequestPartial {
|
|
5979
|
+
readonly name?: string | undefined
|
|
5980
|
+
readonly event_type?: AutomodEventType | undefined
|
|
5981
|
+
readonly actions?:
|
|
5982
|
+
| ReadonlyArray<
|
|
5983
|
+
| BlockMessageAction
|
|
5984
|
+
| FlagToChannelAction
|
|
5985
|
+
| QuarantineUserAction
|
|
5986
|
+
| UserCommunicationDisabledAction
|
|
5987
|
+
>
|
|
5988
|
+
| null
|
|
5989
|
+
| undefined
|
|
5990
|
+
readonly enabled?: boolean | null | undefined
|
|
5991
|
+
readonly exempt_roles?: ReadonlyArray<SnowflakeType> | null | undefined
|
|
5992
|
+
readonly exempt_channels?: ReadonlyArray<SnowflakeType> | null | undefined
|
|
5993
|
+
readonly trigger_type?: 6 | undefined
|
|
5994
|
+
readonly trigger_metadata?: UserProfileMetadata | undefined
|
|
5995
|
+
}
|
|
5996
|
+
|
|
5181
5997
|
export type UpdateAutoModerationRuleRequest =
|
|
5182
5998
|
| DefaultKeywordListUpsertRequestPartial
|
|
5183
5999
|
| KeywordUpsertRequestPartial
|
|
5184
6000
|
| MLSpamUpsertRequestPartial
|
|
5185
6001
|
| MentionSpamUpsertRequestPartial
|
|
6002
|
+
| UserProfileUpsertRequestPartial
|
|
5186
6003
|
|
|
5187
6004
|
export type UpdateAutoModerationRule200 =
|
|
5188
6005
|
| DefaultKeywordRuleResponse
|
|
5189
6006
|
| KeywordRuleResponse
|
|
5190
6007
|
| MLSpamRuleResponse
|
|
5191
6008
|
| MentionSpamRuleResponse
|
|
5192
|
-
|
|
|
6009
|
+
| UserProfileRuleResponse
|
|
5193
6010
|
|
|
5194
6011
|
export interface ListGuildBansParams {
|
|
5195
6012
|
readonly limit?: number | undefined
|
|
@@ -5289,6 +6106,17 @@ export interface UpdateGuildEmojiRequest {
|
|
|
5289
6106
|
readonly roles?: ReadonlyArray<null | SnowflakeType> | null | undefined
|
|
5290
6107
|
}
|
|
5291
6108
|
|
|
6109
|
+
export interface GuildIncidentActionsRequest {
|
|
6110
|
+
/**
|
|
6111
|
+
* When invites will be enabled again
|
|
6112
|
+
*/
|
|
6113
|
+
readonly invites_disabled_until?: string | null | undefined
|
|
6114
|
+
/**
|
|
6115
|
+
* When direct messages will be enabled again
|
|
6116
|
+
*/
|
|
6117
|
+
readonly dms_disabled_until?: string | null | undefined
|
|
6118
|
+
}
|
|
6119
|
+
|
|
5292
6120
|
export interface IntegrationApplicationResponse {
|
|
5293
6121
|
readonly id: SnowflakeType
|
|
5294
6122
|
readonly name: string
|
|
@@ -5401,22 +6229,64 @@ export interface UpdateMyGuildMemberRequest {
|
|
|
5401
6229
|
}
|
|
5402
6230
|
|
|
5403
6231
|
export interface PrivateGuildMemberResponse {
|
|
6232
|
+
/**
|
|
6233
|
+
* the member's guild avatar hash
|
|
6234
|
+
*/
|
|
5404
6235
|
readonly avatar: string | null
|
|
6236
|
+
/**
|
|
6237
|
+
* data for the member's guild avatar decoration
|
|
6238
|
+
*/
|
|
5405
6239
|
readonly avatar_decoration_data?:
|
|
5406
6240
|
| UserAvatarDecorationResponse
|
|
5407
6241
|
| null
|
|
5408
6242
|
| undefined
|
|
5409
|
-
|
|
6243
|
+
/**
|
|
6244
|
+
* the member's guild banner hash
|
|
6245
|
+
*/
|
|
6246
|
+
readonly banner: string | null
|
|
6247
|
+
/**
|
|
6248
|
+
* 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
|
|
6249
|
+
*/
|
|
5410
6250
|
readonly communication_disabled_until: string | null
|
|
6251
|
+
/**
|
|
6252
|
+
* guild member flags represented as a bit set, defaults to 0
|
|
6253
|
+
*/
|
|
5411
6254
|
readonly flags: number
|
|
6255
|
+
/**
|
|
6256
|
+
* when the user joined the guild
|
|
6257
|
+
*/
|
|
5412
6258
|
readonly joined_at: string
|
|
6259
|
+
/**
|
|
6260
|
+
* this user's guild nickname
|
|
6261
|
+
*/
|
|
5413
6262
|
readonly nick: string | null
|
|
6263
|
+
/**
|
|
6264
|
+
* whether the user has not yet passed the guild's Membership Screening requirements
|
|
6265
|
+
*/
|
|
5414
6266
|
readonly pending: boolean
|
|
6267
|
+
/**
|
|
6268
|
+
* when the user started boosting the guild
|
|
6269
|
+
*/
|
|
5415
6270
|
readonly premium_since: string | null
|
|
6271
|
+
/**
|
|
6272
|
+
* array of role object ids
|
|
6273
|
+
*/
|
|
5416
6274
|
readonly roles: ReadonlyArray<SnowflakeType>
|
|
6275
|
+
/**
|
|
6276
|
+
* data for the member's collectibles
|
|
6277
|
+
*/
|
|
5417
6278
|
readonly collectibles?: UserCollectiblesResponse | null | undefined
|
|
6279
|
+
/**
|
|
6280
|
+
* the user this guild member represents
|
|
6281
|
+
*/
|
|
5418
6282
|
readonly user: UserResponse
|
|
6283
|
+
/**
|
|
6284
|
+
* whether the user is muted in voice channels
|
|
6285
|
+
*/
|
|
5419
6286
|
readonly mute: boolean
|
|
6287
|
+
/**
|
|
6288
|
+
* whether the user is deafened in voice channels
|
|
6289
|
+
*/
|
|
5420
6290
|
readonly deaf: boolean
|
|
5421
6291
|
readonly permissions?: string | undefined
|
|
5422
6292
|
}
|
|
@@ -5553,7 +6423,7 @@ export interface SearchMessageResponse {
|
|
|
5553
6423
|
readonly tts: boolean
|
|
5554
6424
|
readonly call?: MessageCallResponse | undefined
|
|
5555
6425
|
readonly activity?: MessageActivityResponse | undefined
|
|
5556
|
-
readonly application?:
|
|
6426
|
+
readonly application?: BasicApplicationResponseWithBot | undefined
|
|
5557
6427
|
readonly application_id?: SnowflakeType | undefined
|
|
5558
6428
|
readonly interaction?: MessageInteractionResponse | undefined
|
|
5559
6429
|
readonly nonce?: number | string | undefined
|
|
@@ -5579,9 +6449,11 @@ export interface SearchMessageResponse {
|
|
|
5579
6449
|
readonly message_snapshots?:
|
|
5580
6450
|
| ReadonlyArray<MessageSnapshotResponse>
|
|
5581
6451
|
| undefined
|
|
6452
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined
|
|
5582
6453
|
readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined
|
|
5583
6454
|
readonly referenced_message?: BasicMessageResponse | null | undefined
|
|
5584
6455
|
readonly hit: boolean
|
|
6456
|
+
readonly restriction_count?: number | undefined
|
|
5585
6457
|
}
|
|
5586
6458
|
|
|
5587
6459
|
export interface GuildSearchResponse {
|
|
@@ -5593,13 +6465,6 @@ export interface GuildSearchResponse {
|
|
|
5593
6465
|
readonly documents_indexed?: number | null | undefined
|
|
5594
6466
|
}
|
|
5595
6467
|
|
|
5596
|
-
export interface SearchIndexNotReadyResponse {
|
|
5597
|
-
readonly message: string
|
|
5598
|
-
readonly code: number
|
|
5599
|
-
readonly documents_indexed: number
|
|
5600
|
-
readonly retry_after: number
|
|
5601
|
-
}
|
|
5602
|
-
|
|
5603
6468
|
export interface WelcomeMessageResponse {
|
|
5604
6469
|
readonly author_ids: ReadonlyArray<SnowflakeType>
|
|
5605
6470
|
readonly message: string
|
|
@@ -5782,6 +6647,208 @@ export interface VoiceRegionResponse {
|
|
|
5782
6647
|
|
|
5783
6648
|
export type ListGuildVoiceRegions200 = ReadonlyArray<VoiceRegionResponse>
|
|
5784
6649
|
|
|
6650
|
+
export const GuildJoinRequestApplicationStatus = {
|
|
6651
|
+
/**
|
|
6652
|
+
* Applicant started but not yet submitted join request
|
|
6653
|
+
*/
|
|
6654
|
+
STARTED: "STARTED",
|
|
6655
|
+
/**
|
|
6656
|
+
* Applicant submitted join request that is awaiting review
|
|
6657
|
+
*/
|
|
6658
|
+
SUBMITTED: "SUBMITTED",
|
|
6659
|
+
/**
|
|
6660
|
+
* Join request rejected
|
|
6661
|
+
*/
|
|
6662
|
+
REJECTED: "REJECTED",
|
|
6663
|
+
/**
|
|
6664
|
+
* Join request approved
|
|
6665
|
+
*/
|
|
6666
|
+
APPROVED: "APPROVED",
|
|
6667
|
+
} as const
|
|
6668
|
+
export type GuildJoinRequestApplicationStatus =
|
|
6669
|
+
(typeof GuildJoinRequestApplicationStatus)[keyof typeof GuildJoinRequestApplicationStatus]
|
|
6670
|
+
|
|
6671
|
+
export interface GetGuildJoinRequestsParams {
|
|
6672
|
+
readonly status?: undefined
|
|
6673
|
+
readonly limit?: number | undefined
|
|
6674
|
+
readonly before?: SnowflakeType | undefined
|
|
6675
|
+
readonly after?: SnowflakeType | undefined
|
|
6676
|
+
}
|
|
6677
|
+
|
|
6678
|
+
export const GuildMemberVerificationFormFieldType = {
|
|
6679
|
+
/**
|
|
6680
|
+
* Field requiring applicant to acknowledge list of terms
|
|
6681
|
+
*/
|
|
6682
|
+
TERMS: "TERMS",
|
|
6683
|
+
/**
|
|
6684
|
+
* Short text input field
|
|
6685
|
+
*/
|
|
6686
|
+
TEXT_INPUT: "TEXT_INPUT",
|
|
6687
|
+
/**
|
|
6688
|
+
* Long-form text input field
|
|
6689
|
+
*/
|
|
6690
|
+
PARAGRAPH: "PARAGRAPH",
|
|
6691
|
+
/**
|
|
6692
|
+
* Field where applicant selects one of many options
|
|
6693
|
+
*/
|
|
6694
|
+
MULTIPLE_CHOICE: "MULTIPLE_CHOICE",
|
|
6695
|
+
} as const
|
|
6696
|
+
export type GuildMemberVerificationFormFieldType =
|
|
6697
|
+
(typeof GuildMemberVerificationFormFieldType)[keyof typeof GuildMemberVerificationFormFieldType]
|
|
6698
|
+
|
|
6699
|
+
export interface MultipleChoiceFormFieldResponse {
|
|
6700
|
+
/**
|
|
6701
|
+
* Type of form field
|
|
6702
|
+
*/
|
|
6703
|
+
readonly field_type: "MULTIPLE_CHOICE"
|
|
6704
|
+
/**
|
|
6705
|
+
* Label shown above field
|
|
6706
|
+
*/
|
|
6707
|
+
readonly label?: string | undefined
|
|
6708
|
+
/**
|
|
6709
|
+
* Optional helper text shown below label
|
|
6710
|
+
*/
|
|
6711
|
+
readonly description?: string | undefined
|
|
6712
|
+
/**
|
|
6713
|
+
* Whether applicant must fill in field
|
|
6714
|
+
*/
|
|
6715
|
+
readonly required?: boolean | undefined
|
|
6716
|
+
/**
|
|
6717
|
+
* Choices applicant can select from
|
|
6718
|
+
*/
|
|
6719
|
+
readonly choices: ReadonlyArray<string>
|
|
6720
|
+
/**
|
|
6721
|
+
* Index of choice selected by applicant
|
|
6722
|
+
*/
|
|
6723
|
+
readonly response?: number | undefined
|
|
6724
|
+
}
|
|
6725
|
+
|
|
6726
|
+
export interface ParagraphFormFieldResponse {
|
|
6727
|
+
/**
|
|
6728
|
+
* Type of form field
|
|
6729
|
+
*/
|
|
6730
|
+
readonly field_type: "PARAGRAPH"
|
|
6731
|
+
/**
|
|
6732
|
+
* Label shown above field
|
|
6733
|
+
*/
|
|
6734
|
+
readonly label?: string | undefined
|
|
6735
|
+
/**
|
|
6736
|
+
* Optional helper text shown below label
|
|
6737
|
+
*/
|
|
6738
|
+
readonly description?: string | undefined
|
|
6739
|
+
/**
|
|
6740
|
+
* Whether applicant must fill in field
|
|
6741
|
+
*/
|
|
6742
|
+
readonly required?: boolean | undefined
|
|
6743
|
+
/**
|
|
6744
|
+
* Placeholder text shown in empty input
|
|
6745
|
+
*/
|
|
6746
|
+
readonly placeholder?: string | undefined
|
|
6747
|
+
/**
|
|
6748
|
+
* Applicant's text response
|
|
6749
|
+
*/
|
|
6750
|
+
readonly response?: string | undefined
|
|
6751
|
+
}
|
|
6752
|
+
|
|
6753
|
+
export interface TermsFormFieldResponse {
|
|
6754
|
+
/**
|
|
6755
|
+
* Type of form field
|
|
6756
|
+
*/
|
|
6757
|
+
readonly field_type: "TERMS"
|
|
6758
|
+
/**
|
|
6759
|
+
* Label shown above field
|
|
6760
|
+
*/
|
|
6761
|
+
readonly label?: string | undefined
|
|
6762
|
+
/**
|
|
6763
|
+
* Optional helper text shown below label
|
|
6764
|
+
*/
|
|
6765
|
+
readonly description?: string | undefined
|
|
6766
|
+
/**
|
|
6767
|
+
* Whether applicant must fill in field
|
|
6768
|
+
*/
|
|
6769
|
+
readonly required?: boolean | undefined
|
|
6770
|
+
/**
|
|
6771
|
+
* Terms applicant must acknowledge
|
|
6772
|
+
*/
|
|
6773
|
+
readonly values: ReadonlyArray<string>
|
|
6774
|
+
/**
|
|
6775
|
+
* Whether applicant accepted terms
|
|
6776
|
+
*/
|
|
6777
|
+
readonly response?: boolean | undefined
|
|
6778
|
+
}
|
|
6779
|
+
|
|
6780
|
+
export interface TextInputFormFieldResponse {
|
|
6781
|
+
/**
|
|
6782
|
+
* Type of form field
|
|
6783
|
+
*/
|
|
6784
|
+
readonly field_type: "TEXT_INPUT"
|
|
6785
|
+
/**
|
|
6786
|
+
* Label shown above field
|
|
6787
|
+
*/
|
|
6788
|
+
readonly label?: string | undefined
|
|
6789
|
+
/**
|
|
6790
|
+
* Optional helper text shown below label
|
|
6791
|
+
*/
|
|
6792
|
+
readonly description?: string | undefined
|
|
6793
|
+
/**
|
|
6794
|
+
* Whether applicant must fill in field
|
|
6795
|
+
*/
|
|
6796
|
+
readonly required?: boolean | undefined
|
|
6797
|
+
/**
|
|
6798
|
+
* Placeholder text shown in empty input
|
|
6799
|
+
*/
|
|
6800
|
+
readonly placeholder?: string | undefined
|
|
6801
|
+
/**
|
|
6802
|
+
* Applicant's text response
|
|
6803
|
+
*/
|
|
6804
|
+
readonly response?: string | undefined
|
|
6805
|
+
}
|
|
6806
|
+
|
|
6807
|
+
export interface GuildJoinRequestResponse {
|
|
6808
|
+
readonly id: SnowflakeType
|
|
6809
|
+
readonly created_at: string
|
|
6810
|
+
readonly reviewed_at: string | null
|
|
6811
|
+
readonly application_status: GuildJoinRequestApplicationStatus | null
|
|
6812
|
+
/**
|
|
6813
|
+
* Reason request was rejected. Only set when application_status is REJECTED
|
|
6814
|
+
*/
|
|
6815
|
+
readonly rejection_reason: string | null
|
|
6816
|
+
readonly guild_id: SnowflakeType
|
|
6817
|
+
readonly user_id: SnowflakeType
|
|
6818
|
+
readonly user?: UserResponse | null | undefined
|
|
6819
|
+
/**
|
|
6820
|
+
* Applicant's responses on join request form
|
|
6821
|
+
*/
|
|
6822
|
+
readonly form_responses?:
|
|
6823
|
+
| ReadonlyArray<
|
|
6824
|
+
| MultipleChoiceFormFieldResponse
|
|
6825
|
+
| ParagraphFormFieldResponse
|
|
6826
|
+
| TermsFormFieldResponse
|
|
6827
|
+
| TextInputFormFieldResponse
|
|
6828
|
+
>
|
|
6829
|
+
| null
|
|
6830
|
+
| undefined
|
|
6831
|
+
readonly actioned_by_user?: UserResponse | null | undefined
|
|
6832
|
+
}
|
|
6833
|
+
|
|
6834
|
+
export interface GuildJoinRequestsListResponse {
|
|
6835
|
+
readonly total?: number | undefined
|
|
6836
|
+
readonly guild_join_requests?:
|
|
6837
|
+
| ReadonlyArray<GuildJoinRequestResponse>
|
|
6838
|
+
| undefined
|
|
6839
|
+
}
|
|
6840
|
+
|
|
6841
|
+
export interface ActionGuildJoinRequestRequest {
|
|
6842
|
+
/**
|
|
6843
|
+
* Whether to approve or reject the join request
|
|
6844
|
+
*/
|
|
6845
|
+
readonly action?: undefined
|
|
6846
|
+
/**
|
|
6847
|
+
* Reason for rejection. Only used when action is REJECTED
|
|
6848
|
+
*/
|
|
6849
|
+
readonly rejection_reason?: string | null | undefined
|
|
6850
|
+
}
|
|
6851
|
+
|
|
5785
6852
|
export type ListGuildRoles200 = ReadonlyArray<GuildRoleResponse>
|
|
5786
6853
|
|
|
5787
6854
|
export interface RoleColors {
|
|
@@ -5834,6 +6901,60 @@ export type ListGuildScheduledEvents200 = ReadonlyArray<
|
|
|
5834
6901
|
| VoiceScheduledEventResponse
|
|
5835
6902
|
>
|
|
5836
6903
|
|
|
6904
|
+
export interface ByNWeekday {
|
|
6905
|
+
/**
|
|
6906
|
+
* The week to reoccur on (1-5, where 5 represents the last week)
|
|
6907
|
+
*/
|
|
6908
|
+
readonly n: number
|
|
6909
|
+
/**
|
|
6910
|
+
* The day within the week to reoccur on
|
|
6911
|
+
*/
|
|
6912
|
+
readonly day: RecurrenceRuleWeekdays
|
|
6913
|
+
}
|
|
6914
|
+
|
|
6915
|
+
export interface RecurrenceRule {
|
|
6916
|
+
/**
|
|
6917
|
+
* Starting time of the recurrence interval
|
|
6918
|
+
*/
|
|
6919
|
+
readonly start: string
|
|
6920
|
+
/**
|
|
6921
|
+
* Ending time of the recurrence interval
|
|
6922
|
+
*/
|
|
6923
|
+
readonly end?: string | null | undefined
|
|
6924
|
+
/**
|
|
6925
|
+
* How often the event occurs
|
|
6926
|
+
*/
|
|
6927
|
+
readonly frequency: RecurrenceRuleFrequencies
|
|
6928
|
+
/**
|
|
6929
|
+
* The spacing between events, defined by frequency
|
|
6930
|
+
*/
|
|
6931
|
+
readonly interval?: number | null | undefined
|
|
6932
|
+
/**
|
|
6933
|
+
* Set of specific days within a week for the event to recur on
|
|
6934
|
+
*/
|
|
6935
|
+
readonly by_weekday?: ReadonlyArray<RecurrenceRuleWeekdays> | null | undefined
|
|
6936
|
+
/**
|
|
6937
|
+
* List of specific days within a specific week to recur on
|
|
6938
|
+
*/
|
|
6939
|
+
readonly by_n_weekday?: ReadonlyArray<ByNWeekday> | null | undefined
|
|
6940
|
+
/**
|
|
6941
|
+
* Set of specific months to recur on
|
|
6942
|
+
*/
|
|
6943
|
+
readonly by_month?: ReadonlyArray<RecurrenceRuleMonths> | null | undefined
|
|
6944
|
+
/**
|
|
6945
|
+
* Set of specific dates within a month to recur on
|
|
6946
|
+
*/
|
|
6947
|
+
readonly by_month_day?: ReadonlyArray<number> | null | undefined
|
|
6948
|
+
/**
|
|
6949
|
+
* Set of days within a year to recur on (1-364)
|
|
6950
|
+
*/
|
|
6951
|
+
readonly by_year_day?: ReadonlyArray<number> | null | undefined
|
|
6952
|
+
/**
|
|
6953
|
+
* Total number of times the event is allowed to recur
|
|
6954
|
+
*/
|
|
6955
|
+
readonly count?: number | null | undefined
|
|
6956
|
+
}
|
|
6957
|
+
|
|
5837
6958
|
export interface EntityMetadataExternal {
|
|
5838
6959
|
readonly location: string
|
|
5839
6960
|
}
|
|
@@ -5847,6 +6968,10 @@ export interface ExternalScheduledEventCreateRequest {
|
|
|
5847
6968
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
5848
6969
|
readonly entity_type: 3
|
|
5849
6970
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
6971
|
+
/**
|
|
6972
|
+
* Recurrence rule for the scheduled event
|
|
6973
|
+
*/
|
|
6974
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined
|
|
5850
6975
|
readonly entity_metadata: EntityMetadataExternal
|
|
5851
6976
|
}
|
|
5852
6977
|
|
|
@@ -5861,6 +6986,10 @@ export interface StageScheduledEventCreateRequest {
|
|
|
5861
6986
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
5862
6987
|
readonly entity_type: 1
|
|
5863
6988
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
6989
|
+
/**
|
|
6990
|
+
* Recurrence rule for the scheduled event
|
|
6991
|
+
*/
|
|
6992
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined
|
|
5864
6993
|
readonly entity_metadata?: EntityMetadataStageInstance | null | undefined
|
|
5865
6994
|
}
|
|
5866
6995
|
|
|
@@ -5875,6 +7004,10 @@ export interface VoiceScheduledEventCreateRequest {
|
|
|
5875
7004
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
5876
7005
|
readonly entity_type: 2
|
|
5877
7006
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
7007
|
+
/**
|
|
7008
|
+
* Recurrence rule for the scheduled event
|
|
7009
|
+
*/
|
|
7010
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined
|
|
5878
7011
|
readonly entity_metadata?: EntityMetadataVoice | null | undefined
|
|
5879
7012
|
}
|
|
5880
7013
|
|
|
@@ -5907,6 +7040,10 @@ export interface ExternalScheduledEventPatchRequestPartial {
|
|
|
5907
7040
|
readonly entity_type?: 3 | null | undefined
|
|
5908
7041
|
readonly privacy_level?: GuildScheduledEventPrivacyLevels | undefined
|
|
5909
7042
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
7043
|
+
/**
|
|
7044
|
+
* Recurrence rule for the scheduled event
|
|
7045
|
+
*/
|
|
7046
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined
|
|
5910
7047
|
readonly entity_metadata?: EntityMetadataExternal | undefined
|
|
5911
7048
|
}
|
|
5912
7049
|
|
|
@@ -5920,6 +7057,10 @@ export interface StageScheduledEventPatchRequestPartial {
|
|
|
5920
7057
|
readonly entity_type?: 1 | null | undefined
|
|
5921
7058
|
readonly privacy_level?: GuildScheduledEventPrivacyLevels | undefined
|
|
5922
7059
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
7060
|
+
/**
|
|
7061
|
+
* Recurrence rule for the scheduled event
|
|
7062
|
+
*/
|
|
7063
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined
|
|
5923
7064
|
readonly entity_metadata?: EntityMetadataStageInstance | null | undefined
|
|
5924
7065
|
}
|
|
5925
7066
|
|
|
@@ -5933,6 +7074,10 @@ export interface VoiceScheduledEventPatchRequestPartial {
|
|
|
5933
7074
|
readonly entity_type?: 2 | null | undefined
|
|
5934
7075
|
readonly privacy_level?: GuildScheduledEventPrivacyLevels | undefined
|
|
5935
7076
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
7077
|
+
/**
|
|
7078
|
+
* Recurrence rule for the scheduled event
|
|
7079
|
+
*/
|
|
7080
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined
|
|
5936
7081
|
readonly entity_metadata?: EntityMetadataVoice | null | undefined
|
|
5937
7082
|
}
|
|
5938
7083
|
|
|
@@ -5946,6 +7091,40 @@ export type UpdateGuildScheduledEvent200 =
|
|
|
5946
7091
|
| StageScheduledEventResponse
|
|
5947
7092
|
| VoiceScheduledEventResponse
|
|
5948
7093
|
|
|
7094
|
+
export interface GuildScheduledEventExceptionCreateRequest {
|
|
7095
|
+
/**
|
|
7096
|
+
* Overridden start time of this occurrence
|
|
7097
|
+
*/
|
|
7098
|
+
readonly scheduled_start_time?: string | null | undefined
|
|
7099
|
+
/**
|
|
7100
|
+
* Overridden end time of this occurrence
|
|
7101
|
+
*/
|
|
7102
|
+
readonly scheduled_end_time?: string | null | undefined
|
|
7103
|
+
/**
|
|
7104
|
+
* The original start time of the occurrence to create an exception for
|
|
7105
|
+
*/
|
|
7106
|
+
readonly original_scheduled_start_time: string
|
|
7107
|
+
/**
|
|
7108
|
+
* Whether this occurrence is canceled
|
|
7109
|
+
*/
|
|
7110
|
+
readonly is_canceled?: boolean | null | undefined
|
|
7111
|
+
}
|
|
7112
|
+
|
|
7113
|
+
export interface GuildScheduledEventExceptionPatchRequestPartial {
|
|
7114
|
+
/**
|
|
7115
|
+
* Overridden start time of this occurrence
|
|
7116
|
+
*/
|
|
7117
|
+
readonly scheduled_start_time?: string | null | undefined
|
|
7118
|
+
/**
|
|
7119
|
+
* Overridden end time of this occurrence
|
|
7120
|
+
*/
|
|
7121
|
+
readonly scheduled_end_time?: string | null | undefined
|
|
7122
|
+
/**
|
|
7123
|
+
* Whether this occurrence is canceled
|
|
7124
|
+
*/
|
|
7125
|
+
readonly is_canceled?: boolean | null | undefined
|
|
7126
|
+
}
|
|
7127
|
+
|
|
5949
7128
|
export interface ListGuildScheduledEventUsersParams {
|
|
5950
7129
|
readonly with_member?: boolean | undefined
|
|
5951
7130
|
readonly limit?: number | undefined
|
|
@@ -5956,6 +7135,33 @@ export interface ListGuildScheduledEventUsersParams {
|
|
|
5956
7135
|
export type ListGuildScheduledEventUsers200 =
|
|
5957
7136
|
ReadonlyArray<ScheduledEventUserResponse>
|
|
5958
7137
|
|
|
7138
|
+
export interface CountGuildScheduledEventUsersParams {
|
|
7139
|
+
readonly guild_scheduled_event_exception_ids?:
|
|
7140
|
+
| ReadonlyArray<SnowflakeType>
|
|
7141
|
+
| undefined
|
|
7142
|
+
}
|
|
7143
|
+
|
|
7144
|
+
export interface ScheduledEventUserCountResponse {
|
|
7145
|
+
/**
|
|
7146
|
+
* The number of users subscribed to the scheduled event
|
|
7147
|
+
*/
|
|
7148
|
+
readonly guild_scheduled_event_count: number
|
|
7149
|
+
/**
|
|
7150
|
+
* Map of exception IDs to user counts for each exception
|
|
7151
|
+
*/
|
|
7152
|
+
readonly guild_scheduled_event_exception_counts: Record<string, unknown>
|
|
7153
|
+
}
|
|
7154
|
+
|
|
7155
|
+
export interface ListGuildScheduledEventExceptionUsersParams {
|
|
7156
|
+
readonly with_member?: boolean | undefined
|
|
7157
|
+
readonly limit?: number | undefined
|
|
7158
|
+
readonly before?: SnowflakeType | undefined
|
|
7159
|
+
readonly after?: SnowflakeType | undefined
|
|
7160
|
+
}
|
|
7161
|
+
|
|
7162
|
+
export type ListGuildScheduledEventExceptionUsers200 =
|
|
7163
|
+
ReadonlyArray<ScheduledEventUserResponse>
|
|
7164
|
+
|
|
5959
7165
|
export interface SoundboardSoundResponse {
|
|
5960
7166
|
readonly name: string
|
|
5961
7167
|
readonly sound_id: SnowflakeType
|
|
@@ -6496,6 +7702,7 @@ export type CreateInteractionResponseRequest =
|
|
|
6496
7702
|
export interface InteractionResponse {
|
|
6497
7703
|
readonly id: SnowflakeType
|
|
6498
7704
|
readonly type: InteractionTypes
|
|
7705
|
+
readonly activity_instance_id?: string | null | undefined
|
|
6499
7706
|
readonly response_message_id?: SnowflakeType | undefined
|
|
6500
7707
|
readonly response_message_loading?: boolean | undefined
|
|
6501
7708
|
readonly response_message_ephemeral?: boolean | undefined
|
|
@@ -6508,8 +7715,13 @@ export interface CreateMessageInteractionCallbackResponse {
|
|
|
6508
7715
|
readonly message: MessageResponse
|
|
6509
7716
|
}
|
|
6510
7717
|
|
|
7718
|
+
export interface ActivityInstanceCallbackResponse {
|
|
7719
|
+
readonly id: string
|
|
7720
|
+
}
|
|
7721
|
+
|
|
6511
7722
|
export interface LaunchActivityInteractionCallbackResponse {
|
|
6512
7723
|
readonly type: 12
|
|
7724
|
+
readonly activity_instance: ActivityInstanceCallbackResponse
|
|
6513
7725
|
}
|
|
6514
7726
|
|
|
6515
7727
|
export interface UpdateMessageInteractionCallbackResponse {
|
|
@@ -6529,6 +7741,8 @@ export interface InteractionCallbackResponse {
|
|
|
6529
7741
|
export interface InviteResolveParams {
|
|
6530
7742
|
readonly with_counts?: boolean | undefined
|
|
6531
7743
|
readonly guild_scheduled_event_id?: SnowflakeType | undefined
|
|
7744
|
+
readonly target_channel_id?: SnowflakeType | undefined
|
|
7745
|
+
readonly target_message_id?: SnowflakeType | undefined
|
|
6532
7746
|
}
|
|
6533
7747
|
|
|
6534
7748
|
export type InviteResolve200 =
|
|
@@ -6607,6 +7821,7 @@ export interface LobbyMemberResponse {
|
|
|
6607
7821
|
readonly id: SnowflakeType
|
|
6608
7822
|
readonly metadata: Record<string, unknown> | null
|
|
6609
7823
|
readonly flags: number
|
|
7824
|
+
readonly additional_name?: string | undefined
|
|
6610
7825
|
}
|
|
6611
7826
|
|
|
6612
7827
|
export interface LobbyResponse {
|
|
@@ -6662,6 +7877,7 @@ export interface BulkLobbyMemberRequest {
|
|
|
6662
7877
|
readonly metadata?: Record<string, unknown> | null | undefined
|
|
6663
7878
|
readonly flags?: BulkLobbyMemberRequestFlagsEnum | null | undefined
|
|
6664
7879
|
readonly remove_member?: boolean | null | undefined
|
|
7880
|
+
readonly additional_name?: string | null | undefined
|
|
6665
7881
|
}
|
|
6666
7882
|
|
|
6667
7883
|
export type BulkUpdateLobbyMembersRequest =
|
|
@@ -6674,6 +7890,7 @@ export type AddLobbyMemberRequestFlagsEnum = 1
|
|
|
6674
7890
|
export interface AddLobbyMemberRequest {
|
|
6675
7891
|
readonly metadata?: Record<string, unknown> | null | undefined
|
|
6676
7892
|
readonly flags?: AddLobbyMemberRequestFlagsEnum | null | undefined
|
|
7893
|
+
readonly additional_name?: string | null | undefined
|
|
6677
7894
|
}
|
|
6678
7895
|
|
|
6679
7896
|
export interface GetLobbyMessagesParams {
|
|
@@ -6687,6 +7904,7 @@ export interface LobbyMessageResponse {
|
|
|
6687
7904
|
readonly lobby_id: SnowflakeType
|
|
6688
7905
|
readonly channel_id: SnowflakeType
|
|
6689
7906
|
readonly author: UserResponse
|
|
7907
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined
|
|
6690
7908
|
readonly metadata?: Record<string, unknown> | undefined
|
|
6691
7909
|
readonly moderation_metadata?: Record<string, unknown> | undefined
|
|
6692
7910
|
readonly flags: number
|
|
@@ -6805,20 +8023,94 @@ export interface PartnerSdkTokenRequest {
|
|
|
6805
8023
|
readonly external_auth_type: ApplicationIdentityProviderAuthType
|
|
6806
8024
|
}
|
|
6807
8025
|
|
|
6808
|
-
export interface ProvisionalTokenResponse {
|
|
6809
|
-
readonly token_type: string
|
|
6810
|
-
readonly access_token: string
|
|
6811
|
-
readonly expires_in: number
|
|
6812
|
-
readonly scope: string
|
|
6813
|
-
readonly id_token: string
|
|
6814
|
-
readonly refresh_token?: string | null | undefined
|
|
6815
|
-
readonly scopes?: ReadonlyArray<string> | null | undefined
|
|
6816
|
-
readonly expires_at_s?: number | null | undefined
|
|
6817
|
-
}
|
|
8026
|
+
export interface ProvisionalTokenResponse {
|
|
8027
|
+
readonly token_type: string
|
|
8028
|
+
readonly access_token: string
|
|
8029
|
+
readonly expires_in: number
|
|
8030
|
+
readonly scope: string
|
|
8031
|
+
readonly id_token: string
|
|
8032
|
+
readonly refresh_token?: string | null | undefined
|
|
8033
|
+
readonly scopes?: ReadonlyArray<string> | null | undefined
|
|
8034
|
+
readonly expires_at_s?: number | null | undefined
|
|
8035
|
+
}
|
|
8036
|
+
|
|
8037
|
+
export interface BotPartnerSdkTokenRequest {
|
|
8038
|
+
readonly provisional_user_id?: SnowflakeType | null | undefined
|
|
8039
|
+
readonly external_user_id: string
|
|
8040
|
+
readonly preferred_global_name?: string | null | undefined
|
|
8041
|
+
}
|
|
8042
|
+
|
|
8043
|
+
export interface GetSkuSubscriptionsParams {
|
|
8044
|
+
readonly before?: SnowflakeType | undefined
|
|
8045
|
+
readonly after?: SnowflakeType | undefined
|
|
8046
|
+
readonly limit?: number | undefined
|
|
8047
|
+
readonly user_id?: SnowflakeType | undefined
|
|
8048
|
+
}
|
|
8049
|
+
|
|
8050
|
+
export const SubscriptionResponseStatusType = {
|
|
8051
|
+
/**
|
|
8052
|
+
* Subscription is active and scheduled to renew
|
|
8053
|
+
*/
|
|
8054
|
+
ACTIVE: 0,
|
|
8055
|
+
/**
|
|
8056
|
+
* Subscription is inactive and not being charged
|
|
8057
|
+
*/
|
|
8058
|
+
INACTIVE: 1,
|
|
8059
|
+
/**
|
|
8060
|
+
* Subscription is active but will not renew
|
|
8061
|
+
*/
|
|
8062
|
+
ENDING: 2,
|
|
8063
|
+
} as const
|
|
8064
|
+
export type SubscriptionResponseStatusType =
|
|
8065
|
+
(typeof SubscriptionResponseStatusType)[keyof typeof SubscriptionResponseStatusType]
|
|
8066
|
+
|
|
8067
|
+
export interface SubscriptionResponse {
|
|
8068
|
+
/**
|
|
8069
|
+
* ID of the subscription
|
|
8070
|
+
*/
|
|
8071
|
+
readonly id: SnowflakeType
|
|
8072
|
+
/**
|
|
8073
|
+
* ID of the user who is subscribed
|
|
8074
|
+
*/
|
|
8075
|
+
readonly user_id: SnowflakeType
|
|
8076
|
+
/**
|
|
8077
|
+
* List of SKUs subscribed to
|
|
8078
|
+
*/
|
|
8079
|
+
readonly sku_ids: ReadonlyArray<SnowflakeType>
|
|
8080
|
+
/**
|
|
8081
|
+
* List of SKUs that this user will be subscribed to at renewal
|
|
8082
|
+
*/
|
|
8083
|
+
readonly renewal_sku_ids: ReadonlyArray<SnowflakeType> | null
|
|
8084
|
+
/**
|
|
8085
|
+
* List of entitlements granted for this subscription
|
|
8086
|
+
*/
|
|
8087
|
+
readonly entitlement_ids: ReadonlyArray<SnowflakeType>
|
|
8088
|
+
/**
|
|
8089
|
+
* Start of the current subscription period
|
|
8090
|
+
*/
|
|
8091
|
+
readonly current_period_start: string
|
|
8092
|
+
/**
|
|
8093
|
+
* End of the current subscription period
|
|
8094
|
+
*/
|
|
8095
|
+
readonly current_period_end: string
|
|
8096
|
+
/**
|
|
8097
|
+
* Current status of the subscription
|
|
8098
|
+
*/
|
|
8099
|
+
readonly status: SubscriptionResponseStatusType
|
|
8100
|
+
/**
|
|
8101
|
+
* When the subscription was canceled
|
|
8102
|
+
*/
|
|
8103
|
+
readonly canceled_at: string | null
|
|
8104
|
+
/**
|
|
8105
|
+
* ISO3166-1 alpha-2 country code of the payment source used to purchase the subscription
|
|
8106
|
+
*/
|
|
8107
|
+
readonly country?: string | null | undefined
|
|
8108
|
+
}
|
|
8109
|
+
|
|
8110
|
+
export type GetSkuSubscriptions200 = ReadonlyArray<SubscriptionResponse>
|
|
6818
8111
|
|
|
6819
|
-
export interface
|
|
6820
|
-
readonly
|
|
6821
|
-
readonly preferred_global_name?: string | null | undefined
|
|
8112
|
+
export interface GetSkuSubscriptionParams {
|
|
8113
|
+
readonly user_id?: SnowflakeType | undefined
|
|
6822
8114
|
}
|
|
6823
8115
|
|
|
6824
8116
|
export type GetSoundboardDefaultSounds200 =
|
|
@@ -6830,7 +8122,7 @@ export const StageInstancesPrivacyLevels = {
|
|
|
6830
8122
|
*/
|
|
6831
8123
|
PUBLIC: 1,
|
|
6832
8124
|
/**
|
|
6833
|
-
* The Stage instance is visible
|
|
8125
|
+
* The Stage instance is visible to only guild members.
|
|
6834
8126
|
*/
|
|
6835
8127
|
GUILD_ONLY: 2,
|
|
6836
8128
|
} as const
|
|
@@ -6897,21 +8189,60 @@ export const PremiumTypes = {
|
|
|
6897
8189
|
export type PremiumTypes = (typeof PremiumTypes)[keyof typeof PremiumTypes]
|
|
6898
8190
|
|
|
6899
8191
|
export interface UserPIIResponse {
|
|
8192
|
+
/**
|
|
8193
|
+
* the user's id
|
|
8194
|
+
*/
|
|
6900
8195
|
readonly id: SnowflakeType
|
|
8196
|
+
/**
|
|
8197
|
+
* the user's username, not unique across the platform
|
|
8198
|
+
*/
|
|
6901
8199
|
readonly username: string
|
|
8200
|
+
/**
|
|
8201
|
+
* the user's avatar hash
|
|
8202
|
+
*/
|
|
6902
8203
|
readonly avatar: string | null
|
|
8204
|
+
/**
|
|
8205
|
+
* the user's Discord-tag
|
|
8206
|
+
*/
|
|
6903
8207
|
readonly discriminator: string
|
|
8208
|
+
/**
|
|
8209
|
+
* the public flags on a user's account
|
|
8210
|
+
*/
|
|
6904
8211
|
readonly public_flags: number
|
|
8212
|
+
/**
|
|
8213
|
+
* the flags on a user's account
|
|
8214
|
+
*/
|
|
6905
8215
|
readonly flags: Int53Type
|
|
8216
|
+
/**
|
|
8217
|
+
* whether the user belongs to an OAuth2 application
|
|
8218
|
+
*/
|
|
6906
8219
|
readonly bot?: boolean | undefined
|
|
8220
|
+
/**
|
|
8221
|
+
* whether the user is an Official Discord System user (part of the urgent message system)
|
|
8222
|
+
*/
|
|
6907
8223
|
readonly system?: boolean | undefined
|
|
8224
|
+
/**
|
|
8225
|
+
* the user's banner hash
|
|
8226
|
+
*/
|
|
6908
8227
|
readonly banner?: string | null | undefined
|
|
8228
|
+
/**
|
|
8229
|
+
* the user's banner color encoded as an integer representation of hexadecimal color code
|
|
8230
|
+
*/
|
|
6909
8231
|
readonly accent_color?: number | null | undefined
|
|
8232
|
+
/**
|
|
8233
|
+
* the user's display name, if it is set
|
|
8234
|
+
*/
|
|
6910
8235
|
readonly global_name: string | null
|
|
8236
|
+
/**
|
|
8237
|
+
* data for the user's avatar decoration
|
|
8238
|
+
*/
|
|
6911
8239
|
readonly avatar_decoration_data?:
|
|
6912
8240
|
| UserAvatarDecorationResponse
|
|
6913
8241
|
| null
|
|
6914
8242
|
| undefined
|
|
8243
|
+
/**
|
|
8244
|
+
* data for the user's collectibles
|
|
8245
|
+
*/
|
|
6915
8246
|
readonly collectibles?: UserCollectiblesResponse | null | undefined
|
|
6916
8247
|
readonly primary_guild?: UserPrimaryGuildResponse | null | undefined
|
|
6917
8248
|
readonly mfa_enabled: boolean
|
|
@@ -8063,7 +9394,7 @@ export const make = (
|
|
|
8063
9394
|
limit: options?.["limit"] as any,
|
|
8064
9395
|
offset: options?.["offset"] as any,
|
|
8065
9396
|
}),
|
|
8066
|
-
onRequest(["
|
|
9397
|
+
onRequest(["200", "202"], {
|
|
8067
9398
|
"429": "RatelimitedResponse",
|
|
8068
9399
|
"4xx": "ErrorResponse",
|
|
8069
9400
|
}),
|
|
@@ -8293,6 +9624,14 @@ export const make = (
|
|
|
8293
9624
|
"4xx": "ErrorResponse",
|
|
8294
9625
|
}),
|
|
8295
9626
|
),
|
|
9627
|
+
updateGuildIncidentActions: (guildId, options) =>
|
|
9628
|
+
HttpClientRequest.put(`/guilds/${guildId}/incident-actions`).pipe(
|
|
9629
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
9630
|
+
onRequest(["2xx"], {
|
|
9631
|
+
"429": "RatelimitedResponse",
|
|
9632
|
+
"4xx": "ErrorResponse",
|
|
9633
|
+
}),
|
|
9634
|
+
),
|
|
8296
9635
|
listGuildIntegrations: guildId =>
|
|
8297
9636
|
HttpClientRequest.get(`/guilds/${guildId}/integrations`).pipe(
|
|
8298
9637
|
onRequest(["2xx"], {
|
|
@@ -8470,6 +9809,27 @@ export const make = (
|
|
|
8470
9809
|
"4xx": "ErrorResponse",
|
|
8471
9810
|
}),
|
|
8472
9811
|
),
|
|
9812
|
+
getGuildJoinRequests: (guildId, options) =>
|
|
9813
|
+
HttpClientRequest.get(`/guilds/${guildId}/requests`).pipe(
|
|
9814
|
+
HttpClientRequest.setUrlParams({
|
|
9815
|
+
status: options?.["status"] as any,
|
|
9816
|
+
limit: options?.["limit"] as any,
|
|
9817
|
+
before: options?.["before"] as any,
|
|
9818
|
+
after: options?.["after"] as any,
|
|
9819
|
+
}),
|
|
9820
|
+
onRequest(["2xx"], {
|
|
9821
|
+
"429": "RatelimitedResponse",
|
|
9822
|
+
"4xx": "ErrorResponse",
|
|
9823
|
+
}),
|
|
9824
|
+
),
|
|
9825
|
+
actionGuildJoinRequest: (guildId, requestId, options) =>
|
|
9826
|
+
HttpClientRequest.patch(`/guilds/${guildId}/requests/${requestId}`).pipe(
|
|
9827
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
9828
|
+
onRequest(["2xx"], {
|
|
9829
|
+
"429": "RatelimitedResponse",
|
|
9830
|
+
"4xx": "ErrorResponse",
|
|
9831
|
+
}),
|
|
9832
|
+
),
|
|
8473
9833
|
listGuildRoles: guildId =>
|
|
8474
9834
|
HttpClientRequest.get(`/guilds/${guildId}/roles`).pipe(
|
|
8475
9835
|
onRequest(["2xx"], {
|
|
@@ -8565,6 +9925,45 @@ export const make = (
|
|
|
8565
9925
|
"4xx": "ErrorResponse",
|
|
8566
9926
|
}),
|
|
8567
9927
|
),
|
|
9928
|
+
createGuildScheduledEventException: (
|
|
9929
|
+
guildId,
|
|
9930
|
+
guildScheduledEventId,
|
|
9931
|
+
options,
|
|
9932
|
+
) =>
|
|
9933
|
+
HttpClientRequest.post(
|
|
9934
|
+
`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/exceptions`,
|
|
9935
|
+
).pipe(
|
|
9936
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
9937
|
+
onRequest(["2xx"], {
|
|
9938
|
+
"429": "RatelimitedResponse",
|
|
9939
|
+
"4xx": "ErrorResponse",
|
|
9940
|
+
}),
|
|
9941
|
+
),
|
|
9942
|
+
deleteGuildScheduledEventException: (
|
|
9943
|
+
guildId,
|
|
9944
|
+
guildScheduledEventId,
|
|
9945
|
+
exceptionId,
|
|
9946
|
+
) =>
|
|
9947
|
+
HttpClientRequest.delete(
|
|
9948
|
+
`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/exceptions/${exceptionId}`,
|
|
9949
|
+
).pipe(
|
|
9950
|
+
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
9951
|
+
),
|
|
9952
|
+
updateGuildScheduledEventException: (
|
|
9953
|
+
guildId,
|
|
9954
|
+
guildScheduledEventId,
|
|
9955
|
+
exceptionId,
|
|
9956
|
+
options,
|
|
9957
|
+
) =>
|
|
9958
|
+
HttpClientRequest.patch(
|
|
9959
|
+
`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/exceptions/${exceptionId}`,
|
|
9960
|
+
).pipe(
|
|
9961
|
+
HttpClientRequest.bodyJsonUnsafe(options),
|
|
9962
|
+
onRequest(["2xx"], {
|
|
9963
|
+
"429": "RatelimitedResponse",
|
|
9964
|
+
"4xx": "ErrorResponse",
|
|
9965
|
+
}),
|
|
9966
|
+
),
|
|
8568
9967
|
listGuildScheduledEventUsers: (guildId, guildScheduledEventId, options) =>
|
|
8569
9968
|
HttpClientRequest.get(
|
|
8570
9969
|
`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`,
|
|
@@ -8580,6 +9979,40 @@ export const make = (
|
|
|
8580
9979
|
"4xx": "ErrorResponse",
|
|
8581
9980
|
}),
|
|
8582
9981
|
),
|
|
9982
|
+
countGuildScheduledEventUsers: (guildId, guildScheduledEventId, options) =>
|
|
9983
|
+
HttpClientRequest.get(
|
|
9984
|
+
`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users/counts`,
|
|
9985
|
+
).pipe(
|
|
9986
|
+
HttpClientRequest.setUrlParams({
|
|
9987
|
+
guild_scheduled_event_exception_ids: options?.[
|
|
9988
|
+
"guild_scheduled_event_exception_ids"
|
|
9989
|
+
] as any,
|
|
9990
|
+
}),
|
|
9991
|
+
onRequest(["2xx"], {
|
|
9992
|
+
"429": "RatelimitedResponse",
|
|
9993
|
+
"4xx": "ErrorResponse",
|
|
9994
|
+
}),
|
|
9995
|
+
),
|
|
9996
|
+
listGuildScheduledEventExceptionUsers: (
|
|
9997
|
+
guildId,
|
|
9998
|
+
guildScheduledEventId,
|
|
9999
|
+
guildScheduledEventExceptionId,
|
|
10000
|
+
options,
|
|
10001
|
+
) =>
|
|
10002
|
+
HttpClientRequest.get(
|
|
10003
|
+
`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/${guildScheduledEventExceptionId}/users`,
|
|
10004
|
+
).pipe(
|
|
10005
|
+
HttpClientRequest.setUrlParams({
|
|
10006
|
+
with_member: options?.["with_member"] as any,
|
|
10007
|
+
limit: options?.["limit"] as any,
|
|
10008
|
+
before: options?.["before"] as any,
|
|
10009
|
+
after: options?.["after"] as any,
|
|
10010
|
+
}),
|
|
10011
|
+
onRequest(["2xx"], {
|
|
10012
|
+
"429": "RatelimitedResponse",
|
|
10013
|
+
"4xx": "ErrorResponse",
|
|
10014
|
+
}),
|
|
10015
|
+
),
|
|
8583
10016
|
listGuildSoundboardSounds: guildId =>
|
|
8584
10017
|
HttpClientRequest.get(`/guilds/${guildId}/soundboard-sounds`).pipe(
|
|
8585
10018
|
onRequest(["2xx"], {
|
|
@@ -8798,6 +10231,8 @@ export const make = (
|
|
|
8798
10231
|
guild_scheduled_event_id: options?.[
|
|
8799
10232
|
"guild_scheduled_event_id"
|
|
8800
10233
|
] as any,
|
|
10234
|
+
target_channel_id: options?.["target_channel_id"] as any,
|
|
10235
|
+
target_message_id: options?.["target_message_id"] as any,
|
|
8801
10236
|
}),
|
|
8802
10237
|
onRequest(["2xx"], {
|
|
8803
10238
|
"429": "RatelimitedResponse",
|
|
@@ -8850,6 +10285,10 @@ export const make = (
|
|
|
8850
10285
|
"4xx": "ErrorResponse",
|
|
8851
10286
|
}),
|
|
8852
10287
|
),
|
|
10288
|
+
deleteLobby: lobbyId =>
|
|
10289
|
+
HttpClientRequest.delete(`/lobbies/${lobbyId}`).pipe(
|
|
10290
|
+
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
10291
|
+
),
|
|
8853
10292
|
editLobby: (lobbyId, options) =>
|
|
8854
10293
|
HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(
|
|
8855
10294
|
HttpClientRequest.bodyJsonUnsafe(options),
|
|
@@ -9001,6 +10440,31 @@ export const make = (
|
|
|
9001
10440
|
"4xx": "ErrorResponse",
|
|
9002
10441
|
}),
|
|
9003
10442
|
),
|
|
10443
|
+
getSkuSubscriptions: (skuId, options) =>
|
|
10444
|
+
HttpClientRequest.get(`/skus/${skuId}/subscriptions`).pipe(
|
|
10445
|
+
HttpClientRequest.setUrlParams({
|
|
10446
|
+
before: options?.["before"] as any,
|
|
10447
|
+
after: options?.["after"] as any,
|
|
10448
|
+
limit: options?.["limit"] as any,
|
|
10449
|
+
user_id: options?.["user_id"] as any,
|
|
10450
|
+
}),
|
|
10451
|
+
onRequest(["2xx"], {
|
|
10452
|
+
"429": "RatelimitedResponse",
|
|
10453
|
+
"4xx": "ErrorResponse",
|
|
10454
|
+
}),
|
|
10455
|
+
),
|
|
10456
|
+
getSkuSubscription: (skuId, subscriptionId, options) =>
|
|
10457
|
+
HttpClientRequest.get(
|
|
10458
|
+
`/skus/${skuId}/subscriptions/${subscriptionId}`,
|
|
10459
|
+
).pipe(
|
|
10460
|
+
HttpClientRequest.setUrlParams({
|
|
10461
|
+
user_id: options?.["user_id"] as any,
|
|
10462
|
+
}),
|
|
10463
|
+
onRequest(["2xx"], {
|
|
10464
|
+
"429": "RatelimitedResponse",
|
|
10465
|
+
"4xx": "ErrorResponse",
|
|
10466
|
+
}),
|
|
10467
|
+
),
|
|
9004
10468
|
getSoundboardDefaultSounds: () =>
|
|
9005
10469
|
HttpClientRequest.get(`/soundboard-default-sounds`).pipe(
|
|
9006
10470
|
onRequest(["2xx"], {
|
|
@@ -10005,7 +11469,7 @@ export interface DiscordRest {
|
|
|
10005
11469
|
channelId: string,
|
|
10006
11470
|
options?: ThreadSearchParams | undefined,
|
|
10007
11471
|
) => Effect.Effect<
|
|
10008
|
-
ThreadSearchResponse,
|
|
11472
|
+
ThreadSearchResponse | SearchIndexNotReadyResponse,
|
|
10009
11473
|
| HttpClientError.HttpClientError
|
|
10010
11474
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10011
11475
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
@@ -10266,6 +11730,18 @@ export interface DiscordRest {
|
|
|
10266
11730
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10267
11731
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10268
11732
|
>
|
|
11733
|
+
/**
|
|
11734
|
+
* Modifies the incident actions of the guild
|
|
11735
|
+
*/
|
|
11736
|
+
readonly updateGuildIncidentActions: (
|
|
11737
|
+
guildId: string,
|
|
11738
|
+
options: GuildIncidentActionsRequest,
|
|
11739
|
+
) => Effect.Effect<
|
|
11740
|
+
GuildIncidentsDataResponse,
|
|
11741
|
+
| HttpClientError.HttpClientError
|
|
11742
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
11743
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
11744
|
+
>
|
|
10269
11745
|
readonly listGuildIntegrations: (
|
|
10270
11746
|
guildId: string,
|
|
10271
11747
|
) => Effect.Effect<
|
|
@@ -10444,6 +11920,31 @@ export interface DiscordRest {
|
|
|
10444
11920
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10445
11921
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10446
11922
|
>
|
|
11923
|
+
/**
|
|
11924
|
+
* List join requests for guild, optionally filtered by application status
|
|
11925
|
+
*/
|
|
11926
|
+
readonly getGuildJoinRequests: (
|
|
11927
|
+
guildId: string,
|
|
11928
|
+
options?: GetGuildJoinRequestsParams | undefined,
|
|
11929
|
+
) => Effect.Effect<
|
|
11930
|
+
GuildJoinRequestsListResponse,
|
|
11931
|
+
| HttpClientError.HttpClientError
|
|
11932
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
11933
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
11934
|
+
>
|
|
11935
|
+
/**
|
|
11936
|
+
* Approve or reject guild join request
|
|
11937
|
+
*/
|
|
11938
|
+
readonly actionGuildJoinRequest: (
|
|
11939
|
+
guildId: string,
|
|
11940
|
+
requestId: string,
|
|
11941
|
+
options: ActionGuildJoinRequestRequest,
|
|
11942
|
+
) => Effect.Effect<
|
|
11943
|
+
GuildJoinRequestResponse,
|
|
11944
|
+
| HttpClientError.HttpClientError
|
|
11945
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
11946
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
11947
|
+
>
|
|
10447
11948
|
readonly listGuildRoles: (
|
|
10448
11949
|
guildId: string,
|
|
10449
11950
|
) => Effect.Effect<
|
|
@@ -10553,6 +12054,46 @@ export interface DiscordRest {
|
|
|
10553
12054
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10554
12055
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10555
12056
|
>
|
|
12057
|
+
/**
|
|
12058
|
+
* Create an exception to a recurring guild scheduled event
|
|
12059
|
+
*/
|
|
12060
|
+
readonly createGuildScheduledEventException: (
|
|
12061
|
+
guildId: string,
|
|
12062
|
+
guildScheduledEventId: string,
|
|
12063
|
+
options: GuildScheduledEventExceptionCreateRequest,
|
|
12064
|
+
) => Effect.Effect<
|
|
12065
|
+
GuildScheduledEventExceptionResponse,
|
|
12066
|
+
| HttpClientError.HttpClientError
|
|
12067
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
12068
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
12069
|
+
>
|
|
12070
|
+
/**
|
|
12071
|
+
* Delete an exception to a recurring guild scheduled event
|
|
12072
|
+
*/
|
|
12073
|
+
readonly deleteGuildScheduledEventException: (
|
|
12074
|
+
guildId: string,
|
|
12075
|
+
guildScheduledEventId: string,
|
|
12076
|
+
exceptionId: string,
|
|
12077
|
+
) => Effect.Effect<
|
|
12078
|
+
void,
|
|
12079
|
+
| HttpClientError.HttpClientError
|
|
12080
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
12081
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
12082
|
+
>
|
|
12083
|
+
/**
|
|
12084
|
+
* Modify an exception to a recurring guild scheduled event
|
|
12085
|
+
*/
|
|
12086
|
+
readonly updateGuildScheduledEventException: (
|
|
12087
|
+
guildId: string,
|
|
12088
|
+
guildScheduledEventId: string,
|
|
12089
|
+
exceptionId: string,
|
|
12090
|
+
options: GuildScheduledEventExceptionPatchRequestPartial,
|
|
12091
|
+
) => Effect.Effect<
|
|
12092
|
+
GuildScheduledEventExceptionResponse,
|
|
12093
|
+
| HttpClientError.HttpClientError
|
|
12094
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
12095
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
12096
|
+
>
|
|
10556
12097
|
readonly listGuildScheduledEventUsers: (
|
|
10557
12098
|
guildId: string,
|
|
10558
12099
|
guildScheduledEventId: string,
|
|
@@ -10563,6 +12104,33 @@ export interface DiscordRest {
|
|
|
10563
12104
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10564
12105
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10565
12106
|
>
|
|
12107
|
+
/**
|
|
12108
|
+
* Get the count of users subscribed to a guild scheduled event
|
|
12109
|
+
*/
|
|
12110
|
+
readonly countGuildScheduledEventUsers: (
|
|
12111
|
+
guildId: string,
|
|
12112
|
+
guildScheduledEventId: string,
|
|
12113
|
+
options?: CountGuildScheduledEventUsersParams | undefined,
|
|
12114
|
+
) => Effect.Effect<
|
|
12115
|
+
ScheduledEventUserCountResponse,
|
|
12116
|
+
| HttpClientError.HttpClientError
|
|
12117
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
12118
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
12119
|
+
>
|
|
12120
|
+
/**
|
|
12121
|
+
* Get a list of users subscribed to a guild scheduled event exception
|
|
12122
|
+
*/
|
|
12123
|
+
readonly listGuildScheduledEventExceptionUsers: (
|
|
12124
|
+
guildId: string,
|
|
12125
|
+
guildScheduledEventId: string,
|
|
12126
|
+
guildScheduledEventExceptionId: string,
|
|
12127
|
+
options?: ListGuildScheduledEventExceptionUsersParams | undefined,
|
|
12128
|
+
) => Effect.Effect<
|
|
12129
|
+
ListGuildScheduledEventExceptionUsers200,
|
|
12130
|
+
| HttpClientError.HttpClientError
|
|
12131
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
12132
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
12133
|
+
>
|
|
10566
12134
|
readonly listGuildSoundboardSounds: (
|
|
10567
12135
|
guildId: string,
|
|
10568
12136
|
) => Effect.Effect<
|
|
@@ -10897,6 +12465,17 @@ export interface DiscordRest {
|
|
|
10897
12465
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10898
12466
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10899
12467
|
>
|
|
12468
|
+
/**
|
|
12469
|
+
* Deletes the specified lobby if it exists. It is safe to call even if the lobby is already deleted.
|
|
12470
|
+
*/
|
|
12471
|
+
readonly deleteLobby: (
|
|
12472
|
+
lobbyId: string,
|
|
12473
|
+
) => Effect.Effect<
|
|
12474
|
+
void,
|
|
12475
|
+
| HttpClientError.HttpClientError
|
|
12476
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
12477
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
12478
|
+
>
|
|
10900
12479
|
readonly editLobby: (
|
|
10901
12480
|
lobbyId: string,
|
|
10902
12481
|
options: EditLobbyRequest,
|
|
@@ -11069,6 +12648,31 @@ export interface DiscordRest {
|
|
|
11069
12648
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
11070
12649
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
11071
12650
|
>
|
|
12651
|
+
/**
|
|
12652
|
+
* Returns all subscriptions containing the SKU, filtered by user.
|
|
12653
|
+
*/
|
|
12654
|
+
readonly getSkuSubscriptions: (
|
|
12655
|
+
skuId: string,
|
|
12656
|
+
options?: GetSkuSubscriptionsParams | undefined,
|
|
12657
|
+
) => Effect.Effect<
|
|
12658
|
+
GetSkuSubscriptions200,
|
|
12659
|
+
| HttpClientError.HttpClientError
|
|
12660
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
12661
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
12662
|
+
>
|
|
12663
|
+
/**
|
|
12664
|
+
* Get a subscription by its ID.
|
|
12665
|
+
*/
|
|
12666
|
+
readonly getSkuSubscription: (
|
|
12667
|
+
skuId: string,
|
|
12668
|
+
subscriptionId: string,
|
|
12669
|
+
options?: GetSkuSubscriptionParams | undefined,
|
|
12670
|
+
) => Effect.Effect<
|
|
12671
|
+
SubscriptionResponse,
|
|
12672
|
+
| HttpClientError.HttpClientError
|
|
12673
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
12674
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
12675
|
+
>
|
|
11072
12676
|
readonly getSoundboardDefaultSounds: () => Effect.Effect<
|
|
11073
12677
|
GetSoundboardDefaultSounds200,
|
|
11074
12678
|
| HttpClientError.HttpClientError
|