dfx 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +4 -1
- package/dist/Cache.js.map +1 -1
- package/dist/DiscordGateway/DiscordWS.d.ts.map +1 -1
- package/dist/DiscordGateway/DiscordWS.js +1 -1
- package/dist/DiscordGateway/DiscordWS.js.map +1 -1
- package/dist/DiscordGateway/Sharder.d.ts.map +1 -1
- package/dist/DiscordGateway/Sharder.js +4 -1
- package/dist/DiscordGateway/Sharder.js.map +1 -1
- package/dist/DiscordREST/Generated.d.ts +1071 -30
- package/dist/DiscordREST/Generated.d.ts.map +1 -1
- package/dist/DiscordREST/Generated.js +190 -5
- package/dist/DiscordREST/Generated.js.map +1 -1
- package/dist/Interactions/gateway.d.ts.map +1 -1
- package/dist/Interactions/gateway.js +4 -1
- package/dist/Interactions/gateway.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
- package/src/Cache.ts +4 -3
- package/src/DiscordGateway/DiscordWS.ts +1 -3
- package/src/DiscordGateway/Sharder.ts +5 -2
- package/src/DiscordREST/Generated.ts +1329 -40
- package/src/Interactions/gateway.ts +4 -3
- package/src/version.ts +1 -1
|
@@ -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
|
|
|
@@ -636,6 +762,7 @@ export interface PrivateApplicationResponse {
|
|
|
636
762
|
| undefined
|
|
637
763
|
readonly explicit_content_filter: ApplicationExplicitContentFilterTypes
|
|
638
764
|
readonly team: TeamResponse | null
|
|
765
|
+
readonly eligible_oauth2_scopes: ReadonlyArray<OAuth2Scopes>
|
|
639
766
|
}
|
|
640
767
|
|
|
641
768
|
/**
|
|
@@ -731,6 +858,9 @@ export interface ApplicationFormPartial {
|
|
|
731
858
|
readonly role_connections_verification_url?: string | null | undefined
|
|
732
859
|
readonly integration_types_config?: Record<string, unknown> | null | undefined
|
|
733
860
|
readonly event_webhooks_status?: 1 | 2 | null | undefined
|
|
861
|
+
/**
|
|
862
|
+
* Event webhooks URL for the app to receive webhook events
|
|
863
|
+
*/
|
|
734
864
|
readonly event_webhooks_url?: string | null | undefined
|
|
735
865
|
readonly event_webhooks_types?:
|
|
736
866
|
| ReadonlyArray<
|
|
@@ -1211,6 +1341,19 @@ export interface ApplicationCommandSubcommandGroupOptionResponse {
|
|
|
1211
1341
|
| undefined
|
|
1212
1342
|
}
|
|
1213
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
|
+
|
|
1214
1357
|
export interface ApplicationCommandResponse {
|
|
1215
1358
|
readonly id: SnowflakeType
|
|
1216
1359
|
readonly application_id: SnowflakeType
|
|
@@ -1248,6 +1391,10 @@ export interface ApplicationCommandResponse {
|
|
|
1248
1391
|
>
|
|
1249
1392
|
| undefined
|
|
1250
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
|
|
1251
1398
|
}
|
|
1252
1399
|
|
|
1253
1400
|
export type ListApplicationCommands200 =
|
|
@@ -1443,8 +1590,6 @@ export interface ApplicationCommandSubcommandGroupOption {
|
|
|
1443
1590
|
| undefined
|
|
1444
1591
|
}
|
|
1445
1592
|
|
|
1446
|
-
export type ApplicationCommandHandler = number
|
|
1447
|
-
|
|
1448
1593
|
export interface ApplicationCommandUpdateRequest {
|
|
1449
1594
|
readonly name: string
|
|
1450
1595
|
readonly name_localizations?: Record<string, unknown> | null | undefined
|
|
@@ -1476,6 +1621,9 @@ export interface ApplicationCommandUpdateRequest {
|
|
|
1476
1621
|
| ReadonlyArray<ApplicationIntegrationType>
|
|
1477
1622
|
| null
|
|
1478
1623
|
| undefined
|
|
1624
|
+
/**
|
|
1625
|
+
* Determines whether the interaction is handled by the app's interactions handler or by Discord
|
|
1626
|
+
*/
|
|
1479
1627
|
readonly handler?: ApplicationCommandHandler | null | undefined
|
|
1480
1628
|
readonly type?: ApplicationCommandType | null | undefined
|
|
1481
1629
|
readonly id?: SnowflakeType | null | undefined
|
|
@@ -1518,6 +1666,9 @@ export interface ApplicationCommandCreateRequest {
|
|
|
1518
1666
|
| ReadonlyArray<ApplicationIntegrationType>
|
|
1519
1667
|
| null
|
|
1520
1668
|
| undefined
|
|
1669
|
+
/**
|
|
1670
|
+
* Determines whether the interaction is handled by the app's interactions handler or by Discord
|
|
1671
|
+
*/
|
|
1521
1672
|
readonly handler?: ApplicationCommandHandler | null | undefined
|
|
1522
1673
|
readonly type?: ApplicationCommandType | null | undefined
|
|
1523
1674
|
}
|
|
@@ -1553,6 +1704,9 @@ export interface ApplicationCommandPatchRequestPartial {
|
|
|
1553
1704
|
| ReadonlyArray<ApplicationIntegrationType>
|
|
1554
1705
|
| null
|
|
1555
1706
|
| undefined
|
|
1707
|
+
/**
|
|
1708
|
+
* Determines whether the interaction is handled by the app's interactions handler or by Discord
|
|
1709
|
+
*/
|
|
1556
1710
|
readonly handler?: ApplicationCommandHandler | null | undefined
|
|
1557
1711
|
}
|
|
1558
1712
|
|
|
@@ -1634,11 +1788,31 @@ export interface EntitlementResponse {
|
|
|
1634
1788
|
|
|
1635
1789
|
export type GetEntitlements200 = ReadonlyArray<EntitlementResponse>
|
|
1636
1790
|
|
|
1637
|
-
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]
|
|
1638
1803
|
|
|
1639
1804
|
export interface CreateEntitlementRequestData {
|
|
1805
|
+
/**
|
|
1806
|
+
* ID of the SKU to grant the entitlement to
|
|
1807
|
+
*/
|
|
1640
1808
|
readonly sku_id: SnowflakeType
|
|
1809
|
+
/**
|
|
1810
|
+
* ID of the guild or user to grant the entitlement to
|
|
1811
|
+
*/
|
|
1641
1812
|
readonly owner_id: SnowflakeType
|
|
1813
|
+
/**
|
|
1814
|
+
* 1 for a guild subscription, 2 for a user subscription
|
|
1815
|
+
*/
|
|
1642
1816
|
readonly owner_type: EntitlementOwnerTypes
|
|
1643
1817
|
}
|
|
1644
1818
|
|
|
@@ -1905,8 +2079,6 @@ export interface GuildChannelResponse {
|
|
|
1905
2079
|
readonly default_sort_order?: ThreadSortOrder | null | undefined
|
|
1906
2080
|
readonly default_forum_layout?: ForumLayout | undefined
|
|
1907
2081
|
readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
|
|
1908
|
-
readonly hd_streaming_until?: string | undefined
|
|
1909
|
-
readonly hd_streaming_buyer_id?: SnowflakeType | undefined
|
|
1910
2082
|
}
|
|
1911
2083
|
|
|
1912
2084
|
export interface PrivateChannelResponse {
|
|
@@ -1942,22 +2114,64 @@ export interface ThreadMetadataResponse {
|
|
|
1942
2114
|
}
|
|
1943
2115
|
|
|
1944
2116
|
export interface GuildMemberResponse {
|
|
2117
|
+
/**
|
|
2118
|
+
* the member's guild avatar hash
|
|
2119
|
+
*/
|
|
1945
2120
|
readonly avatar: string | null
|
|
2121
|
+
/**
|
|
2122
|
+
* data for the member's guild avatar decoration
|
|
2123
|
+
*/
|
|
1946
2124
|
readonly avatar_decoration_data?:
|
|
1947
2125
|
| UserAvatarDecorationResponse
|
|
1948
2126
|
| null
|
|
1949
2127
|
| undefined
|
|
2128
|
+
/**
|
|
2129
|
+
* the member's guild banner hash
|
|
2130
|
+
*/
|
|
1950
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
|
+
*/
|
|
1951
2135
|
readonly communication_disabled_until: string | null
|
|
2136
|
+
/**
|
|
2137
|
+
* guild member flags represented as a bit set, defaults to 0
|
|
2138
|
+
*/
|
|
1952
2139
|
readonly flags: number
|
|
2140
|
+
/**
|
|
2141
|
+
* when the user joined the guild
|
|
2142
|
+
*/
|
|
1953
2143
|
readonly joined_at: string
|
|
2144
|
+
/**
|
|
2145
|
+
* this user's guild nickname
|
|
2146
|
+
*/
|
|
1954
2147
|
readonly nick: string | null
|
|
2148
|
+
/**
|
|
2149
|
+
* whether the user has not yet passed the guild's Membership Screening requirements
|
|
2150
|
+
*/
|
|
1955
2151
|
readonly pending: boolean
|
|
2152
|
+
/**
|
|
2153
|
+
* when the user started boosting the guild
|
|
2154
|
+
*/
|
|
1956
2155
|
readonly premium_since: string | null
|
|
2156
|
+
/**
|
|
2157
|
+
* array of role object ids
|
|
2158
|
+
*/
|
|
1957
2159
|
readonly roles: ReadonlyArray<SnowflakeType>
|
|
2160
|
+
/**
|
|
2161
|
+
* data for the member's collectibles
|
|
2162
|
+
*/
|
|
1958
2163
|
readonly collectibles?: UserCollectiblesResponse | null | undefined
|
|
2164
|
+
/**
|
|
2165
|
+
* the user this guild member represents
|
|
2166
|
+
*/
|
|
1959
2167
|
readonly user: UserResponse
|
|
2168
|
+
/**
|
|
2169
|
+
* whether the user is muted in voice channels
|
|
2170
|
+
*/
|
|
1960
2171
|
readonly mute: boolean
|
|
2172
|
+
/**
|
|
2173
|
+
* whether the user is deafened in voice channels
|
|
2174
|
+
*/
|
|
1961
2175
|
readonly deaf: boolean
|
|
1962
2176
|
}
|
|
1963
2177
|
|
|
@@ -2113,7 +2327,9 @@ export const InviteTypes = {
|
|
|
2113
2327
|
export type InviteTypes = (typeof InviteTypes)[keyof typeof InviteTypes]
|
|
2114
2328
|
|
|
2115
2329
|
export interface InviteChannelRecipientResponse {
|
|
2330
|
+
readonly id: SnowflakeType
|
|
2116
2331
|
readonly username: string
|
|
2332
|
+
readonly avatar: string | null
|
|
2117
2333
|
}
|
|
2118
2334
|
|
|
2119
2335
|
export interface InviteChannelResponse {
|
|
@@ -2229,6 +2445,10 @@ export const GuildFeatures = {
|
|
|
2229
2445
|
* guild has disabled activity alerts in the configured safety alerts channel
|
|
2230
2446
|
*/
|
|
2231
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",
|
|
2232
2452
|
/**
|
|
2233
2453
|
* guild is able to set role icons
|
|
2234
2454
|
*/
|
|
@@ -2370,32 +2590,235 @@ export const GuildScheduledEventEntityTypes = {
|
|
|
2370
2590
|
export type GuildScheduledEventEntityTypes =
|
|
2371
2591
|
(typeof GuildScheduledEventEntityTypes)[keyof typeof GuildScheduledEventEntityTypes]
|
|
2372
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
|
+
|
|
2373
2685
|
export type GuildScheduledEventPrivacyLevels = 2
|
|
2374
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
|
+
|
|
2375
2700
|
export interface ScheduledEventUserResponse {
|
|
2701
|
+
/**
|
|
2702
|
+
* ID of the scheduled event
|
|
2703
|
+
*/
|
|
2376
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
|
+
*/
|
|
2377
2712
|
readonly user_id: SnowflakeType
|
|
2713
|
+
/**
|
|
2714
|
+
* User object for the RSVP user
|
|
2715
|
+
*/
|
|
2378
2716
|
readonly user?: UserResponse | undefined
|
|
2717
|
+
/**
|
|
2718
|
+
* Guild member object for the RSVP user
|
|
2719
|
+
*/
|
|
2379
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
|
|
2380
2748
|
}
|
|
2381
2749
|
|
|
2382
2750
|
export interface ScheduledEventResponse {
|
|
2751
|
+
/**
|
|
2752
|
+
* ID of the scheduled event
|
|
2753
|
+
*/
|
|
2383
2754
|
readonly id: SnowflakeType
|
|
2755
|
+
/**
|
|
2756
|
+
* ID of the guild the scheduled event belongs to
|
|
2757
|
+
*/
|
|
2384
2758
|
readonly guild_id: SnowflakeType
|
|
2759
|
+
/**
|
|
2760
|
+
* Name of the scheduled event
|
|
2761
|
+
*/
|
|
2385
2762
|
readonly name: string
|
|
2763
|
+
/**
|
|
2764
|
+
* Description of the scheduled event
|
|
2765
|
+
*/
|
|
2386
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
|
+
*/
|
|
2387
2770
|
readonly channel_id: SnowflakeType | null
|
|
2771
|
+
/**
|
|
2772
|
+
* ID of the user that created the scheduled event
|
|
2773
|
+
*/
|
|
2388
2774
|
readonly creator_id: SnowflakeType | null
|
|
2775
|
+
/**
|
|
2776
|
+
* User that created the scheduled event
|
|
2777
|
+
*/
|
|
2389
2778
|
readonly creator?: UserResponse | undefined
|
|
2779
|
+
/**
|
|
2780
|
+
* Cover image hash of the scheduled event
|
|
2781
|
+
*/
|
|
2390
2782
|
readonly image: string | null
|
|
2783
|
+
/**
|
|
2784
|
+
* When the scheduled event will start
|
|
2785
|
+
*/
|
|
2391
2786
|
readonly scheduled_start_time: string
|
|
2787
|
+
/**
|
|
2788
|
+
* When the scheduled event will end, or null if no end time
|
|
2789
|
+
*/
|
|
2392
2790
|
readonly scheduled_end_time: string | null
|
|
2791
|
+
/**
|
|
2792
|
+
* Status of the scheduled event
|
|
2793
|
+
*/
|
|
2393
2794
|
readonly status: GuildScheduledEventStatuses
|
|
2795
|
+
/**
|
|
2796
|
+
* Type of hosting entity associated with the scheduled event
|
|
2797
|
+
*/
|
|
2394
2798
|
readonly entity_type: GuildScheduledEventEntityTypes
|
|
2799
|
+
/**
|
|
2800
|
+
* ID of the hosting entity associated with the scheduled event
|
|
2801
|
+
*/
|
|
2395
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
|
+
*/
|
|
2396
2810
|
readonly user_count?: number | undefined
|
|
2811
|
+
/**
|
|
2812
|
+
* Privacy level of the scheduled event
|
|
2813
|
+
*/
|
|
2397
2814
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
2398
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
|
|
2399
2822
|
}
|
|
2400
2823
|
|
|
2401
2824
|
export interface GuildRoleColorsResponse {
|
|
@@ -2431,6 +2854,9 @@ export interface GuildInviteResponse {
|
|
|
2431
2854
|
readonly target_user?: UserResponse | undefined
|
|
2432
2855
|
readonly target_application?: InviteApplicationResponse | undefined
|
|
2433
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
|
|
2434
2860
|
readonly uses?: number | undefined
|
|
2435
2861
|
readonly max_uses?: number | undefined
|
|
2436
2862
|
readonly temporary?: boolean | undefined
|
|
@@ -2456,6 +2882,7 @@ export interface CreateGuildInviteRequest {
|
|
|
2456
2882
|
readonly target_user_id?: SnowflakeType | null | undefined
|
|
2457
2883
|
readonly target_application_id?: SnowflakeType | null | undefined
|
|
2458
2884
|
readonly target_type?: 1 | 2 | null | undefined
|
|
2885
|
+
readonly role_ids?: string | ReadonlyArray<SnowflakeType> | null | undefined
|
|
2459
2886
|
}
|
|
2460
2887
|
|
|
2461
2888
|
export type CreateChannelInviteRequest =
|
|
@@ -3013,7 +3440,7 @@ export interface MessageActivityResponse {
|
|
|
3013
3440
|
readonly party_id?: string | undefined
|
|
3014
3441
|
}
|
|
3015
3442
|
|
|
3016
|
-
export interface
|
|
3443
|
+
export interface BasicApplicationResponseWithBot {
|
|
3017
3444
|
readonly id: SnowflakeType
|
|
3018
3445
|
readonly name: string
|
|
3019
3446
|
readonly icon: string | null
|
|
@@ -3110,34 +3537,79 @@ export interface MessageReactionEmojiResponse {
|
|
|
3110
3537
|
}
|
|
3111
3538
|
|
|
3112
3539
|
export interface PollMediaResponse {
|
|
3540
|
+
/**
|
|
3541
|
+
* The text of the field
|
|
3542
|
+
*/
|
|
3113
3543
|
readonly text?: string | undefined
|
|
3544
|
+
/**
|
|
3545
|
+
* The emoji of the field
|
|
3546
|
+
*/
|
|
3114
3547
|
readonly emoji?: MessageReactionEmojiResponse | undefined
|
|
3115
3548
|
}
|
|
3116
3549
|
|
|
3117
3550
|
export interface PollAnswerResponse {
|
|
3551
|
+
/**
|
|
3552
|
+
* The ID of the answer
|
|
3553
|
+
*/
|
|
3118
3554
|
readonly answer_id: number
|
|
3555
|
+
/**
|
|
3556
|
+
* The data of the answer
|
|
3557
|
+
*/
|
|
3119
3558
|
readonly poll_media: PollMediaResponse
|
|
3120
3559
|
}
|
|
3121
3560
|
|
|
3122
|
-
export type PollLayoutTypes =
|
|
3561
|
+
export type PollLayoutTypes = 1
|
|
3123
3562
|
|
|
3124
3563
|
export interface PollResultsEntryResponse {
|
|
3564
|
+
/**
|
|
3565
|
+
* The answer_id
|
|
3566
|
+
*/
|
|
3125
3567
|
readonly id: number
|
|
3568
|
+
/**
|
|
3569
|
+
* The number of votes for this answer
|
|
3570
|
+
*/
|
|
3126
3571
|
readonly count: number
|
|
3572
|
+
/**
|
|
3573
|
+
* Whether the current user voted for this answer
|
|
3574
|
+
*/
|
|
3127
3575
|
readonly me_voted: boolean
|
|
3128
3576
|
}
|
|
3129
3577
|
|
|
3130
3578
|
export interface PollResultsResponse {
|
|
3579
|
+
/**
|
|
3580
|
+
* The counts for each answer
|
|
3581
|
+
*/
|
|
3131
3582
|
readonly answer_counts: ReadonlyArray<PollResultsEntryResponse>
|
|
3583
|
+
/**
|
|
3584
|
+
* Whether the votes have been precisely counted
|
|
3585
|
+
*/
|
|
3132
3586
|
readonly is_finalized: boolean
|
|
3133
3587
|
}
|
|
3134
3588
|
|
|
3135
3589
|
export interface PollResponse {
|
|
3590
|
+
/**
|
|
3591
|
+
* The question of the poll. Only `text` is supported.
|
|
3592
|
+
*/
|
|
3136
3593
|
readonly question: PollMediaResponse
|
|
3137
|
-
|
|
3594
|
+
/**
|
|
3595
|
+
* Each of the answers available in the poll
|
|
3596
|
+
*/
|
|
3597
|
+
readonly answers: ReadonlyArray<PollAnswerResponse>
|
|
3598
|
+
/**
|
|
3599
|
+
* The time when the poll ends
|
|
3600
|
+
*/
|
|
3138
3601
|
readonly expiry: string
|
|
3602
|
+
/**
|
|
3603
|
+
* Whether a user can select multiple answers
|
|
3604
|
+
*/
|
|
3139
3605
|
readonly allow_multiselect: boolean
|
|
3606
|
+
/**
|
|
3607
|
+
* The layout type of the poll
|
|
3608
|
+
*/
|
|
3140
3609
|
readonly layout_type: PollLayoutTypes
|
|
3610
|
+
/**
|
|
3611
|
+
* The results of the poll
|
|
3612
|
+
*/
|
|
3141
3613
|
readonly results: PollResultsResponse
|
|
3142
3614
|
}
|
|
3143
3615
|
|
|
@@ -3232,6 +3704,10 @@ export interface MessageSnapshotResponse {
|
|
|
3232
3704
|
readonly message: MinimalContentMessageResponse
|
|
3233
3705
|
}
|
|
3234
3706
|
|
|
3707
|
+
export interface MessageLobbyMemberResponse {
|
|
3708
|
+
readonly additional_name: string
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3235
3711
|
export interface MessageReactionCountDetailsResponse {
|
|
3236
3712
|
readonly burst: number
|
|
3237
3713
|
readonly normal: number
|
|
@@ -3277,7 +3753,7 @@ export interface BasicMessageResponse {
|
|
|
3277
3753
|
readonly tts: boolean
|
|
3278
3754
|
readonly call?: MessageCallResponse | undefined
|
|
3279
3755
|
readonly activity?: MessageActivityResponse | undefined
|
|
3280
|
-
readonly application?:
|
|
3756
|
+
readonly application?: BasicApplicationResponseWithBot | undefined
|
|
3281
3757
|
readonly application_id?: SnowflakeType | undefined
|
|
3282
3758
|
readonly interaction?: MessageInteractionResponse | undefined
|
|
3283
3759
|
readonly nonce?: number | string | undefined
|
|
@@ -3303,6 +3779,7 @@ export interface BasicMessageResponse {
|
|
|
3303
3779
|
readonly message_snapshots?:
|
|
3304
3780
|
| ReadonlyArray<MessageSnapshotResponse>
|
|
3305
3781
|
| undefined
|
|
3782
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined
|
|
3306
3783
|
}
|
|
3307
3784
|
|
|
3308
3785
|
export interface MessageResponse {
|
|
@@ -3336,7 +3813,7 @@ export interface MessageResponse {
|
|
|
3336
3813
|
readonly tts: boolean
|
|
3337
3814
|
readonly call?: MessageCallResponse | undefined
|
|
3338
3815
|
readonly activity?: MessageActivityResponse | undefined
|
|
3339
|
-
readonly application?:
|
|
3816
|
+
readonly application?: BasicApplicationResponseWithBot | undefined
|
|
3340
3817
|
readonly application_id?: SnowflakeType | undefined
|
|
3341
3818
|
readonly interaction?: MessageInteractionResponse | undefined
|
|
3342
3819
|
readonly nonce?: number | string | undefined
|
|
@@ -3362,6 +3839,7 @@ export interface MessageResponse {
|
|
|
3362
3839
|
readonly message_snapshots?:
|
|
3363
3840
|
| ReadonlyArray<MessageSnapshotResponse>
|
|
3364
3841
|
| undefined
|
|
3842
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined
|
|
3365
3843
|
readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined
|
|
3366
3844
|
readonly referenced_message?: BasicMessageResponse | null | undefined
|
|
3367
3845
|
}
|
|
@@ -3665,40 +4143,89 @@ export interface MessageAttachmentRequest {
|
|
|
3665
4143
|
readonly duration_secs?: number | null | undefined
|
|
3666
4144
|
readonly waveform?: string | null | undefined
|
|
3667
4145
|
readonly title?: string | null | undefined
|
|
4146
|
+
readonly is_spoiler?: boolean | null | undefined
|
|
3668
4147
|
readonly is_remix?: boolean | null | undefined
|
|
3669
4148
|
}
|
|
3670
4149
|
|
|
3671
4150
|
export interface PollEmoji {
|
|
4151
|
+
/**
|
|
4152
|
+
* The ID of the custom emoji
|
|
4153
|
+
*/
|
|
3672
4154
|
readonly id?: SnowflakeType | null | undefined
|
|
4155
|
+
/**
|
|
4156
|
+
* The name of the emoji, or the unicode emoji character
|
|
4157
|
+
*/
|
|
3673
4158
|
readonly name?: string | null | undefined
|
|
4159
|
+
/**
|
|
4160
|
+
* Whether the emoji is animated
|
|
4161
|
+
*/
|
|
3674
4162
|
readonly animated?: boolean | null | undefined
|
|
3675
4163
|
}
|
|
3676
4164
|
|
|
3677
4165
|
export interface PollMedia {
|
|
4166
|
+
/**
|
|
4167
|
+
* The text of the field
|
|
4168
|
+
*/
|
|
3678
4169
|
readonly text?: string | null | undefined
|
|
4170
|
+
/**
|
|
4171
|
+
* The emoji of the field
|
|
4172
|
+
*/
|
|
3679
4173
|
readonly emoji?: PollEmoji | null | undefined
|
|
3680
4174
|
}
|
|
3681
4175
|
|
|
3682
4176
|
export interface PollEmojiCreateRequest {
|
|
4177
|
+
/**
|
|
4178
|
+
* The ID of the custom emoji
|
|
4179
|
+
*/
|
|
3683
4180
|
readonly id?: SnowflakeType | null | undefined
|
|
4181
|
+
/**
|
|
4182
|
+
* The name of the emoji, or the unicode emoji character
|
|
4183
|
+
*/
|
|
3684
4184
|
readonly name?: string | null | undefined
|
|
4185
|
+
/**
|
|
4186
|
+
* Whether the emoji is animated
|
|
4187
|
+
*/
|
|
3685
4188
|
readonly animated?: boolean | null | undefined
|
|
3686
4189
|
}
|
|
3687
4190
|
|
|
3688
4191
|
export interface PollMediaCreateRequest {
|
|
4192
|
+
/**
|
|
4193
|
+
* The text of the field
|
|
4194
|
+
*/
|
|
3689
4195
|
readonly text?: string | null | undefined
|
|
4196
|
+
/**
|
|
4197
|
+
* The emoji of the field
|
|
4198
|
+
*/
|
|
3690
4199
|
readonly emoji?: PollEmojiCreateRequest | null | undefined
|
|
3691
4200
|
}
|
|
3692
4201
|
|
|
3693
4202
|
export interface PollAnswerCreateRequest {
|
|
4203
|
+
/**
|
|
4204
|
+
* The data of the answer
|
|
4205
|
+
*/
|
|
3694
4206
|
readonly poll_media: PollMediaCreateRequest
|
|
3695
4207
|
}
|
|
3696
4208
|
|
|
3697
4209
|
export interface PollCreateRequest {
|
|
4210
|
+
/**
|
|
4211
|
+
* The question of the poll. Only `text` is supported.
|
|
4212
|
+
*/
|
|
3698
4213
|
readonly question: PollMedia
|
|
4214
|
+
/**
|
|
4215
|
+
* Each of the answers available in the poll, up to 10
|
|
4216
|
+
*/
|
|
3699
4217
|
readonly answers: ReadonlyArray<PollAnswerCreateRequest>
|
|
4218
|
+
/**
|
|
4219
|
+
* Whether a user can select multiple answers
|
|
4220
|
+
*/
|
|
3700
4221
|
readonly allow_multiselect?: boolean | null | undefined
|
|
4222
|
+
/**
|
|
4223
|
+
* The layout type of the poll. Defaults to... DEFAULT!
|
|
4224
|
+
*/
|
|
3701
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
|
+
*/
|
|
3702
4229
|
readonly duration?: number | null | undefined
|
|
3703
4230
|
}
|
|
3704
4231
|
|
|
@@ -4308,8 +4835,6 @@ export interface GuildTemplateChannelTags {
|
|
|
4308
4835
|
readonly moderated: boolean | null
|
|
4309
4836
|
}
|
|
4310
4837
|
|
|
4311
|
-
export interface IconEmojiResponse {}
|
|
4312
|
-
|
|
4313
4838
|
export interface GuildTemplateChannelResponse {
|
|
4314
4839
|
readonly id: number | null
|
|
4315
4840
|
readonly type: 0 | 2 | 4 | 15
|
|
@@ -4330,7 +4855,6 @@ export interface GuildTemplateChannelResponse {
|
|
|
4330
4855
|
readonly default_sort_order: ThreadSortOrder | null
|
|
4331
4856
|
readonly default_forum_layout: ForumLayout | null
|
|
4332
4857
|
readonly default_tag_setting: ThreadSearchTagSetting | null
|
|
4333
|
-
readonly icon_emoji: IconEmojiResponse | null
|
|
4334
4858
|
readonly theme_color: number | null
|
|
4335
4859
|
}
|
|
4336
4860
|
|
|
@@ -4380,7 +4904,6 @@ export interface GuildRoleTagsResponse {
|
|
|
4380
4904
|
export interface GuildRoleResponse {
|
|
4381
4905
|
readonly id: SnowflakeType
|
|
4382
4906
|
readonly name: string
|
|
4383
|
-
readonly description: string | null
|
|
4384
4907
|
readonly permissions: string
|
|
4385
4908
|
readonly position: number
|
|
4386
4909
|
readonly color: number
|
|
@@ -4428,7 +4951,13 @@ export type PremiumGuildTiers =
|
|
|
4428
4951
|
(typeof PremiumGuildTiers)[keyof typeof PremiumGuildTiers]
|
|
4429
4952
|
|
|
4430
4953
|
export interface GuildIncidentsDataResponse {
|
|
4954
|
+
/**
|
|
4955
|
+
* When invites get enabled again
|
|
4956
|
+
*/
|
|
4431
4957
|
readonly invites_disabled_until: string | null
|
|
4958
|
+
/**
|
|
4959
|
+
* When direct messages get enabled again
|
|
4960
|
+
*/
|
|
4432
4961
|
readonly dms_disabled_until: string | null
|
|
4433
4962
|
}
|
|
4434
4963
|
|
|
@@ -4631,6 +5160,18 @@ export const AuditLogActionTypes = {
|
|
|
4631
5160
|
HOME_SETTINGS_UPDATE: 191,
|
|
4632
5161
|
VOICE_CHANNEL_STATUS_CREATE: 192,
|
|
4633
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,
|
|
4634
5175
|
GUILD_PROFILE_UPDATE: 211,
|
|
4635
5176
|
} as const
|
|
4636
5177
|
export type AuditLogActionTypes =
|
|
@@ -4696,70 +5237,223 @@ export interface PartialGuildSubscriptionIntegrationResponse {
|
|
|
4696
5237
|
}
|
|
4697
5238
|
|
|
4698
5239
|
export interface EntityMetadataExternalResponse {
|
|
5240
|
+
/**
|
|
5241
|
+
* Location of the external event
|
|
5242
|
+
*/
|
|
4699
5243
|
readonly location: string
|
|
4700
5244
|
}
|
|
4701
5245
|
|
|
4702
5246
|
export interface ExternalScheduledEventResponse {
|
|
5247
|
+
/**
|
|
5248
|
+
* ID of the scheduled event
|
|
5249
|
+
*/
|
|
4703
5250
|
readonly id: SnowflakeType
|
|
5251
|
+
/**
|
|
5252
|
+
* ID of the guild the scheduled event belongs to
|
|
5253
|
+
*/
|
|
4704
5254
|
readonly guild_id: SnowflakeType
|
|
5255
|
+
/**
|
|
5256
|
+
* Name of the scheduled event
|
|
5257
|
+
*/
|
|
4705
5258
|
readonly name: string
|
|
5259
|
+
/**
|
|
5260
|
+
* Description of the scheduled event
|
|
5261
|
+
*/
|
|
4706
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
|
+
*/
|
|
4707
5266
|
readonly channel_id: SnowflakeType | null
|
|
5267
|
+
/**
|
|
5268
|
+
* ID of the user that created the scheduled event
|
|
5269
|
+
*/
|
|
4708
5270
|
readonly creator_id: SnowflakeType | null
|
|
5271
|
+
/**
|
|
5272
|
+
* User that created the scheduled event
|
|
5273
|
+
*/
|
|
4709
5274
|
readonly creator?: UserResponse | undefined
|
|
5275
|
+
/**
|
|
5276
|
+
* Cover image hash of the scheduled event
|
|
5277
|
+
*/
|
|
4710
5278
|
readonly image: string | null
|
|
5279
|
+
/**
|
|
5280
|
+
* When the scheduled event will start
|
|
5281
|
+
*/
|
|
4711
5282
|
readonly scheduled_start_time: string
|
|
5283
|
+
/**
|
|
5284
|
+
* When the scheduled event will end, or null if no end time
|
|
5285
|
+
*/
|
|
4712
5286
|
readonly scheduled_end_time: string | null
|
|
5287
|
+
/**
|
|
5288
|
+
* Status of the scheduled event
|
|
5289
|
+
*/
|
|
4713
5290
|
readonly status: GuildScheduledEventStatuses
|
|
5291
|
+
/**
|
|
5292
|
+
* Type of hosting entity associated with the scheduled event
|
|
5293
|
+
*/
|
|
4714
5294
|
readonly entity_type: 3
|
|
5295
|
+
/**
|
|
5296
|
+
* ID of the hosting entity associated with the scheduled event
|
|
5297
|
+
*/
|
|
4715
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
|
+
*/
|
|
4716
5306
|
readonly user_count?: number | undefined
|
|
5307
|
+
/**
|
|
5308
|
+
* Privacy level of the scheduled event
|
|
5309
|
+
*/
|
|
4717
5310
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
4718
5311
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
|
|
5312
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>
|
|
4719
5313
|
readonly entity_metadata: EntityMetadataExternalResponse
|
|
4720
5314
|
}
|
|
4721
5315
|
|
|
4722
5316
|
export interface EntityMetadataStageInstanceResponse {}
|
|
4723
5317
|
|
|
4724
5318
|
export interface StageScheduledEventResponse {
|
|
5319
|
+
/**
|
|
5320
|
+
* ID of the scheduled event
|
|
5321
|
+
*/
|
|
4725
5322
|
readonly id: SnowflakeType
|
|
5323
|
+
/**
|
|
5324
|
+
* ID of the guild the scheduled event belongs to
|
|
5325
|
+
*/
|
|
4726
5326
|
readonly guild_id: SnowflakeType
|
|
5327
|
+
/**
|
|
5328
|
+
* Name of the scheduled event
|
|
5329
|
+
*/
|
|
4727
5330
|
readonly name: string
|
|
5331
|
+
/**
|
|
5332
|
+
* Description of the scheduled event
|
|
5333
|
+
*/
|
|
4728
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
|
+
*/
|
|
4729
5338
|
readonly channel_id: SnowflakeType | null
|
|
5339
|
+
/**
|
|
5340
|
+
* ID of the user that created the scheduled event
|
|
5341
|
+
*/
|
|
4730
5342
|
readonly creator_id: SnowflakeType | null
|
|
5343
|
+
/**
|
|
5344
|
+
* User that created the scheduled event
|
|
5345
|
+
*/
|
|
4731
5346
|
readonly creator?: UserResponse | undefined
|
|
5347
|
+
/**
|
|
5348
|
+
* Cover image hash of the scheduled event
|
|
5349
|
+
*/
|
|
4732
5350
|
readonly image: string | null
|
|
5351
|
+
/**
|
|
5352
|
+
* When the scheduled event will start
|
|
5353
|
+
*/
|
|
4733
5354
|
readonly scheduled_start_time: string
|
|
5355
|
+
/**
|
|
5356
|
+
* When the scheduled event will end, or null if no end time
|
|
5357
|
+
*/
|
|
4734
5358
|
readonly scheduled_end_time: string | null
|
|
5359
|
+
/**
|
|
5360
|
+
* Status of the scheduled event
|
|
5361
|
+
*/
|
|
4735
5362
|
readonly status: GuildScheduledEventStatuses
|
|
5363
|
+
/**
|
|
5364
|
+
* Type of hosting entity associated with the scheduled event
|
|
5365
|
+
*/
|
|
4736
5366
|
readonly entity_type: 1
|
|
5367
|
+
/**
|
|
5368
|
+
* ID of the hosting entity associated with the scheduled event
|
|
5369
|
+
*/
|
|
4737
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
|
+
*/
|
|
4738
5378
|
readonly user_count?: number | undefined
|
|
5379
|
+
/**
|
|
5380
|
+
* Privacy level of the scheduled event
|
|
5381
|
+
*/
|
|
4739
5382
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
4740
5383
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
|
|
5384
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>
|
|
4741
5385
|
readonly entity_metadata: EntityMetadataStageInstanceResponse | null
|
|
4742
5386
|
}
|
|
4743
5387
|
|
|
4744
5388
|
export interface EntityMetadataVoiceResponse {}
|
|
4745
5389
|
|
|
4746
5390
|
export interface VoiceScheduledEventResponse {
|
|
5391
|
+
/**
|
|
5392
|
+
* ID of the scheduled event
|
|
5393
|
+
*/
|
|
4747
5394
|
readonly id: SnowflakeType
|
|
5395
|
+
/**
|
|
5396
|
+
* ID of the guild the scheduled event belongs to
|
|
5397
|
+
*/
|
|
4748
5398
|
readonly guild_id: SnowflakeType
|
|
5399
|
+
/**
|
|
5400
|
+
* Name of the scheduled event
|
|
5401
|
+
*/
|
|
4749
5402
|
readonly name: string
|
|
5403
|
+
/**
|
|
5404
|
+
* Description of the scheduled event
|
|
5405
|
+
*/
|
|
4750
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
|
+
*/
|
|
4751
5410
|
readonly channel_id: SnowflakeType | null
|
|
5411
|
+
/**
|
|
5412
|
+
* ID of the user that created the scheduled event
|
|
5413
|
+
*/
|
|
4752
5414
|
readonly creator_id: SnowflakeType | null
|
|
5415
|
+
/**
|
|
5416
|
+
* User that created the scheduled event
|
|
5417
|
+
*/
|
|
4753
5418
|
readonly creator?: UserResponse | undefined
|
|
5419
|
+
/**
|
|
5420
|
+
* Cover image hash of the scheduled event
|
|
5421
|
+
*/
|
|
4754
5422
|
readonly image: string | null
|
|
5423
|
+
/**
|
|
5424
|
+
* When the scheduled event will start
|
|
5425
|
+
*/
|
|
4755
5426
|
readonly scheduled_start_time: string
|
|
5427
|
+
/**
|
|
5428
|
+
* When the scheduled event will end, or null if no end time
|
|
5429
|
+
*/
|
|
4756
5430
|
readonly scheduled_end_time: string | null
|
|
5431
|
+
/**
|
|
5432
|
+
* Status of the scheduled event
|
|
5433
|
+
*/
|
|
4757
5434
|
readonly status: GuildScheduledEventStatuses
|
|
5435
|
+
/**
|
|
5436
|
+
* Type of hosting entity associated with the scheduled event
|
|
5437
|
+
*/
|
|
4758
5438
|
readonly entity_type: 2
|
|
5439
|
+
/**
|
|
5440
|
+
* ID of the hosting entity associated with the scheduled event
|
|
5441
|
+
*/
|
|
4759
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
|
+
*/
|
|
4760
5450
|
readonly user_count?: number | undefined
|
|
5451
|
+
/**
|
|
5452
|
+
* Privacy level of the scheduled event
|
|
5453
|
+
*/
|
|
4761
5454
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
4762
5455
|
readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
|
|
5456
|
+
readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>
|
|
4763
5457
|
readonly entity_metadata: EntityMetadataVoiceResponse | null
|
|
4764
5458
|
}
|
|
4765
5459
|
|
|
@@ -4836,10 +5530,6 @@ export const AutomodTriggerType = {
|
|
|
4836
5530
|
* Check if content contains words from a list of keywords or matches regex
|
|
4837
5531
|
*/
|
|
4838
5532
|
KEYWORD: 1,
|
|
4839
|
-
/**
|
|
4840
|
-
* DEPRECATED
|
|
4841
|
-
*/
|
|
4842
|
-
SPAM_LINK: 2,
|
|
4843
5533
|
/**
|
|
4844
5534
|
* Check if content represents generic spam
|
|
4845
5535
|
*/
|
|
@@ -4852,6 +5542,10 @@ export const AutomodTriggerType = {
|
|
|
4852
5542
|
* Check if content contains more unique mentions than allowed
|
|
4853
5543
|
*/
|
|
4854
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,
|
|
4855
5549
|
} as const
|
|
4856
5550
|
export type AutomodTriggerType =
|
|
4857
5551
|
(typeof AutomodTriggerType)[keyof typeof AutomodTriggerType]
|
|
@@ -4967,9 +5661,13 @@ export interface MentionSpamRuleResponse {
|
|
|
4967
5661
|
readonly trigger_metadata: MentionSpamTriggerMetadataResponse
|
|
4968
5662
|
}
|
|
4969
5663
|
|
|
4970
|
-
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
|
+
}
|
|
4971
5669
|
|
|
4972
|
-
export interface
|
|
5670
|
+
export interface UserProfileRuleResponse {
|
|
4973
5671
|
readonly id: SnowflakeType
|
|
4974
5672
|
readonly guild_id: SnowflakeType
|
|
4975
5673
|
readonly creator_id: SnowflakeType
|
|
@@ -4981,11 +5679,11 @@ export interface SpamLinkRuleResponse {
|
|
|
4981
5679
|
| QuarantineUserActionResponse
|
|
4982
5680
|
| UserCommunicationDisabledActionResponse
|
|
4983
5681
|
>
|
|
4984
|
-
readonly trigger_type:
|
|
5682
|
+
readonly trigger_type: 6
|
|
4985
5683
|
readonly enabled: boolean
|
|
4986
5684
|
readonly exempt_roles: ReadonlyArray<SnowflakeType>
|
|
4987
5685
|
readonly exempt_channels: ReadonlyArray<SnowflakeType>
|
|
4988
|
-
readonly trigger_metadata:
|
|
5686
|
+
readonly trigger_metadata: UserProfileMetadataResponse
|
|
4989
5687
|
}
|
|
4990
5688
|
|
|
4991
5689
|
export interface GuildAuditLogResponse {
|
|
@@ -5013,7 +5711,7 @@ export interface GuildAuditLogResponse {
|
|
|
5013
5711
|
| KeywordRuleResponse
|
|
5014
5712
|
| MLSpamRuleResponse
|
|
5015
5713
|
| MentionSpamRuleResponse
|
|
5016
|
-
|
|
|
5714
|
+
| UserProfileRuleResponse
|
|
5017
5715
|
| null
|
|
5018
5716
|
>
|
|
5019
5717
|
}
|
|
@@ -5023,7 +5721,7 @@ export type ListAutoModerationRules200 = ReadonlyArray<
|
|
|
5023
5721
|
| KeywordRuleResponse
|
|
5024
5722
|
| MLSpamRuleResponse
|
|
5025
5723
|
| MentionSpamRuleResponse
|
|
5026
|
-
|
|
|
5724
|
+
| UserProfileRuleResponse
|
|
5027
5725
|
| null
|
|
5028
5726
|
>
|
|
5029
5727
|
|
|
@@ -5155,25 +5853,51 @@ export interface MentionSpamUpsertRequest {
|
|
|
5155
5853
|
readonly trigger_metadata?: MentionSpamTriggerMetadata | null | undefined
|
|
5156
5854
|
}
|
|
5157
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
|
+
|
|
5158
5881
|
export type CreateAutoModerationRuleRequest =
|
|
5159
5882
|
| DefaultKeywordListUpsertRequest
|
|
5160
5883
|
| KeywordUpsertRequest
|
|
5161
5884
|
| MLSpamUpsertRequest
|
|
5162
5885
|
| MentionSpamUpsertRequest
|
|
5886
|
+
| UserProfileUpsertRequest
|
|
5163
5887
|
|
|
5164
5888
|
export type CreateAutoModerationRule200 =
|
|
5165
5889
|
| DefaultKeywordRuleResponse
|
|
5166
5890
|
| KeywordRuleResponse
|
|
5167
5891
|
| MLSpamRuleResponse
|
|
5168
5892
|
| MentionSpamRuleResponse
|
|
5169
|
-
|
|
|
5893
|
+
| UserProfileRuleResponse
|
|
5170
5894
|
|
|
5171
5895
|
export type GetAutoModerationRule200 =
|
|
5172
5896
|
| DefaultKeywordRuleResponse
|
|
5173
5897
|
| KeywordRuleResponse
|
|
5174
5898
|
| MLSpamRuleResponse
|
|
5175
5899
|
| MentionSpamRuleResponse
|
|
5176
|
-
|
|
|
5900
|
+
| UserProfileRuleResponse
|
|
5177
5901
|
|
|
5178
5902
|
export interface DefaultKeywordListUpsertRequestPartial {
|
|
5179
5903
|
readonly name?: string | undefined
|
|
@@ -5251,18 +5975,38 @@ export interface MentionSpamUpsertRequestPartial {
|
|
|
5251
5975
|
readonly trigger_metadata?: MentionSpamTriggerMetadata | null | undefined
|
|
5252
5976
|
}
|
|
5253
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
|
+
|
|
5254
5997
|
export type UpdateAutoModerationRuleRequest =
|
|
5255
5998
|
| DefaultKeywordListUpsertRequestPartial
|
|
5256
5999
|
| KeywordUpsertRequestPartial
|
|
5257
6000
|
| MLSpamUpsertRequestPartial
|
|
5258
6001
|
| MentionSpamUpsertRequestPartial
|
|
6002
|
+
| UserProfileUpsertRequestPartial
|
|
5259
6003
|
|
|
5260
6004
|
export type UpdateAutoModerationRule200 =
|
|
5261
6005
|
| DefaultKeywordRuleResponse
|
|
5262
6006
|
| KeywordRuleResponse
|
|
5263
6007
|
| MLSpamRuleResponse
|
|
5264
6008
|
| MentionSpamRuleResponse
|
|
5265
|
-
|
|
|
6009
|
+
| UserProfileRuleResponse
|
|
5266
6010
|
|
|
5267
6011
|
export interface ListGuildBansParams {
|
|
5268
6012
|
readonly limit?: number | undefined
|
|
@@ -5362,6 +6106,17 @@ export interface UpdateGuildEmojiRequest {
|
|
|
5362
6106
|
readonly roles?: ReadonlyArray<null | SnowflakeType> | null | undefined
|
|
5363
6107
|
}
|
|
5364
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
|
+
|
|
5365
6120
|
export interface IntegrationApplicationResponse {
|
|
5366
6121
|
readonly id: SnowflakeType
|
|
5367
6122
|
readonly name: string
|
|
@@ -5474,22 +6229,64 @@ export interface UpdateMyGuildMemberRequest {
|
|
|
5474
6229
|
}
|
|
5475
6230
|
|
|
5476
6231
|
export interface PrivateGuildMemberResponse {
|
|
6232
|
+
/**
|
|
6233
|
+
* the member's guild avatar hash
|
|
6234
|
+
*/
|
|
5477
6235
|
readonly avatar: string | null
|
|
6236
|
+
/**
|
|
6237
|
+
* data for the member's guild avatar decoration
|
|
6238
|
+
*/
|
|
5478
6239
|
readonly avatar_decoration_data?:
|
|
5479
6240
|
| UserAvatarDecorationResponse
|
|
5480
6241
|
| null
|
|
5481
6242
|
| undefined
|
|
6243
|
+
/**
|
|
6244
|
+
* the member's guild banner hash
|
|
6245
|
+
*/
|
|
5482
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
|
+
*/
|
|
5483
6250
|
readonly communication_disabled_until: string | null
|
|
6251
|
+
/**
|
|
6252
|
+
* guild member flags represented as a bit set, defaults to 0
|
|
6253
|
+
*/
|
|
5484
6254
|
readonly flags: number
|
|
6255
|
+
/**
|
|
6256
|
+
* when the user joined the guild
|
|
6257
|
+
*/
|
|
5485
6258
|
readonly joined_at: string
|
|
6259
|
+
/**
|
|
6260
|
+
* this user's guild nickname
|
|
6261
|
+
*/
|
|
5486
6262
|
readonly nick: string | null
|
|
6263
|
+
/**
|
|
6264
|
+
* whether the user has not yet passed the guild's Membership Screening requirements
|
|
6265
|
+
*/
|
|
5487
6266
|
readonly pending: boolean
|
|
6267
|
+
/**
|
|
6268
|
+
* when the user started boosting the guild
|
|
6269
|
+
*/
|
|
5488
6270
|
readonly premium_since: string | null
|
|
6271
|
+
/**
|
|
6272
|
+
* array of role object ids
|
|
6273
|
+
*/
|
|
5489
6274
|
readonly roles: ReadonlyArray<SnowflakeType>
|
|
6275
|
+
/**
|
|
6276
|
+
* data for the member's collectibles
|
|
6277
|
+
*/
|
|
5490
6278
|
readonly collectibles?: UserCollectiblesResponse | null | undefined
|
|
6279
|
+
/**
|
|
6280
|
+
* the user this guild member represents
|
|
6281
|
+
*/
|
|
5491
6282
|
readonly user: UserResponse
|
|
6283
|
+
/**
|
|
6284
|
+
* whether the user is muted in voice channels
|
|
6285
|
+
*/
|
|
5492
6286
|
readonly mute: boolean
|
|
6287
|
+
/**
|
|
6288
|
+
* whether the user is deafened in voice channels
|
|
6289
|
+
*/
|
|
5493
6290
|
readonly deaf: boolean
|
|
5494
6291
|
readonly permissions?: string | undefined
|
|
5495
6292
|
}
|
|
@@ -5626,7 +6423,7 @@ export interface SearchMessageResponse {
|
|
|
5626
6423
|
readonly tts: boolean
|
|
5627
6424
|
readonly call?: MessageCallResponse | undefined
|
|
5628
6425
|
readonly activity?: MessageActivityResponse | undefined
|
|
5629
|
-
readonly application?:
|
|
6426
|
+
readonly application?: BasicApplicationResponseWithBot | undefined
|
|
5630
6427
|
readonly application_id?: SnowflakeType | undefined
|
|
5631
6428
|
readonly interaction?: MessageInteractionResponse | undefined
|
|
5632
6429
|
readonly nonce?: number | string | undefined
|
|
@@ -5652,9 +6449,11 @@ export interface SearchMessageResponse {
|
|
|
5652
6449
|
readonly message_snapshots?:
|
|
5653
6450
|
| ReadonlyArray<MessageSnapshotResponse>
|
|
5654
6451
|
| undefined
|
|
6452
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined
|
|
5655
6453
|
readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined
|
|
5656
6454
|
readonly referenced_message?: BasicMessageResponse | null | undefined
|
|
5657
6455
|
readonly hit: boolean
|
|
6456
|
+
readonly restriction_count?: number | undefined
|
|
5658
6457
|
}
|
|
5659
6458
|
|
|
5660
6459
|
export interface GuildSearchResponse {
|
|
@@ -6102,6 +6901,60 @@ export type ListGuildScheduledEvents200 = ReadonlyArray<
|
|
|
6102
6901
|
| VoiceScheduledEventResponse
|
|
6103
6902
|
>
|
|
6104
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
|
+
|
|
6105
6958
|
export interface EntityMetadataExternal {
|
|
6106
6959
|
readonly location: string
|
|
6107
6960
|
}
|
|
@@ -6115,6 +6968,10 @@ export interface ExternalScheduledEventCreateRequest {
|
|
|
6115
6968
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
6116
6969
|
readonly entity_type: 3
|
|
6117
6970
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
6971
|
+
/**
|
|
6972
|
+
* Recurrence rule for the scheduled event
|
|
6973
|
+
*/
|
|
6974
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined
|
|
6118
6975
|
readonly entity_metadata: EntityMetadataExternal
|
|
6119
6976
|
}
|
|
6120
6977
|
|
|
@@ -6129,6 +6986,10 @@ export interface StageScheduledEventCreateRequest {
|
|
|
6129
6986
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
6130
6987
|
readonly entity_type: 1
|
|
6131
6988
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
6989
|
+
/**
|
|
6990
|
+
* Recurrence rule for the scheduled event
|
|
6991
|
+
*/
|
|
6992
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined
|
|
6132
6993
|
readonly entity_metadata?: EntityMetadataStageInstance | null | undefined
|
|
6133
6994
|
}
|
|
6134
6995
|
|
|
@@ -6143,6 +7004,10 @@ export interface VoiceScheduledEventCreateRequest {
|
|
|
6143
7004
|
readonly privacy_level: GuildScheduledEventPrivacyLevels
|
|
6144
7005
|
readonly entity_type: 2
|
|
6145
7006
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
7007
|
+
/**
|
|
7008
|
+
* Recurrence rule for the scheduled event
|
|
7009
|
+
*/
|
|
7010
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined
|
|
6146
7011
|
readonly entity_metadata?: EntityMetadataVoice | null | undefined
|
|
6147
7012
|
}
|
|
6148
7013
|
|
|
@@ -6175,6 +7040,10 @@ export interface ExternalScheduledEventPatchRequestPartial {
|
|
|
6175
7040
|
readonly entity_type?: 3 | null | undefined
|
|
6176
7041
|
readonly privacy_level?: GuildScheduledEventPrivacyLevels | undefined
|
|
6177
7042
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
7043
|
+
/**
|
|
7044
|
+
* Recurrence rule for the scheduled event
|
|
7045
|
+
*/
|
|
7046
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined
|
|
6178
7047
|
readonly entity_metadata?: EntityMetadataExternal | undefined
|
|
6179
7048
|
}
|
|
6180
7049
|
|
|
@@ -6188,6 +7057,10 @@ export interface StageScheduledEventPatchRequestPartial {
|
|
|
6188
7057
|
readonly entity_type?: 1 | null | undefined
|
|
6189
7058
|
readonly privacy_level?: GuildScheduledEventPrivacyLevels | undefined
|
|
6190
7059
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
7060
|
+
/**
|
|
7061
|
+
* Recurrence rule for the scheduled event
|
|
7062
|
+
*/
|
|
7063
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined
|
|
6191
7064
|
readonly entity_metadata?: EntityMetadataStageInstance | null | undefined
|
|
6192
7065
|
}
|
|
6193
7066
|
|
|
@@ -6201,27 +7074,92 @@ export interface VoiceScheduledEventPatchRequestPartial {
|
|
|
6201
7074
|
readonly entity_type?: 2 | null | undefined
|
|
6202
7075
|
readonly privacy_level?: GuildScheduledEventPrivacyLevels | undefined
|
|
6203
7076
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
7077
|
+
/**
|
|
7078
|
+
* Recurrence rule for the scheduled event
|
|
7079
|
+
*/
|
|
7080
|
+
readonly recurrence_rule?: RecurrenceRule | null | undefined
|
|
6204
7081
|
readonly entity_metadata?: EntityMetadataVoice | null | undefined
|
|
6205
7082
|
}
|
|
6206
7083
|
|
|
6207
|
-
export type UpdateGuildScheduledEventRequest =
|
|
6208
|
-
| ExternalScheduledEventPatchRequestPartial
|
|
6209
|
-
| StageScheduledEventPatchRequestPartial
|
|
6210
|
-
| VoiceScheduledEventPatchRequestPartial
|
|
7084
|
+
export type UpdateGuildScheduledEventRequest =
|
|
7085
|
+
| ExternalScheduledEventPatchRequestPartial
|
|
7086
|
+
| StageScheduledEventPatchRequestPartial
|
|
7087
|
+
| VoiceScheduledEventPatchRequestPartial
|
|
7088
|
+
|
|
7089
|
+
export type UpdateGuildScheduledEvent200 =
|
|
7090
|
+
| ExternalScheduledEventResponse
|
|
7091
|
+
| StageScheduledEventResponse
|
|
7092
|
+
| VoiceScheduledEventResponse
|
|
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
|
+
|
|
7128
|
+
export interface ListGuildScheduledEventUsersParams {
|
|
7129
|
+
readonly with_member?: boolean | undefined
|
|
7130
|
+
readonly limit?: number | undefined
|
|
7131
|
+
readonly before?: SnowflakeType | undefined
|
|
7132
|
+
readonly after?: SnowflakeType | undefined
|
|
7133
|
+
}
|
|
7134
|
+
|
|
7135
|
+
export type ListGuildScheduledEventUsers200 =
|
|
7136
|
+
ReadonlyArray<ScheduledEventUserResponse>
|
|
6211
7137
|
|
|
6212
|
-
export
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
7138
|
+
export interface CountGuildScheduledEventUsersParams {
|
|
7139
|
+
readonly guild_scheduled_event_exception_ids?:
|
|
7140
|
+
| ReadonlyArray<SnowflakeType>
|
|
7141
|
+
| undefined
|
|
7142
|
+
}
|
|
6216
7143
|
|
|
6217
|
-
export interface
|
|
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 {
|
|
6218
7156
|
readonly with_member?: boolean | undefined
|
|
6219
7157
|
readonly limit?: number | undefined
|
|
6220
7158
|
readonly before?: SnowflakeType | undefined
|
|
6221
7159
|
readonly after?: SnowflakeType | undefined
|
|
6222
7160
|
}
|
|
6223
7161
|
|
|
6224
|
-
export type
|
|
7162
|
+
export type ListGuildScheduledEventExceptionUsers200 =
|
|
6225
7163
|
ReadonlyArray<ScheduledEventUserResponse>
|
|
6226
7164
|
|
|
6227
7165
|
export interface SoundboardSoundResponse {
|
|
@@ -6764,6 +7702,7 @@ export type CreateInteractionResponseRequest =
|
|
|
6764
7702
|
export interface InteractionResponse {
|
|
6765
7703
|
readonly id: SnowflakeType
|
|
6766
7704
|
readonly type: InteractionTypes
|
|
7705
|
+
readonly activity_instance_id?: string | null | undefined
|
|
6767
7706
|
readonly response_message_id?: SnowflakeType | undefined
|
|
6768
7707
|
readonly response_message_loading?: boolean | undefined
|
|
6769
7708
|
readonly response_message_ephemeral?: boolean | undefined
|
|
@@ -6776,8 +7715,13 @@ export interface CreateMessageInteractionCallbackResponse {
|
|
|
6776
7715
|
readonly message: MessageResponse
|
|
6777
7716
|
}
|
|
6778
7717
|
|
|
7718
|
+
export interface ActivityInstanceCallbackResponse {
|
|
7719
|
+
readonly id: string
|
|
7720
|
+
}
|
|
7721
|
+
|
|
6779
7722
|
export interface LaunchActivityInteractionCallbackResponse {
|
|
6780
7723
|
readonly type: 12
|
|
7724
|
+
readonly activity_instance: ActivityInstanceCallbackResponse
|
|
6781
7725
|
}
|
|
6782
7726
|
|
|
6783
7727
|
export interface UpdateMessageInteractionCallbackResponse {
|
|
@@ -6797,6 +7741,8 @@ export interface InteractionCallbackResponse {
|
|
|
6797
7741
|
export interface InviteResolveParams {
|
|
6798
7742
|
readonly with_counts?: boolean | undefined
|
|
6799
7743
|
readonly guild_scheduled_event_id?: SnowflakeType | undefined
|
|
7744
|
+
readonly target_channel_id?: SnowflakeType | undefined
|
|
7745
|
+
readonly target_message_id?: SnowflakeType | undefined
|
|
6800
7746
|
}
|
|
6801
7747
|
|
|
6802
7748
|
export type InviteResolve200 =
|
|
@@ -6875,6 +7821,7 @@ export interface LobbyMemberResponse {
|
|
|
6875
7821
|
readonly id: SnowflakeType
|
|
6876
7822
|
readonly metadata: Record<string, unknown> | null
|
|
6877
7823
|
readonly flags: number
|
|
7824
|
+
readonly additional_name?: string | undefined
|
|
6878
7825
|
}
|
|
6879
7826
|
|
|
6880
7827
|
export interface LobbyResponse {
|
|
@@ -6930,6 +7877,7 @@ export interface BulkLobbyMemberRequest {
|
|
|
6930
7877
|
readonly metadata?: Record<string, unknown> | null | undefined
|
|
6931
7878
|
readonly flags?: BulkLobbyMemberRequestFlagsEnum | null | undefined
|
|
6932
7879
|
readonly remove_member?: boolean | null | undefined
|
|
7880
|
+
readonly additional_name?: string | null | undefined
|
|
6933
7881
|
}
|
|
6934
7882
|
|
|
6935
7883
|
export type BulkUpdateLobbyMembersRequest =
|
|
@@ -6942,6 +7890,7 @@ export type AddLobbyMemberRequestFlagsEnum = 1
|
|
|
6942
7890
|
export interface AddLobbyMemberRequest {
|
|
6943
7891
|
readonly metadata?: Record<string, unknown> | null | undefined
|
|
6944
7892
|
readonly flags?: AddLobbyMemberRequestFlagsEnum | null | undefined
|
|
7893
|
+
readonly additional_name?: string | null | undefined
|
|
6945
7894
|
}
|
|
6946
7895
|
|
|
6947
7896
|
export interface GetLobbyMessagesParams {
|
|
@@ -6955,6 +7904,7 @@ export interface LobbyMessageResponse {
|
|
|
6955
7904
|
readonly lobby_id: SnowflakeType
|
|
6956
7905
|
readonly channel_id: SnowflakeType
|
|
6957
7906
|
readonly author: UserResponse
|
|
7907
|
+
readonly lobby_member?: MessageLobbyMemberResponse | undefined
|
|
6958
7908
|
readonly metadata?: Record<string, unknown> | undefined
|
|
6959
7909
|
readonly moderation_metadata?: Record<string, unknown> | undefined
|
|
6960
7910
|
readonly flags: number
|
|
@@ -7090,6 +8040,79 @@ export interface BotPartnerSdkTokenRequest {
|
|
|
7090
8040
|
readonly preferred_global_name?: string | null | undefined
|
|
7091
8041
|
}
|
|
7092
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>
|
|
8111
|
+
|
|
8112
|
+
export interface GetSkuSubscriptionParams {
|
|
8113
|
+
readonly user_id?: SnowflakeType | undefined
|
|
8114
|
+
}
|
|
8115
|
+
|
|
7093
8116
|
export type GetSoundboardDefaultSounds200 =
|
|
7094
8117
|
ReadonlyArray<SoundboardSoundResponse>
|
|
7095
8118
|
|
|
@@ -7099,7 +8122,7 @@ export const StageInstancesPrivacyLevels = {
|
|
|
7099
8122
|
*/
|
|
7100
8123
|
PUBLIC: 1,
|
|
7101
8124
|
/**
|
|
7102
|
-
* The Stage instance is visible
|
|
8125
|
+
* The Stage instance is visible to only guild members.
|
|
7103
8126
|
*/
|
|
7104
8127
|
GUILD_ONLY: 2,
|
|
7105
8128
|
} as const
|
|
@@ -7166,21 +8189,60 @@ export const PremiumTypes = {
|
|
|
7166
8189
|
export type PremiumTypes = (typeof PremiumTypes)[keyof typeof PremiumTypes]
|
|
7167
8190
|
|
|
7168
8191
|
export interface UserPIIResponse {
|
|
8192
|
+
/**
|
|
8193
|
+
* the user's id
|
|
8194
|
+
*/
|
|
7169
8195
|
readonly id: SnowflakeType
|
|
8196
|
+
/**
|
|
8197
|
+
* the user's username, not unique across the platform
|
|
8198
|
+
*/
|
|
7170
8199
|
readonly username: string
|
|
8200
|
+
/**
|
|
8201
|
+
* the user's avatar hash
|
|
8202
|
+
*/
|
|
7171
8203
|
readonly avatar: string | null
|
|
8204
|
+
/**
|
|
8205
|
+
* the user's Discord-tag
|
|
8206
|
+
*/
|
|
7172
8207
|
readonly discriminator: string
|
|
8208
|
+
/**
|
|
8209
|
+
* the public flags on a user's account
|
|
8210
|
+
*/
|
|
7173
8211
|
readonly public_flags: number
|
|
8212
|
+
/**
|
|
8213
|
+
* the flags on a user's account
|
|
8214
|
+
*/
|
|
7174
8215
|
readonly flags: Int53Type
|
|
8216
|
+
/**
|
|
8217
|
+
* whether the user belongs to an OAuth2 application
|
|
8218
|
+
*/
|
|
7175
8219
|
readonly bot?: boolean | undefined
|
|
8220
|
+
/**
|
|
8221
|
+
* whether the user is an Official Discord System user (part of the urgent message system)
|
|
8222
|
+
*/
|
|
7176
8223
|
readonly system?: boolean | undefined
|
|
8224
|
+
/**
|
|
8225
|
+
* the user's banner hash
|
|
8226
|
+
*/
|
|
7177
8227
|
readonly banner?: string | null | undefined
|
|
8228
|
+
/**
|
|
8229
|
+
* the user's banner color encoded as an integer representation of hexadecimal color code
|
|
8230
|
+
*/
|
|
7178
8231
|
readonly accent_color?: number | null | undefined
|
|
8232
|
+
/**
|
|
8233
|
+
* the user's display name, if it is set
|
|
8234
|
+
*/
|
|
7179
8235
|
readonly global_name: string | null
|
|
8236
|
+
/**
|
|
8237
|
+
* data for the user's avatar decoration
|
|
8238
|
+
*/
|
|
7180
8239
|
readonly avatar_decoration_data?:
|
|
7181
8240
|
| UserAvatarDecorationResponse
|
|
7182
8241
|
| null
|
|
7183
8242
|
| undefined
|
|
8243
|
+
/**
|
|
8244
|
+
* data for the user's collectibles
|
|
8245
|
+
*/
|
|
7184
8246
|
readonly collectibles?: UserCollectiblesResponse | null | undefined
|
|
7185
8247
|
readonly primary_guild?: UserPrimaryGuildResponse | null | undefined
|
|
7186
8248
|
readonly mfa_enabled: boolean
|
|
@@ -8562,6 +9624,14 @@ export const make = (
|
|
|
8562
9624
|
"4xx": "ErrorResponse",
|
|
8563
9625
|
}),
|
|
8564
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
|
+
),
|
|
8565
9635
|
listGuildIntegrations: guildId =>
|
|
8566
9636
|
HttpClientRequest.get(`/guilds/${guildId}/integrations`).pipe(
|
|
8567
9637
|
onRequest(["2xx"], {
|
|
@@ -8855,6 +9925,45 @@ export const make = (
|
|
|
8855
9925
|
"4xx": "ErrorResponse",
|
|
8856
9926
|
}),
|
|
8857
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
|
+
),
|
|
8858
9967
|
listGuildScheduledEventUsers: (guildId, guildScheduledEventId, options) =>
|
|
8859
9968
|
HttpClientRequest.get(
|
|
8860
9969
|
`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`,
|
|
@@ -8870,6 +9979,40 @@ export const make = (
|
|
|
8870
9979
|
"4xx": "ErrorResponse",
|
|
8871
9980
|
}),
|
|
8872
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
|
+
),
|
|
8873
10016
|
listGuildSoundboardSounds: guildId =>
|
|
8874
10017
|
HttpClientRequest.get(`/guilds/${guildId}/soundboard-sounds`).pipe(
|
|
8875
10018
|
onRequest(["2xx"], {
|
|
@@ -9088,6 +10231,8 @@ export const make = (
|
|
|
9088
10231
|
guild_scheduled_event_id: options?.[
|
|
9089
10232
|
"guild_scheduled_event_id"
|
|
9090
10233
|
] as any,
|
|
10234
|
+
target_channel_id: options?.["target_channel_id"] as any,
|
|
10235
|
+
target_message_id: options?.["target_message_id"] as any,
|
|
9091
10236
|
}),
|
|
9092
10237
|
onRequest(["2xx"], {
|
|
9093
10238
|
"429": "RatelimitedResponse",
|
|
@@ -9140,6 +10285,10 @@ export const make = (
|
|
|
9140
10285
|
"4xx": "ErrorResponse",
|
|
9141
10286
|
}),
|
|
9142
10287
|
),
|
|
10288
|
+
deleteLobby: lobbyId =>
|
|
10289
|
+
HttpClientRequest.delete(`/lobbies/${lobbyId}`).pipe(
|
|
10290
|
+
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
10291
|
+
),
|
|
9143
10292
|
editLobby: (lobbyId, options) =>
|
|
9144
10293
|
HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(
|
|
9145
10294
|
HttpClientRequest.bodyJsonUnsafe(options),
|
|
@@ -9291,6 +10440,31 @@ export const make = (
|
|
|
9291
10440
|
"4xx": "ErrorResponse",
|
|
9292
10441
|
}),
|
|
9293
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
|
+
),
|
|
9294
10468
|
getSoundboardDefaultSounds: () =>
|
|
9295
10469
|
HttpClientRequest.get(`/soundboard-default-sounds`).pipe(
|
|
9296
10470
|
onRequest(["2xx"], {
|
|
@@ -10556,6 +11730,18 @@ export interface DiscordRest {
|
|
|
10556
11730
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10557
11731
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10558
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
|
+
>
|
|
10559
11745
|
readonly listGuildIntegrations: (
|
|
10560
11746
|
guildId: string,
|
|
10561
11747
|
) => Effect.Effect<
|
|
@@ -10868,6 +12054,46 @@ export interface DiscordRest {
|
|
|
10868
12054
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10869
12055
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10870
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
|
+
>
|
|
10871
12097
|
readonly listGuildScheduledEventUsers: (
|
|
10872
12098
|
guildId: string,
|
|
10873
12099
|
guildScheduledEventId: string,
|
|
@@ -10878,6 +12104,33 @@ export interface DiscordRest {
|
|
|
10878
12104
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10879
12105
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10880
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
|
+
>
|
|
10881
12134
|
readonly listGuildSoundboardSounds: (
|
|
10882
12135
|
guildId: string,
|
|
10883
12136
|
) => Effect.Effect<
|
|
@@ -11212,6 +12465,17 @@ export interface DiscordRest {
|
|
|
11212
12465
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
11213
12466
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
11214
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
|
+
>
|
|
11215
12479
|
readonly editLobby: (
|
|
11216
12480
|
lobbyId: string,
|
|
11217
12481
|
options: EditLobbyRequest,
|
|
@@ -11384,6 +12648,31 @@ export interface DiscordRest {
|
|
|
11384
12648
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
11385
12649
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
11386
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
|
+
>
|
|
11387
12676
|
readonly getSoundboardDefaultSounds: () => Effect.Effect<
|
|
11388
12677
|
GetSoundboardDefaultSounds200,
|
|
11389
12678
|
| HttpClientError.HttpClientError
|