dfx 1.0.16 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/Cache/prelude.d.ts.map +1 -1
  2. package/dist/Cache/prelude.js +1 -1
  3. package/dist/Cache/prelude.js.map +1 -1
  4. package/dist/DiscordGateway/DiscordWS.d.ts +1 -1
  5. package/dist/DiscordGateway/DiscordWS.d.ts.map +1 -1
  6. package/dist/DiscordGateway/DiscordWS.js +1 -1
  7. package/dist/DiscordGateway/DiscordWS.js.map +1 -1
  8. package/dist/DiscordGateway/Shard/StateStore.d.ts +1 -1
  9. package/dist/DiscordGateway/Shard/StateStore.d.ts.map +1 -1
  10. package/dist/DiscordGateway/Shard/StateStore.js +1 -1
  11. package/dist/DiscordGateway/Shard/StateStore.js.map +1 -1
  12. package/dist/DiscordGateway/Shard.d.ts +2 -2
  13. package/dist/DiscordGateway/Sharder.d.ts +1 -1
  14. package/dist/DiscordGateway/Sharder.d.ts.map +1 -1
  15. package/dist/DiscordGateway.d.ts +2 -2
  16. package/dist/DiscordGateway.d.ts.map +1 -1
  17. package/dist/DiscordREST/Generated.d.ts +90 -51
  18. package/dist/DiscordREST/Generated.d.ts.map +1 -1
  19. package/dist/DiscordREST/Generated.js +11 -5
  20. package/dist/DiscordREST/Generated.js.map +1 -1
  21. package/dist/DiscordREST/utils.d.ts +1 -1
  22. package/dist/DiscordREST/utils.d.ts.map +1 -1
  23. package/dist/DiscordREST/utils.js +1 -1
  24. package/dist/DiscordREST/utils.js.map +1 -1
  25. package/dist/DiscordREST.d.ts +2 -2
  26. package/dist/DiscordREST.d.ts.map +1 -1
  27. package/dist/DiscordREST.js +3 -3
  28. package/dist/DiscordREST.js.map +1 -1
  29. package/dist/Interactions/builder.d.ts +2 -2
  30. package/dist/Interactions/builder.d.ts.map +1 -1
  31. package/dist/Interactions/gateway.d.ts.map +1 -1
  32. package/dist/Interactions/gateway.js +5 -7
  33. package/dist/Interactions/gateway.js.map +1 -1
  34. package/dist/gateway.d.ts +2 -2
  35. package/dist/gateway.d.ts.map +1 -1
  36. package/dist/index.d.ts +1 -1
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/types.d.ts +1 -1
  39. package/dist/types.d.ts.map +1 -1
  40. package/dist/types.js.map +1 -1
  41. package/dist/version.d.ts +1 -1
  42. package/dist/version.d.ts.map +1 -1
  43. package/dist/version.js +1 -1
  44. package/dist/version.js.map +1 -1
  45. package/dist/webhooks.d.ts +1 -1
  46. package/dist/webhooks.d.ts.map +1 -1
  47. package/package.json +7 -7
  48. package/src/Cache/prelude.ts +21 -32
  49. package/src/DiscordGateway/DiscordWS.ts +1 -1
  50. package/src/DiscordGateway/Shard/StateStore.ts +1 -1
  51. package/src/DiscordGateway.ts +2 -2
  52. package/src/DiscordREST/Generated.ts +264 -367
  53. package/src/DiscordREST/utils.ts +1 -1
  54. package/src/DiscordREST.ts +5 -5
  55. package/src/Interactions/gateway.ts +6 -9
  56. package/src/gateway.ts +2 -2
  57. package/src/index.ts +1 -1
  58. package/src/types.ts +2 -1
  59. package/src/version.ts +1 -1
  60. package/src/webhooks.ts +1 -1
@@ -1,8 +1,8 @@
1
1
  // oxlint-disable no-shadow
2
- import type * as HttpClient from "effect/unstable/http/HttpClient"
3
- import * as HttpClientError from "effect/unstable/http/HttpClientError"
4
- import * as HttpClientRequest from "effect/unstable/http/HttpClientRequest"
5
- import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse"
2
+ import type * as HttpClient from "effect/http/HttpClient"
3
+ import * as HttpClientError from "effect/http/HttpClientError"
4
+ import * as HttpClientRequest from "effect/http/HttpClientRequest"
5
+ import * as HttpClientResponse from "effect/http/HttpClientResponse"
6
6
  import * as Data from "effect/Data"
7
7
  import * as Effect from "effect/Effect"
8
8
 
@@ -170,9 +170,7 @@ export interface UserResponse {
170
170
  * data for the user's avatar decoration
171
171
  */
172
172
  readonly avatar_decoration_data?:
173
- | UserAvatarDecorationResponse
174
- | null
175
- | undefined
173
+ UserAvatarDecorationResponse | null | undefined
176
174
  /**
177
175
  * data for the user's collectibles
178
176
  */
@@ -719,8 +717,11 @@ export interface PrivateApplicationResponse {
719
717
  readonly type: ApplicationTypes | null
720
718
  readonly cover_image?: string | undefined
721
719
  readonly primary_sku_id?: SnowflakeType | undefined
720
+ readonly flags: number
721
+ readonly flags_new: string
722
722
  readonly bot?: UserResponse | undefined
723
723
  readonly slug?: string | undefined
724
+ readonly vibegrations_project_id?: SnowflakeType | undefined
724
725
  readonly guild_id?: SnowflakeType | undefined
725
726
  readonly rpc_origins?: ReadonlyArray<string> | undefined
726
727
  readonly bot_public?: boolean | undefined
@@ -731,8 +732,6 @@ export interface PrivateApplicationResponse {
731
732
  readonly install_params?: ApplicationOAuth2InstallParamsResponse | undefined
732
733
  readonly integration_types_config?: Record<string, unknown> | undefined
733
734
  readonly verify_key: string
734
- readonly flags: number
735
- readonly flags_new: string
736
735
  readonly max_participants?: number | null | undefined
737
736
  readonly tags?: ReadonlyArray<string> | undefined
738
737
  readonly redirect_uris: ReadonlyArray<string>
@@ -827,9 +826,7 @@ export interface ErrorResponse {
827
826
 
828
827
  export interface ApplicationOAuth2InstallParams {
829
828
  readonly scopes?:
830
- | ReadonlyArray<"applications.commands" | "bot">
831
- | null
832
- | undefined
829
+ ReadonlyArray<"applications.commands" | "bot"> | null | undefined
833
830
  readonly permissions?: number | null | undefined
834
831
  }
835
832
 
@@ -847,9 +844,7 @@ export interface ApplicationFormPartial {
847
844
  readonly flags?: number | null | undefined
848
845
  readonly interactions_endpoint_url?: string | null | undefined
849
846
  readonly explicit_content_filter?:
850
- | ApplicationExplicitContentFilterTypes
851
- | null
852
- | undefined
847
+ ApplicationExplicitContentFilterTypes | null | undefined
853
848
  readonly max_participants?: number | null | undefined
854
849
  readonly type?: ApplicationTypes | null | undefined
855
850
  readonly tags?: ReadonlyArray<string> | null | undefined
@@ -931,8 +926,11 @@ export interface ApplicationResponse {
931
926
  readonly type: ApplicationTypes | null
932
927
  readonly cover_image?: string | undefined
933
928
  readonly primary_sku_id?: SnowflakeType | undefined
929
+ readonly flags: number
930
+ readonly flags_new: string
934
931
  readonly bot?: UserResponse | undefined
935
932
  readonly slug?: string | undefined
933
+ readonly vibegrations_project_id?: SnowflakeType | undefined
936
934
  readonly guild_id?: SnowflakeType | undefined
937
935
  readonly rpc_origins?: ReadonlyArray<string> | undefined
938
936
  readonly bot_public?: boolean | undefined
@@ -943,8 +941,6 @@ export interface ApplicationResponse {
943
941
  readonly install_params?: ApplicationOAuth2InstallParamsResponse | undefined
944
942
  readonly integration_types_config?: Record<string, unknown> | undefined
945
943
  readonly verify_key: string
946
- readonly flags: number
947
- readonly flags_new: string
948
944
  readonly max_participants?: number | null | undefined
949
945
  readonly tags?: ReadonlyArray<string> | undefined
950
946
  }
@@ -1087,10 +1083,9 @@ export interface ApplicationCommandAttachmentOptionResponse {
1087
1083
  readonly description: string
1088
1084
  readonly description_localized?: string | undefined
1089
1085
  readonly description_localizations?:
1090
- | Record<string, unknown>
1091
- | null
1092
- | undefined
1086
+ Record<string, unknown> | null | undefined
1093
1087
  readonly required?: boolean | undefined
1088
+ readonly file_types?: ReadonlyArray<string> | undefined
1094
1089
  }
1095
1090
 
1096
1091
  export interface ApplicationCommandBooleanOptionResponse {
@@ -1101,9 +1096,7 @@ export interface ApplicationCommandBooleanOptionResponse {
1101
1096
  readonly description: string
1102
1097
  readonly description_localized?: string | undefined
1103
1098
  readonly description_localizations?:
1104
- | Record<string, unknown>
1105
- | null
1106
- | undefined
1099
+ Record<string, unknown> | null | undefined
1107
1100
  readonly required?: boolean | undefined
1108
1101
  }
1109
1102
 
@@ -1167,9 +1160,7 @@ export interface ApplicationCommandChannelOptionResponse {
1167
1160
  readonly description: string
1168
1161
  readonly description_localized?: string | undefined
1169
1162
  readonly description_localizations?:
1170
- | Record<string, unknown>
1171
- | null
1172
- | undefined
1163
+ Record<string, unknown> | null | undefined
1173
1164
  readonly required?: boolean | undefined
1174
1165
  readonly channel_types?: ReadonlyArray<ChannelTypes> | undefined
1175
1166
  }
@@ -1189,14 +1180,11 @@ export interface ApplicationCommandIntegerOptionResponse {
1189
1180
  readonly description: string
1190
1181
  readonly description_localized?: string | undefined
1191
1182
  readonly description_localizations?:
1192
- | Record<string, unknown>
1193
- | null
1194
- | undefined
1183
+ Record<string, unknown> | null | undefined
1195
1184
  readonly required?: boolean | undefined
1196
1185
  readonly autocomplete?: boolean | undefined
1197
1186
  readonly choices?:
1198
- | ReadonlyArray<ApplicationCommandOptionIntegerChoiceResponse>
1199
- | undefined
1187
+ ReadonlyArray<ApplicationCommandOptionIntegerChoiceResponse> | undefined
1200
1188
  readonly min_value?: Int53Type | undefined
1201
1189
  readonly max_value?: Int53Type | undefined
1202
1190
  }
@@ -1209,9 +1197,7 @@ export interface ApplicationCommandMentionableOptionResponse {
1209
1197
  readonly description: string
1210
1198
  readonly description_localized?: string | undefined
1211
1199
  readonly description_localizations?:
1212
- | Record<string, unknown>
1213
- | null
1214
- | undefined
1200
+ Record<string, unknown> | null | undefined
1215
1201
  readonly required?: boolean | undefined
1216
1202
  }
1217
1203
 
@@ -1230,14 +1216,11 @@ export interface ApplicationCommandNumberOptionResponse {
1230
1216
  readonly description: string
1231
1217
  readonly description_localized?: string | undefined
1232
1218
  readonly description_localizations?:
1233
- | Record<string, unknown>
1234
- | null
1235
- | undefined
1219
+ Record<string, unknown> | null | undefined
1236
1220
  readonly required?: boolean | undefined
1237
1221
  readonly autocomplete?: boolean | undefined
1238
1222
  readonly choices?:
1239
- | ReadonlyArray<ApplicationCommandOptionNumberChoiceResponse>
1240
- | undefined
1223
+ ReadonlyArray<ApplicationCommandOptionNumberChoiceResponse> | undefined
1241
1224
  readonly min_value?: number | undefined
1242
1225
  readonly max_value?: number | undefined
1243
1226
  }
@@ -1250,9 +1233,7 @@ export interface ApplicationCommandRoleOptionResponse {
1250
1233
  readonly description: string
1251
1234
  readonly description_localized?: string | undefined
1252
1235
  readonly description_localizations?:
1253
- | Record<string, unknown>
1254
- | null
1255
- | undefined
1236
+ Record<string, unknown> | null | undefined
1256
1237
  readonly required?: boolean | undefined
1257
1238
  }
1258
1239
 
@@ -1271,14 +1252,11 @@ export interface ApplicationCommandStringOptionResponse {
1271
1252
  readonly description: string
1272
1253
  readonly description_localized?: string | undefined
1273
1254
  readonly description_localizations?:
1274
- | Record<string, unknown>
1275
- | null
1276
- | undefined
1255
+ Record<string, unknown> | null | undefined
1277
1256
  readonly required?: boolean | undefined
1278
1257
  readonly autocomplete?: boolean | undefined
1279
1258
  readonly choices?:
1280
- | ReadonlyArray<ApplicationCommandOptionStringChoiceResponse>
1281
- | undefined
1259
+ ReadonlyArray<ApplicationCommandOptionStringChoiceResponse> | undefined
1282
1260
  readonly min_length?: number | undefined
1283
1261
  readonly max_length?: number | undefined
1284
1262
  }
@@ -1291,9 +1269,7 @@ export interface ApplicationCommandUserOptionResponse {
1291
1269
  readonly description: string
1292
1270
  readonly description_localized?: string | undefined
1293
1271
  readonly description_localizations?:
1294
- | Record<string, unknown>
1295
- | null
1296
- | undefined
1272
+ Record<string, unknown> | null | undefined
1297
1273
  readonly required?: boolean | undefined
1298
1274
  }
1299
1275
 
@@ -1305,9 +1281,7 @@ export interface ApplicationCommandSubcommandOptionResponse {
1305
1281
  readonly description: string
1306
1282
  readonly description_localized?: string | undefined
1307
1283
  readonly description_localizations?:
1308
- | Record<string, unknown>
1309
- | null
1310
- | undefined
1284
+ Record<string, unknown> | null | undefined
1311
1285
  readonly required?: boolean | undefined
1312
1286
  readonly options?:
1313
1287
  | ReadonlyArray<
@@ -1332,13 +1306,10 @@ export interface ApplicationCommandSubcommandGroupOptionResponse {
1332
1306
  readonly description: string
1333
1307
  readonly description_localized?: string | undefined
1334
1308
  readonly description_localizations?:
1335
- | Record<string, unknown>
1336
- | null
1337
- | undefined
1309
+ Record<string, unknown> | null | undefined
1338
1310
  readonly required?: boolean | undefined
1339
1311
  readonly options?:
1340
- | ReadonlyArray<ApplicationCommandSubcommandOptionResponse>
1341
- | undefined
1312
+ ReadonlyArray<ApplicationCommandSubcommandOptionResponse> | undefined
1342
1313
  }
1343
1314
 
1344
1315
  export const ApplicationCommandHandler = {
@@ -1366,15 +1337,12 @@ export interface ApplicationCommandResponse {
1366
1337
  readonly description: string
1367
1338
  readonly description_localized?: string | undefined
1368
1339
  readonly description_localizations?:
1369
- | Record<string, unknown>
1370
- | null
1371
- | undefined
1340
+ Record<string, unknown> | null | undefined
1372
1341
  readonly guild_id?: SnowflakeType | undefined
1373
1342
  readonly dm_permission?: boolean | undefined
1374
1343
  readonly contexts?: ReadonlyArray<InteractionContextType> | null | undefined
1375
1344
  readonly integration_types?:
1376
- | ReadonlyArray<ApplicationIntegrationType>
1377
- | undefined
1345
+ ReadonlyArray<ApplicationIntegrationType> | undefined
1378
1346
  readonly options?:
1379
1347
  | ReadonlyArray<
1380
1348
  | ApplicationCommandAttachmentOptionResponse
@@ -1398,7 +1366,7 @@ export interface ApplicationCommandResponse {
1398
1366
  }
1399
1367
 
1400
1368
  export type ListApplicationCommands200 =
1401
- ReadonlyArray<ApplicationCommandResponse>
1369
+ ReadonlyArray<ApplicationCommandResponse> | null
1402
1370
 
1403
1371
  export interface ApplicationCommandAttachmentOption {
1404
1372
  readonly type: 11
@@ -1406,10 +1374,9 @@ export interface ApplicationCommandAttachmentOption {
1406
1374
  readonly name_localizations?: Record<string, unknown> | null | undefined
1407
1375
  readonly description: string
1408
1376
  readonly description_localizations?:
1409
- | Record<string, unknown>
1410
- | null
1411
- | undefined
1377
+ Record<string, unknown> | null | undefined
1412
1378
  readonly required?: boolean | null | undefined
1379
+ readonly file_types?: ReadonlyArray<string> | null | undefined
1413
1380
  }
1414
1381
 
1415
1382
  export interface ApplicationCommandBooleanOption {
@@ -1418,9 +1385,7 @@ export interface ApplicationCommandBooleanOption {
1418
1385
  readonly name_localizations?: Record<string, unknown> | null | undefined
1419
1386
  readonly description: string
1420
1387
  readonly description_localizations?:
1421
- | Record<string, unknown>
1422
- | null
1423
- | undefined
1388
+ Record<string, unknown> | null | undefined
1424
1389
  readonly required?: boolean | null | undefined
1425
1390
  }
1426
1391
 
@@ -1430,9 +1395,7 @@ export interface ApplicationCommandChannelOption {
1430
1395
  readonly name_localizations?: Record<string, unknown> | null | undefined
1431
1396
  readonly description: string
1432
1397
  readonly description_localizations?:
1433
- | Record<string, unknown>
1434
- | null
1435
- | undefined
1398
+ Record<string, unknown> | null | undefined
1436
1399
  readonly required?: boolean | null | undefined
1437
1400
  readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined
1438
1401
  }
@@ -1449,15 +1412,11 @@ export interface ApplicationCommandIntegerOption {
1449
1412
  readonly name_localizations?: Record<string, unknown> | null | undefined
1450
1413
  readonly description: string
1451
1414
  readonly description_localizations?:
1452
- | Record<string, unknown>
1453
- | null
1454
- | undefined
1415
+ Record<string, unknown> | null | undefined
1455
1416
  readonly required?: boolean | null | undefined
1456
1417
  readonly autocomplete?: boolean | null | undefined
1457
1418
  readonly choices?:
1458
- | ReadonlyArray<ApplicationCommandOptionIntegerChoice>
1459
- | null
1460
- | undefined
1419
+ ReadonlyArray<ApplicationCommandOptionIntegerChoice> | null | undefined
1461
1420
  readonly min_value?: Int53Type | null | undefined
1462
1421
  readonly max_value?: Int53Type | null | undefined
1463
1422
  }
@@ -1468,9 +1427,7 @@ export interface ApplicationCommandMentionableOption {
1468
1427
  readonly name_localizations?: Record<string, unknown> | null | undefined
1469
1428
  readonly description: string
1470
1429
  readonly description_localizations?:
1471
- | Record<string, unknown>
1472
- | null
1473
- | undefined
1430
+ Record<string, unknown> | null | undefined
1474
1431
  readonly required?: boolean | null | undefined
1475
1432
  }
1476
1433
 
@@ -1486,15 +1443,11 @@ export interface ApplicationCommandNumberOption {
1486
1443
  readonly name_localizations?: Record<string, unknown> | null | undefined
1487
1444
  readonly description: string
1488
1445
  readonly description_localizations?:
1489
- | Record<string, unknown>
1490
- | null
1491
- | undefined
1446
+ Record<string, unknown> | null | undefined
1492
1447
  readonly required?: boolean | null | undefined
1493
1448
  readonly autocomplete?: boolean | null | undefined
1494
1449
  readonly choices?:
1495
- | ReadonlyArray<ApplicationCommandOptionNumberChoice>
1496
- | null
1497
- | undefined
1450
+ ReadonlyArray<ApplicationCommandOptionNumberChoice> | null | undefined
1498
1451
  readonly min_value?: number | null | undefined
1499
1452
  readonly max_value?: number | null | undefined
1500
1453
  }
@@ -1505,9 +1458,7 @@ export interface ApplicationCommandRoleOption {
1505
1458
  readonly name_localizations?: Record<string, unknown> | null | undefined
1506
1459
  readonly description: string
1507
1460
  readonly description_localizations?:
1508
- | Record<string, unknown>
1509
- | null
1510
- | undefined
1461
+ Record<string, unknown> | null | undefined
1511
1462
  readonly required?: boolean | null | undefined
1512
1463
  }
1513
1464
 
@@ -1523,17 +1474,13 @@ export interface ApplicationCommandStringOption {
1523
1474
  readonly name_localizations?: Record<string, unknown> | null | undefined
1524
1475
  readonly description: string
1525
1476
  readonly description_localizations?:
1526
- | Record<string, unknown>
1527
- | null
1528
- | undefined
1477
+ Record<string, unknown> | null | undefined
1529
1478
  readonly required?: boolean | null | undefined
1530
1479
  readonly autocomplete?: boolean | null | undefined
1531
1480
  readonly min_length?: number | null | undefined
1532
1481
  readonly max_length?: number | null | undefined
1533
1482
  readonly choices?:
1534
- | ReadonlyArray<ApplicationCommandOptionStringChoice>
1535
- | null
1536
- | undefined
1483
+ ReadonlyArray<ApplicationCommandOptionStringChoice> | null | undefined
1537
1484
  }
1538
1485
 
1539
1486
  export interface ApplicationCommandUserOption {
@@ -1542,9 +1489,7 @@ export interface ApplicationCommandUserOption {
1542
1489
  readonly name_localizations?: Record<string, unknown> | null | undefined
1543
1490
  readonly description: string
1544
1491
  readonly description_localizations?:
1545
- | Record<string, unknown>
1546
- | null
1547
- | undefined
1492
+ Record<string, unknown> | null | undefined
1548
1493
  readonly required?: boolean | null | undefined
1549
1494
  }
1550
1495
 
@@ -1554,9 +1499,7 @@ export interface ApplicationCommandSubcommandOption {
1554
1499
  readonly name_localizations?: Record<string, unknown> | null | undefined
1555
1500
  readonly description: string
1556
1501
  readonly description_localizations?:
1557
- | Record<string, unknown>
1558
- | null
1559
- | undefined
1502
+ Record<string, unknown> | null | undefined
1560
1503
  readonly required?: boolean | null | undefined
1561
1504
  readonly options?:
1562
1505
  | ReadonlyArray<
@@ -1580,14 +1523,10 @@ export interface ApplicationCommandSubcommandGroupOption {
1580
1523
  readonly name_localizations?: Record<string, unknown> | null | undefined
1581
1524
  readonly description: string
1582
1525
  readonly description_localizations?:
1583
- | Record<string, unknown>
1584
- | null
1585
- | undefined
1526
+ Record<string, unknown> | null | undefined
1586
1527
  readonly required?: boolean | null | undefined
1587
1528
  readonly options?:
1588
- | ReadonlyArray<ApplicationCommandSubcommandOption>
1589
- | null
1590
- | undefined
1529
+ ReadonlyArray<ApplicationCommandSubcommandOption> | null | undefined
1591
1530
  }
1592
1531
 
1593
1532
  export interface ApplicationCommandUpdateRequest {
@@ -1595,9 +1534,7 @@ export interface ApplicationCommandUpdateRequest {
1595
1534
  readonly name_localizations?: Record<string, unknown> | null | undefined
1596
1535
  readonly description?: string | null | undefined
1597
1536
  readonly description_localizations?:
1598
- | Record<string, unknown>
1599
- | null
1600
- | undefined
1537
+ Record<string, unknown> | null | undefined
1601
1538
  readonly options?:
1602
1539
  | ReadonlyArray<
1603
1540
  | ApplicationCommandAttachmentOption
@@ -1618,9 +1555,7 @@ export interface ApplicationCommandUpdateRequest {
1618
1555
  readonly dm_permission?: boolean | null | undefined
1619
1556
  readonly contexts?: ReadonlyArray<InteractionContextType> | null | undefined
1620
1557
  readonly integration_types?:
1621
- | ReadonlyArray<ApplicationIntegrationType>
1622
- | null
1623
- | undefined
1558
+ ReadonlyArray<ApplicationIntegrationType> | null | undefined
1624
1559
  /**
1625
1560
  * Determines whether the interaction is handled by the app's interactions handler or by Discord
1626
1561
  */
@@ -1630,19 +1565,17 @@ export interface ApplicationCommandUpdateRequest {
1630
1565
  }
1631
1566
 
1632
1567
  export type BulkSetApplicationCommandsRequest =
1633
- ReadonlyArray<ApplicationCommandUpdateRequest>
1568
+ ReadonlyArray<ApplicationCommandUpdateRequest> | null
1634
1569
 
1635
1570
  export type BulkSetApplicationCommands200 =
1636
- ReadonlyArray<ApplicationCommandResponse>
1571
+ ReadonlyArray<ApplicationCommandResponse> | null
1637
1572
 
1638
1573
  export interface ApplicationCommandCreateRequest {
1639
1574
  readonly name: string
1640
1575
  readonly name_localizations?: Record<string, unknown> | null | undefined
1641
1576
  readonly description?: string | null | undefined
1642
1577
  readonly description_localizations?:
1643
- | Record<string, unknown>
1644
- | null
1645
- | undefined
1578
+ Record<string, unknown> | null | undefined
1646
1579
  readonly options?:
1647
1580
  | ReadonlyArray<
1648
1581
  | ApplicationCommandAttachmentOption
@@ -1663,9 +1596,7 @@ export interface ApplicationCommandCreateRequest {
1663
1596
  readonly dm_permission?: boolean | null | undefined
1664
1597
  readonly contexts?: ReadonlyArray<InteractionContextType> | null | undefined
1665
1598
  readonly integration_types?:
1666
- | ReadonlyArray<ApplicationIntegrationType>
1667
- | null
1668
- | undefined
1599
+ ReadonlyArray<ApplicationIntegrationType> | null | undefined
1669
1600
  /**
1670
1601
  * Determines whether the interaction is handled by the app's interactions handler or by Discord
1671
1602
  */
@@ -1678,9 +1609,7 @@ export interface ApplicationCommandPatchRequestPartial {
1678
1609
  readonly name_localizations?: Record<string, unknown> | null | undefined
1679
1610
  readonly description?: string | null | undefined
1680
1611
  readonly description_localizations?:
1681
- | Record<string, unknown>
1682
- | null
1683
- | undefined
1612
+ Record<string, unknown> | null | undefined
1684
1613
  readonly options?:
1685
1614
  | ReadonlyArray<
1686
1615
  | ApplicationCommandAttachmentOption
@@ -1701,9 +1630,7 @@ export interface ApplicationCommandPatchRequestPartial {
1701
1630
  readonly dm_permission?: boolean | null | undefined
1702
1631
  readonly contexts?: ReadonlyArray<InteractionContextType> | null | undefined
1703
1632
  readonly integration_types?:
1704
- | ReadonlyArray<ApplicationIntegrationType>
1705
- | null
1706
- | undefined
1633
+ ReadonlyArray<ApplicationIntegrationType> | null | undefined
1707
1634
  /**
1708
1635
  * Determines whether the interaction is handled by the app's interactions handler or by Discord
1709
1636
  */
@@ -1778,9 +1705,7 @@ export interface EntitlementResponse {
1778
1705
  readonly type: EntitlementTypes
1779
1706
  readonly fulfilled_at?: string | null | undefined
1780
1707
  readonly fulfillment_status?:
1781
- | EntitlementTenantFulfillmentStatusResponse
1782
- | null
1783
- | undefined
1708
+ EntitlementTenantFulfillmentStatusResponse | null | undefined
1784
1709
  readonly consumed?: boolean | undefined
1785
1710
  readonly gifter_user_id?: SnowflakeType | null | undefined
1786
1711
  readonly parent_id?: SnowflakeType | null | undefined
@@ -1821,13 +1746,13 @@ export interface ListGuildApplicationCommandsParams {
1821
1746
  }
1822
1747
 
1823
1748
  export type ListGuildApplicationCommands200 =
1824
- ReadonlyArray<ApplicationCommandResponse>
1749
+ ReadonlyArray<ApplicationCommandResponse> | null
1825
1750
 
1826
1751
  export type BulkSetGuildApplicationCommandsRequest =
1827
- ReadonlyArray<ApplicationCommandUpdateRequest>
1752
+ ReadonlyArray<ApplicationCommandUpdateRequest> | null
1828
1753
 
1829
1754
  export type BulkSetGuildApplicationCommands200 =
1830
- ReadonlyArray<ApplicationCommandResponse>
1755
+ ReadonlyArray<ApplicationCommandResponse> | null
1831
1756
 
1832
1757
  export const ApplicationCommandPermissionType = {
1833
1758
  /**
@@ -1870,9 +1795,7 @@ export interface ApplicationCommandPermission {
1870
1795
 
1871
1796
  export interface SetGuildApplicationCommandPermissionsRequest {
1872
1797
  readonly permissions?:
1873
- | ReadonlyArray<ApplicationCommandPermission>
1874
- | null
1875
- | undefined
1798
+ ReadonlyArray<ApplicationCommandPermission> | null | undefined
1876
1799
  }
1877
1800
 
1878
1801
  export const MetadataItemTypes = {
@@ -1919,13 +1842,11 @@ export interface ApplicationRoleConnectionsMetadataItemResponse {
1919
1842
  readonly name_localizations?: Record<string, unknown> | null | undefined
1920
1843
  readonly description: string
1921
1844
  readonly description_localizations?:
1922
- | Record<string, unknown>
1923
- | null
1924
- | undefined
1845
+ Record<string, unknown> | null | undefined
1925
1846
  }
1926
1847
 
1927
1848
  export type GetApplicationRoleConnectionsMetadata200 =
1928
- ReadonlyArray<ApplicationRoleConnectionsMetadataItemResponse>
1849
+ ReadonlyArray<ApplicationRoleConnectionsMetadataItemResponse> | null
1929
1850
 
1930
1851
  export interface ApplicationRoleConnectionsMetadataItemRequest {
1931
1852
  readonly type: MetadataItemTypes
@@ -1934,16 +1855,14 @@ export interface ApplicationRoleConnectionsMetadataItemRequest {
1934
1855
  readonly name_localizations?: Record<string, unknown> | null | undefined
1935
1856
  readonly description: string
1936
1857
  readonly description_localizations?:
1937
- | Record<string, unknown>
1938
- | null
1939
- | undefined
1858
+ Record<string, unknown> | null | undefined
1940
1859
  }
1941
1860
 
1942
1861
  export type UpdateApplicationRoleConnectionsMetadataRequest =
1943
- ReadonlyArray<ApplicationRoleConnectionsMetadataItemRequest>
1862
+ ReadonlyArray<ApplicationRoleConnectionsMetadataItemRequest> | null
1944
1863
 
1945
1864
  export type UpdateApplicationRoleConnectionsMetadata200 =
1946
- ReadonlyArray<ApplicationRoleConnectionsMetadataItemResponse>
1865
+ ReadonlyArray<ApplicationRoleConnectionsMetadataItemResponse> | null
1947
1866
 
1948
1867
  export const VideoQualityModes = {
1949
1868
  /**
@@ -2068,14 +1987,11 @@ export interface GuildChannelResponse {
2068
1987
  readonly default_thread_rate_limit_per_user?: number | undefined
2069
1988
  readonly position: number
2070
1989
  readonly permission_overwrites?:
2071
- | ReadonlyArray<ChannelPermissionOverwriteResponse>
2072
- | undefined
1990
+ ReadonlyArray<ChannelPermissionOverwriteResponse> | undefined
2073
1991
  readonly nsfw?: boolean | undefined
2074
1992
  readonly available_tags?: ReadonlyArray<ForumTagResponse> | undefined
2075
1993
  readonly default_reaction_emoji?:
2076
- | DefaultReactionEmojiResponse
2077
- | null
2078
- | undefined
1994
+ DefaultReactionEmojiResponse | null | undefined
2079
1995
  readonly default_sort_order?: ThreadSortOrder | null | undefined
2080
1996
  readonly default_forum_layout?: ForumLayout | undefined
2081
1997
  readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
@@ -2122,9 +2038,7 @@ export interface GuildMemberResponse {
2122
2038
  * data for the member's guild avatar decoration
2123
2039
  */
2124
2040
  readonly avatar_decoration_data?:
2125
- | UserAvatarDecorationResponse
2126
- | null
2127
- | undefined
2041
+ UserAvatarDecorationResponse | null | undefined
2128
2042
  /**
2129
2043
  * the member's guild banner hash
2130
2044
  */
@@ -2259,28 +2173,20 @@ export interface UpdateGuildChannelRequestPartial {
2259
2173
  readonly rate_limit_per_user?: number | null | undefined
2260
2174
  readonly parent_id?: SnowflakeType | null | undefined
2261
2175
  readonly permission_overwrites?:
2262
- | ReadonlyArray<ChannelPermissionOverwriteRequest>
2263
- | null
2264
- | undefined
2176
+ ReadonlyArray<ChannelPermissionOverwriteRequest> | null | undefined
2265
2177
  readonly rtc_region?: string | null | undefined
2266
2178
  readonly video_quality_mode?: VideoQualityModes | null | undefined
2267
2179
  readonly default_auto_archive_duration?:
2268
- | ThreadAutoArchiveDuration
2269
- | null
2270
- | undefined
2180
+ ThreadAutoArchiveDuration | null | undefined
2271
2181
  readonly default_reaction_emoji?:
2272
- | UpdateDefaultReactionEmojiRequest
2273
- | null
2274
- | undefined
2182
+ UpdateDefaultReactionEmojiRequest | null | undefined
2275
2183
  readonly default_thread_rate_limit_per_user?: number | null | undefined
2276
2184
  readonly default_sort_order?: ThreadSortOrder | null | undefined
2277
2185
  readonly default_forum_layout?: ForumLayout | null | undefined
2278
2186
  readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
2279
2187
  readonly flags?: number | null | undefined
2280
2188
  readonly available_tags?:
2281
- | ReadonlyArray<UpdateThreadTagRequest>
2282
- | null
2283
- | undefined
2189
+ ReadonlyArray<UpdateThreadTagRequest> | null | undefined
2284
2190
  }
2285
2191
 
2286
2192
  export interface UpdateThreadRequestPartial {
@@ -2337,9 +2243,9 @@ export interface InviteChannelResponse {
2337
2243
  readonly type: ChannelTypes
2338
2244
  readonly name: string | null
2339
2245
  readonly icon?: string | undefined
2246
+ readonly nsfw?: boolean | undefined
2340
2247
  readonly recipients?:
2341
- | ReadonlyArray<InviteChannelRecipientResponse>
2342
- | undefined
2248
+ ReadonlyArray<InviteChannelRecipientResponse> | undefined
2343
2249
  }
2344
2250
 
2345
2251
  export interface FriendInviteResponse {
@@ -2554,8 +2460,11 @@ export interface InviteApplicationResponse {
2554
2460
  readonly type: ApplicationTypes | null
2555
2461
  readonly cover_image?: string | undefined
2556
2462
  readonly primary_sku_id?: SnowflakeType | undefined
2463
+ readonly flags: number
2464
+ readonly flags_new: string
2557
2465
  readonly bot?: UserResponse | undefined
2558
2466
  readonly slug?: string | undefined
2467
+ readonly vibegrations_project_id?: SnowflakeType | undefined
2559
2468
  readonly guild_id?: SnowflakeType | undefined
2560
2469
  readonly rpc_origins?: ReadonlyArray<string> | undefined
2561
2470
  readonly bot_public?: boolean | undefined
@@ -2566,8 +2475,6 @@ export interface InviteApplicationResponse {
2566
2475
  readonly install_params?: ApplicationOAuth2InstallParamsResponse | undefined
2567
2476
  readonly integration_types_config?: Record<string, unknown> | undefined
2568
2477
  readonly verify_key: string
2569
- readonly flags: number
2570
- readonly flags_new: string
2571
2478
  readonly max_participants?: number | null | undefined
2572
2479
  readonly tags?: ReadonlyArray<string> | undefined
2573
2480
  }
@@ -2816,11 +2723,6 @@ export interface ScheduledEventResponse {
2816
2723
  readonly guild_scheduled_event_exceptions: ReadonlyArray<GuildScheduledEventExceptionResponse>
2817
2724
  }
2818
2725
 
2819
- export interface GuildLivelinessResponse {
2820
- readonly msg_activity_bins: ReadonlyArray<number>
2821
- readonly last_updated_ts?: string | null | undefined
2822
- }
2823
-
2824
2726
  export interface GuildRoleColorsResponse {
2825
2727
  readonly primary_color: number
2826
2728
  readonly secondary_color: number | null
@@ -2856,7 +2758,6 @@ export interface GuildInviteResponse {
2856
2758
  readonly guild_scheduled_event?: ScheduledEventResponse | undefined
2857
2759
  readonly target_channel_id?: SnowflakeType | undefined
2858
2760
  readonly target_message_id?: SnowflakeType | undefined
2859
- readonly liveliness?: GuildLivelinessResponse | null | undefined
2860
2761
  readonly uses?: number | undefined
2861
2762
  readonly max_uses?: number | undefined
2862
2763
  readonly temporary?: boolean | undefined
@@ -2868,7 +2769,7 @@ export interface GuildInviteResponse {
2868
2769
 
2869
2770
  export type ListChannelInvites200 = ReadonlyArray<
2870
2771
  FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse | null
2871
- >
2772
+ > | null
2872
2773
 
2873
2774
  export interface CreateGroupDMInviteRequest {
2874
2775
  readonly max_age?: number | null | undefined
@@ -2883,16 +2784,18 @@ export interface CreateGuildInviteRequest {
2883
2784
  readonly target_application_id?: SnowflakeType | null | undefined
2884
2785
  readonly target_type?: 1 | 2 | null | undefined
2885
2786
  readonly role_ids?: string | ReadonlyArray<SnowflakeType> | null | undefined
2787
+ /**
2788
+ * The IDs of the users to target with this invite.
2789
+ */
2790
+ readonly target_user_ids?:
2791
+ string | ReadonlyArray<SnowflakeType> | null | undefined
2886
2792
  }
2887
2793
 
2888
2794
  export type CreateChannelInviteRequest =
2889
- | CreateGroupDMInviteRequest
2890
- | CreateGuildInviteRequest
2795
+ CreateGroupDMInviteRequest | CreateGuildInviteRequest
2891
2796
 
2892
2797
  export type CreateChannelInvite200 =
2893
- | FriendInviteResponse
2894
- | GroupDMInviteResponse
2895
- | GuildInviteResponse
2798
+ FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse
2896
2799
 
2897
2800
  export interface ListMessagesParams {
2898
2801
  readonly around?: SnowflakeType | undefined
@@ -3151,8 +3054,7 @@ export interface ChannelSelectComponentResponse {
3151
3054
  readonly disabled?: boolean | undefined
3152
3055
  readonly channel_types?: ReadonlyArray<ChannelTypes> | undefined
3153
3056
  readonly default_values?:
3154
- | ReadonlyArray<ChannelSelectDefaultValueResponse>
3155
- | undefined
3057
+ ReadonlyArray<ChannelSelectDefaultValueResponse> | undefined
3156
3058
  }
3157
3059
 
3158
3060
  export interface RoleSelectDefaultValueResponse {
@@ -3189,8 +3091,7 @@ export interface RoleSelectComponentResponse {
3189
3091
  readonly max_values: number
3190
3092
  readonly disabled?: boolean | undefined
3191
3093
  readonly default_values?:
3192
- | ReadonlyArray<RoleSelectDefaultValueResponse>
3193
- | undefined
3094
+ ReadonlyArray<RoleSelectDefaultValueResponse> | undefined
3194
3095
  }
3195
3096
 
3196
3097
  export interface StringSelectOptionResponse {
@@ -3247,8 +3148,7 @@ export interface UserSelectComponentResponse {
3247
3148
  readonly max_values: number
3248
3149
  readonly disabled?: boolean | undefined
3249
3150
  readonly default_values?:
3250
- | ReadonlyArray<UserSelectDefaultValueResponse>
3251
- | undefined
3151
+ ReadonlyArray<UserSelectDefaultValueResponse> | undefined
3252
3152
  }
3253
3153
 
3254
3154
  export interface ActionRowComponentResponse {
@@ -3448,6 +3348,8 @@ export interface BasicApplicationResponseWithBot {
3448
3348
  readonly type: ApplicationTypes | null
3449
3349
  readonly cover_image?: string | undefined
3450
3350
  readonly primary_sku_id?: SnowflakeType | undefined
3351
+ readonly flags: number
3352
+ readonly flags_new: string
3451
3353
  readonly bot?: UserResponse | undefined
3452
3354
  }
3453
3355
 
@@ -3695,8 +3597,7 @@ export interface MinimalContentMessageResponse {
3695
3597
  | TextDisplayComponentResponse
3696
3598
  >
3697
3599
  readonly stickers?:
3698
- | ReadonlyArray<GuildStickerResponse | StandardStickerResponse>
3699
- | undefined
3600
+ ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined
3700
3601
  readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined
3701
3602
  }
3702
3603
 
@@ -3742,8 +3643,7 @@ export interface BasicMessageResponse {
3742
3643
  | TextDisplayComponentResponse
3743
3644
  >
3744
3645
  readonly stickers?:
3745
- | ReadonlyArray<GuildStickerResponse | StandardStickerResponse>
3746
- | undefined
3646
+ ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined
3747
3647
  readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined
3748
3648
  readonly id: SnowflakeType
3749
3649
  readonly channel_id: SnowflakeType
@@ -3761,11 +3661,9 @@ export interface BasicMessageResponse {
3761
3661
  readonly message_reference?: MessageReferenceResponse | undefined
3762
3662
  readonly thread?: ThreadResponse | undefined
3763
3663
  readonly mention_channels?:
3764
- | ReadonlyArray<MessageMentionChannelResponse>
3765
- | undefined
3664
+ ReadonlyArray<MessageMentionChannelResponse> | undefined
3766
3665
  readonly role_subscription_data?:
3767
- | MessageRoleSubscriptionDataResponse
3768
- | undefined
3666
+ MessageRoleSubscriptionDataResponse | undefined
3769
3667
  readonly purchase_notification?: PurchaseNotificationResponse | undefined
3770
3668
  readonly position?: number | undefined
3771
3669
  readonly resolved?: ResolvedObjectsResponse | undefined
@@ -3777,8 +3675,7 @@ export interface BasicMessageResponse {
3777
3675
  | ModalSubmitInteractionMetadataResponse
3778
3676
  | undefined
3779
3677
  readonly message_snapshots?:
3780
- | ReadonlyArray<MessageSnapshotResponse>
3781
- | undefined
3678
+ ReadonlyArray<MessageSnapshotResponse> | undefined
3782
3679
  readonly lobby_member?: MessageLobbyMemberResponse | undefined
3783
3680
  }
3784
3681
 
@@ -3802,8 +3699,7 @@ export interface MessageResponse {
3802
3699
  | TextDisplayComponentResponse
3803
3700
  >
3804
3701
  readonly stickers?:
3805
- | ReadonlyArray<GuildStickerResponse | StandardStickerResponse>
3806
- | undefined
3702
+ ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined
3807
3703
  readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined
3808
3704
  readonly id: SnowflakeType
3809
3705
  readonly channel_id: SnowflakeType
@@ -3821,11 +3717,9 @@ export interface MessageResponse {
3821
3717
  readonly message_reference?: MessageReferenceResponse | undefined
3822
3718
  readonly thread?: ThreadResponse | undefined
3823
3719
  readonly mention_channels?:
3824
- | ReadonlyArray<MessageMentionChannelResponse>
3825
- | undefined
3720
+ ReadonlyArray<MessageMentionChannelResponse> | undefined
3826
3721
  readonly role_subscription_data?:
3827
- | MessageRoleSubscriptionDataResponse
3828
- | undefined
3722
+ MessageRoleSubscriptionDataResponse | undefined
3829
3723
  readonly purchase_notification?: PurchaseNotificationResponse | undefined
3830
3724
  readonly position?: number | undefined
3831
3725
  readonly resolved?: ResolvedObjectsResponse | undefined
@@ -3837,14 +3731,13 @@ export interface MessageResponse {
3837
3731
  | ModalSubmitInteractionMetadataResponse
3838
3732
  | undefined
3839
3733
  readonly message_snapshots?:
3840
- | ReadonlyArray<MessageSnapshotResponse>
3841
- | undefined
3734
+ ReadonlyArray<MessageSnapshotResponse> | undefined
3842
3735
  readonly lobby_member?: MessageLobbyMemberResponse | undefined
3843
3736
  readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined
3844
3737
  readonly referenced_message?: BasicMessageResponse | null | undefined
3845
3738
  }
3846
3739
 
3847
- export type ListMessages200 = ReadonlyArray<MessageResponse>
3740
+ export type ListMessages200 = ReadonlyArray<MessageResponse> | null
3848
3741
 
3849
3742
  export interface RichEmbedAuthor {
3850
3743
  readonly name?: string | null | undefined
@@ -3970,9 +3863,7 @@ export interface ChannelSelectComponentForMessageRequest {
3970
3863
  readonly disabled?: boolean | null | undefined
3971
3864
  readonly required?: boolean | null | undefined
3972
3865
  readonly default_values?:
3973
- | ReadonlyArray<ChannelSelectDefaultValue>
3974
- | null
3975
- | undefined
3866
+ ReadonlyArray<ChannelSelectDefaultValue> | null | undefined
3976
3867
  readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined
3977
3868
  }
3978
3869
 
@@ -4011,9 +3902,7 @@ export interface RoleSelectComponentForMessageRequest {
4011
3902
  readonly disabled?: boolean | null | undefined
4012
3903
  readonly required?: boolean | null | undefined
4013
3904
  readonly default_values?:
4014
- | ReadonlyArray<RoleSelectDefaultValue>
4015
- | null
4016
- | undefined
3905
+ ReadonlyArray<RoleSelectDefaultValue> | null | undefined
4017
3906
  }
4018
3907
 
4019
3908
  export interface StringSelectOptionForRequest {
@@ -4046,9 +3935,7 @@ export interface UserSelectComponentForMessageRequest {
4046
3935
  readonly disabled?: boolean | null | undefined
4047
3936
  readonly required?: boolean | null | undefined
4048
3937
  readonly default_values?:
4049
- | ReadonlyArray<UserSelectDefaultValue>
4050
- | null
4051
- | undefined
3938
+ ReadonlyArray<UserSelectDefaultValue> | null | undefined
4052
3939
  }
4053
3940
 
4054
3941
  export interface ActionRowComponentForMessageRequest {
@@ -4110,8 +3997,7 @@ export interface SectionComponentForMessageRequest {
4110
3997
  readonly id?: number | null | undefined
4111
3998
  readonly components: ReadonlyArray<TextDisplayComponentForMessageRequest>
4112
3999
  readonly accessory:
4113
- | ButtonComponentForMessageRequest
4114
- | ThumbnailComponentForMessageRequest
4000
+ ButtonComponentForMessageRequest | ThumbnailComponentForMessageRequest
4115
4001
  }
4116
4002
 
4117
4003
  export interface SeparatorComponentForMessageRequest {
@@ -4144,7 +4030,6 @@ export interface MessageAttachmentRequest {
4144
4030
  readonly waveform?: string | null | undefined
4145
4031
  readonly title?: string | null | undefined
4146
4032
  readonly is_spoiler?: boolean | null | undefined
4147
- readonly is_remix?: boolean | null | undefined
4148
4033
  }
4149
4034
 
4150
4035
  export interface PollEmoji {
@@ -4263,14 +4148,10 @@ export interface MessageCreateRequest {
4263
4148
  | undefined
4264
4149
  readonly flags?: number | null | undefined
4265
4150
  readonly attachments?:
4266
- | ReadonlyArray<MessageAttachmentRequest>
4267
- | null
4268
- | undefined
4151
+ ReadonlyArray<MessageAttachmentRequest> | null | undefined
4269
4152
  readonly poll?: PollCreateRequest | null | undefined
4270
4153
  readonly shared_client_theme?:
4271
- | CustomClientThemeShareRequest
4272
- | null
4273
- | undefined
4154
+ CustomClientThemeShareRequest | null | undefined
4274
4155
  readonly message_reference?: MessageReferenceRequest | null | undefined
4275
4156
  readonly nonce?: number | string | null | undefined
4276
4157
  readonly enforce_nonce?: boolean | null | undefined
@@ -4315,9 +4196,7 @@ export interface MessageEditRequestPartial {
4315
4196
  | null
4316
4197
  | undefined
4317
4198
  readonly attachments?:
4318
- | ReadonlyArray<MessageAttachmentRequest>
4319
- | null
4320
- | undefined
4199
+ ReadonlyArray<MessageAttachmentRequest> | null | undefined
4321
4200
  }
4322
4201
 
4323
4202
  export const ReactionTypes = {
@@ -4352,7 +4231,7 @@ export interface SetChannelPermissionOverwriteRequest {
4352
4231
  readonly deny?: number | null | undefined
4353
4232
  }
4354
4233
 
4355
- export type DeprecatedListPins200 = ReadonlyArray<MessageResponse>
4234
+ export type DeprecatedListPins200 = ReadonlyArray<MessageResponse> | null
4356
4235
 
4357
4236
  export interface GetAnswerVotersParams {
4358
4237
  readonly after?: SnowflakeType | undefined
@@ -4369,8 +4248,7 @@ export interface AddGroupDmUserRequest {
4369
4248
  }
4370
4249
 
4371
4250
  export type AddGroupDmUser201 =
4372
- | PrivateChannelResponse
4373
- | PrivateGroupChannelResponse
4251
+ PrivateChannelResponse | PrivateGroupChannelResponse
4374
4252
 
4375
4253
  export interface SoundboardSoundSendRequest {
4376
4254
  readonly sound_id: SnowflakeType
@@ -4408,14 +4286,10 @@ export interface BaseCreateMessageCreateRequest {
4408
4286
  | undefined
4409
4287
  readonly flags?: number | null | undefined
4410
4288
  readonly attachments?:
4411
- | ReadonlyArray<MessageAttachmentRequest>
4412
- | null
4413
- | undefined
4289
+ ReadonlyArray<MessageAttachmentRequest> | null | undefined
4414
4290
  readonly poll?: PollCreateRequest | null | undefined
4415
4291
  readonly shared_client_theme?:
4416
- | CustomClientThemeShareRequest
4417
- | null
4418
- | undefined
4292
+ CustomClientThemeShareRequest | null | undefined
4419
4293
  }
4420
4294
 
4421
4295
  export interface CreateForumThreadRequest {
@@ -4435,8 +4309,7 @@ export interface CreateTextThreadWithoutMessageRequest {
4435
4309
  }
4436
4310
 
4437
4311
  export type CreateThreadRequest =
4438
- | CreateForumThreadRequest
4439
- | CreateTextThreadWithoutMessageRequest
4312
+ CreateForumThreadRequest | CreateTextThreadWithoutMessageRequest
4440
4313
 
4441
4314
  export interface CreatedThreadResponse {
4442
4315
  readonly id: SnowflakeType
@@ -4605,7 +4478,7 @@ export type ListChannelWebhooks200 = ReadonlyArray<
4605
4478
  | ApplicationIncomingWebhookResponse
4606
4479
  | ChannelFollowerWebhookResponse
4607
4480
  | GuildIncomingWebhookResponse
4608
- >
4481
+ > | null
4609
4482
 
4610
4483
  export interface CreateWebhookRequest {
4611
4484
  readonly name: string
@@ -4998,9 +4871,7 @@ export interface GuildWithCountsResponse {
4998
4871
  readonly public_updates_channel_id: SnowflakeType | null
4999
4872
  readonly premium_progress_bar_enabled: boolean
5000
4873
  readonly premium_progress_bar_enabled_user_updated_at?:
5001
- | string
5002
- | null
5003
- | undefined
4874
+ string | null | undefined
5004
4875
  readonly nsfw: boolean
5005
4876
  readonly nsfw_level: GuildNSFWContentLevel
5006
4877
  readonly emojis: ReadonlyArray<EmojiResponse>
@@ -5017,13 +4888,9 @@ export interface GuildPatchRequestPartial {
5017
4888
  readonly icon?: string | null | undefined
5018
4889
  readonly verification_level?: VerificationLevels | null | undefined
5019
4890
  readonly default_message_notifications?:
5020
- | UserNotificationSettings
5021
- | null
5022
- | undefined
4891
+ UserNotificationSettings | null | undefined
5023
4892
  readonly explicit_content_filter?:
5024
- | GuildExplicitContentFilterTypes
5025
- | null
5026
- | undefined
4893
+ GuildExplicitContentFilterTypes | null | undefined
5027
4894
  readonly preferred_locale?: AvailableLocalesEnum | null | undefined
5028
4895
  readonly afk_timeout?: AfkTimeouts | null | undefined
5029
4896
  readonly afk_channel_id?: SnowflakeType | null | undefined
@@ -5031,7 +4898,7 @@ export interface GuildPatchRequestPartial {
5031
4898
  readonly splash?: string | null | undefined
5032
4899
  readonly banner?: string | null | undefined
5033
4900
  readonly system_channel_flags?: number | null | undefined
5034
- readonly features?: ReadonlyArray<string> | null | undefined
4901
+ readonly features?: ReadonlyArray<string | null> | null | undefined
5035
4902
  readonly discovery_splash?: string | null | undefined
5036
4903
  readonly home_header?: string | null | undefined
5037
4904
  readonly rules_channel_id?: SnowflakeType | null | undefined
@@ -5077,9 +4944,7 @@ export interface GuildResponse {
5077
4944
  readonly public_updates_channel_id: SnowflakeType | null
5078
4945
  readonly premium_progress_bar_enabled: boolean
5079
4946
  readonly premium_progress_bar_enabled_user_updated_at?:
5080
- | string
5081
- | null
5082
- | undefined
4947
+ string | null | undefined
5083
4948
  readonly nsfw: boolean
5084
4949
  readonly nsfw_level: GuildNSFWContentLevel
5085
4950
  readonly emojis: ReadonlyArray<EmojiResponse>
@@ -5723,7 +5588,7 @@ export type ListAutoModerationRules200 = ReadonlyArray<
5723
5588
  | MentionSpamRuleResponse
5724
5589
  | UserProfileRuleResponse
5725
5590
  | null
5726
- >
5591
+ > | null
5727
5592
 
5728
5593
  export interface BlockMessageActionMetadata {
5729
5594
  readonly custom_message?: string | null | undefined
@@ -6019,7 +5884,7 @@ export interface GuildBanResponse {
6019
5884
  readonly reason: string | null
6020
5885
  }
6021
5886
 
6022
- export type ListGuildBans200 = ReadonlyArray<GuildBanResponse>
5887
+ export type ListGuildBans200 = ReadonlyArray<GuildBanResponse> | null
6023
5888
 
6024
5889
  export interface BanUserFromGuildRequest {
6025
5890
  readonly delete_message_seconds?: number | null | undefined
@@ -6043,7 +5908,7 @@ export type ListGuildChannels200 = ReadonlyArray<
6043
5908
  | PrivateChannelResponse
6044
5909
  | PrivateGroupChannelResponse
6045
5910
  | ThreadResponse
6046
- >
5911
+ > | null
6047
5912
 
6048
5913
  export interface CreateOrUpdateThreadTagRequest {
6049
5914
  readonly name: string
@@ -6063,27 +5928,19 @@ export interface CreateGuildChannelRequest {
6063
5928
  readonly rate_limit_per_user?: number | null | undefined
6064
5929
  readonly parent_id?: SnowflakeType | null | undefined
6065
5930
  readonly permission_overwrites?:
6066
- | ReadonlyArray<ChannelPermissionOverwriteRequest>
6067
- | null
6068
- | undefined
5931
+ ReadonlyArray<ChannelPermissionOverwriteRequest> | null | undefined
6069
5932
  readonly rtc_region?: string | null | undefined
6070
5933
  readonly video_quality_mode?: VideoQualityModes | null | undefined
6071
5934
  readonly default_auto_archive_duration?:
6072
- | ThreadAutoArchiveDuration
6073
- | null
6074
- | undefined
5935
+ ThreadAutoArchiveDuration | null | undefined
6075
5936
  readonly default_reaction_emoji?:
6076
- | UpdateDefaultReactionEmojiRequest
6077
- | null
6078
- | undefined
5937
+ UpdateDefaultReactionEmojiRequest | null | undefined
6079
5938
  readonly default_thread_rate_limit_per_user?: number | null | undefined
6080
5939
  readonly default_sort_order?: ThreadSortOrder | null | undefined
6081
5940
  readonly default_forum_layout?: ForumLayout | null | undefined
6082
5941
  readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
6083
5942
  readonly available_tags?:
6084
- | ReadonlyArray<null | CreateOrUpdateThreadTagRequest>
6085
- | null
6086
- | undefined
5943
+ ReadonlyArray<null | CreateOrUpdateThreadTagRequest> | null | undefined
6087
5944
  }
6088
5945
 
6089
5946
  export type BulkUpdateGuildChannelsRequest = ReadonlyArray<{
@@ -6093,7 +5950,7 @@ export type BulkUpdateGuildChannelsRequest = ReadonlyArray<{
6093
5950
  readonly lock_permissions?: boolean | null | undefined
6094
5951
  }>
6095
5952
 
6096
- export type ListGuildEmojis200 = ReadonlyArray<EmojiResponse>
5953
+ export type ListGuildEmojis200 = ReadonlyArray<EmojiResponse> | null
6097
5954
 
6098
5955
  export interface CreateGuildEmojiRequest {
6099
5956
  readonly name: string
@@ -6125,6 +5982,8 @@ export interface IntegrationApplicationResponse {
6125
5982
  readonly type: ApplicationTypes | null
6126
5983
  readonly cover_image?: string | undefined
6127
5984
  readonly primary_sku_id?: SnowflakeType | undefined
5985
+ readonly flags: number
5986
+ readonly flags_new: string
6128
5987
  readonly bot?: UserResponse | undefined
6129
5988
  }
6130
5989
 
@@ -6208,15 +6067,15 @@ export type ListGuildIntegrations200 = ReadonlyArray<
6208
6067
  | DiscordIntegrationResponse
6209
6068
  | ExternalConnectionIntegrationResponse
6210
6069
  | GuildSubscriptionIntegrationResponse
6211
- >
6070
+ > | null
6212
6071
 
6213
6072
  export type ListGuildInvites200 = ReadonlyArray<
6214
6073
  FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse | null
6215
- >
6074
+ > | null
6216
6075
 
6217
6076
  export interface ListGuildMembersParams {
6218
6077
  readonly limit?: number | undefined
6219
- readonly after?: number | undefined
6078
+ readonly after?: SnowflakeType | undefined
6220
6079
  }
6221
6080
 
6222
6081
  export type ListGuildMembers200 = ReadonlyArray<GuildMemberResponse>
@@ -6237,9 +6096,7 @@ export interface PrivateGuildMemberResponse {
6237
6096
  * data for the member's guild avatar decoration
6238
6097
  */
6239
6098
  readonly avatar_decoration_data?:
6240
- | UserAvatarDecorationResponse
6241
- | null
6242
- | undefined
6099
+ UserAvatarDecorationResponse | null | undefined
6243
6100
  /**
6244
6101
  * the member's guild banner hash
6245
6102
  */
@@ -6412,8 +6269,7 @@ export interface SearchMessageResponse {
6412
6269
  | TextDisplayComponentResponse
6413
6270
  >
6414
6271
  readonly stickers?:
6415
- | ReadonlyArray<GuildStickerResponse | StandardStickerResponse>
6416
- | undefined
6272
+ ReadonlyArray<GuildStickerResponse | StandardStickerResponse> | undefined
6417
6273
  readonly sticker_items?: ReadonlyArray<MessageStickerItemResponse> | undefined
6418
6274
  readonly id: SnowflakeType
6419
6275
  readonly channel_id: SnowflakeType
@@ -6431,11 +6287,9 @@ export interface SearchMessageResponse {
6431
6287
  readonly message_reference?: MessageReferenceResponse | undefined
6432
6288
  readonly thread?: ThreadResponse | undefined
6433
6289
  readonly mention_channels?:
6434
- | ReadonlyArray<MessageMentionChannelResponse>
6435
- | undefined
6290
+ ReadonlyArray<MessageMentionChannelResponse> | undefined
6436
6291
  readonly role_subscription_data?:
6437
- | MessageRoleSubscriptionDataResponse
6438
- | undefined
6292
+ MessageRoleSubscriptionDataResponse | undefined
6439
6293
  readonly purchase_notification?: PurchaseNotificationResponse | undefined
6440
6294
  readonly position?: number | undefined
6441
6295
  readonly resolved?: ResolvedObjectsResponse | undefined
@@ -6447,8 +6301,7 @@ export interface SearchMessageResponse {
6447
6301
  | ModalSubmitInteractionMetadataResponse
6448
6302
  | undefined
6449
6303
  readonly message_snapshots?:
6450
- | ReadonlyArray<MessageSnapshotResponse>
6451
- | undefined
6304
+ ReadonlyArray<MessageSnapshotResponse> | undefined
6452
6305
  readonly lobby_member?: MessageLobbyMemberResponse | undefined
6453
6306
  readonly reactions?: ReadonlyArray<MessageReactionResponse> | undefined
6454
6307
  readonly referenced_message?: BasicMessageResponse | null | undefined
@@ -6584,9 +6437,7 @@ export interface UpdateOnboardingPromptRequest {
6584
6437
 
6585
6438
  export interface UpdateGuildOnboardingRequest {
6586
6439
  readonly prompts?:
6587
- | ReadonlyArray<UpdateOnboardingPromptRequest>
6588
- | null
6589
- | undefined
6440
+ ReadonlyArray<UpdateOnboardingPromptRequest> | null | undefined
6590
6441
  readonly enabled?: boolean | null | undefined
6591
6442
  readonly default_channel_ids?: ReadonlyArray<SnowflakeType> | null | undefined
6592
6443
  readonly mode?: GuildOnboardingMode | null | undefined
@@ -6618,9 +6469,7 @@ export interface GuildPreviewResponse {
6618
6469
  export interface PreviewPruneGuildParams {
6619
6470
  readonly days?: number | undefined
6620
6471
  readonly include_roles?:
6621
- | string
6622
- | ReadonlyArray<null | SnowflakeType>
6623
- | undefined
6472
+ string | ReadonlyArray<null | SnowflakeType> | undefined
6624
6473
  }
6625
6474
 
6626
6475
  export interface GuildPruneResponse {
@@ -6631,10 +6480,7 @@ export interface PruneGuildRequest {
6631
6480
  readonly days?: number | null | undefined
6632
6481
  readonly compute_prune_count?: boolean | null | undefined
6633
6482
  readonly include_roles?:
6634
- | string
6635
- | ReadonlyArray<SnowflakeType>
6636
- | null
6637
- | undefined
6483
+ string | ReadonlyArray<SnowflakeType> | null | undefined
6638
6484
  }
6639
6485
 
6640
6486
  export interface VoiceRegionResponse {
@@ -6645,7 +6491,7 @@ export interface VoiceRegionResponse {
6645
6491
  readonly optimal: boolean
6646
6492
  }
6647
6493
 
6648
- export type ListGuildVoiceRegions200 = ReadonlyArray<VoiceRegionResponse>
6494
+ export type ListGuildVoiceRegions200 = ReadonlyArray<VoiceRegionResponse> | null
6649
6495
 
6650
6496
  export const GuildJoinRequestApplicationStatus = {
6651
6497
  /**
@@ -6834,8 +6680,7 @@ export interface GuildJoinRequestResponse {
6834
6680
  export interface GuildJoinRequestsListResponse {
6835
6681
  readonly total?: number | undefined
6836
6682
  readonly guild_join_requests?:
6837
- | ReadonlyArray<GuildJoinRequestResponse>
6838
- | undefined
6683
+ ReadonlyArray<GuildJoinRequestResponse> | undefined
6839
6684
  }
6840
6685
 
6841
6686
  export interface ActionGuildJoinRequestRequest {
@@ -6899,7 +6744,7 @@ export type ListGuildScheduledEvents200 = ReadonlyArray<
6899
6744
  | ExternalScheduledEventResponse
6900
6745
  | StageScheduledEventResponse
6901
6746
  | VoiceScheduledEventResponse
6902
- >
6747
+ > | null
6903
6748
 
6904
6749
  export interface ByNWeekday {
6905
6750
  /**
@@ -7133,12 +6978,11 @@ export interface ListGuildScheduledEventUsersParams {
7133
6978
  }
7134
6979
 
7135
6980
  export type ListGuildScheduledEventUsers200 =
7136
- ReadonlyArray<ScheduledEventUserResponse>
6981
+ ReadonlyArray<ScheduledEventUserResponse> | null
7137
6982
 
7138
6983
  export interface CountGuildScheduledEventUsersParams {
7139
6984
  readonly guild_scheduled_event_exception_ids?:
7140
- | ReadonlyArray<SnowflakeType>
7141
- | undefined
6985
+ ReadonlyArray<SnowflakeType> | undefined
7142
6986
  }
7143
6987
 
7144
6988
  export interface ScheduledEventUserCountResponse {
@@ -7160,7 +7004,7 @@ export interface ListGuildScheduledEventExceptionUsersParams {
7160
7004
  }
7161
7005
 
7162
7006
  export type ListGuildScheduledEventExceptionUsers200 =
7163
- ReadonlyArray<ScheduledEventUserResponse>
7007
+ ReadonlyArray<ScheduledEventUserResponse> | null
7164
7008
 
7165
7009
  export interface SoundboardSoundResponse {
7166
7010
  readonly name: string
@@ -7207,7 +7051,7 @@ export interface UpdateGuildStickerRequest {
7207
7051
  readonly description?: string | null | undefined
7208
7052
  }
7209
7053
 
7210
- export type ListGuildTemplates200 = ReadonlyArray<GuildTemplateResponse>
7054
+ export type ListGuildTemplates200 = ReadonlyArray<GuildTemplateResponse> | null
7211
7055
 
7212
7056
  export interface CreateGuildTemplateRequest {
7213
7057
  readonly name: string
@@ -7261,7 +7105,7 @@ export type GetGuildWebhooks200 = ReadonlyArray<
7261
7105
  | ApplicationIncomingWebhookResponse
7262
7106
  | ChannelFollowerWebhookResponse
7263
7107
  | GuildIncomingWebhookResponse
7264
- >
7108
+ > | null
7265
7109
 
7266
7110
  export interface GuildWelcomeScreenChannelResponse {
7267
7111
  readonly channel_id: SnowflakeType
@@ -7285,9 +7129,7 @@ export interface GuildWelcomeChannel {
7285
7129
  export interface WelcomeScreenPatchRequestPartial {
7286
7130
  readonly description?: string | null | undefined
7287
7131
  readonly welcome_channels?:
7288
- | ReadonlyArray<GuildWelcomeChannel>
7289
- | null
7290
- | undefined
7132
+ ReadonlyArray<GuildWelcomeChannel> | null | undefined
7291
7133
  readonly enabled?: boolean | null | undefined
7292
7134
  }
7293
7135
 
@@ -7431,9 +7273,7 @@ export interface IncomingWebhookInteractionRequest {
7431
7273
  | null
7432
7274
  | undefined
7433
7275
  readonly attachments?:
7434
- | ReadonlyArray<MessageAttachmentRequest>
7435
- | null
7436
- | undefined
7276
+ ReadonlyArray<MessageAttachmentRequest> | null | undefined
7437
7277
  readonly poll?: PollCreateRequest | null | undefined
7438
7278
  readonly tts?: boolean | null | undefined
7439
7279
  readonly flags?: number | null | undefined
@@ -7477,9 +7317,7 @@ export interface ChannelSelectComponentForModalRequest {
7477
7317
  readonly disabled?: boolean | null | undefined
7478
7318
  readonly required?: boolean | null | undefined
7479
7319
  readonly default_values?:
7480
- | ReadonlyArray<ChannelSelectDefaultValue>
7481
- | null
7482
- | undefined
7320
+ ReadonlyArray<ChannelSelectDefaultValue> | null | undefined
7483
7321
  readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined
7484
7322
  }
7485
7323
 
@@ -7514,6 +7352,7 @@ export interface FileUploadComponentForModalRequest {
7514
7352
  readonly min_values?: number | null | undefined
7515
7353
  readonly max_values?: number | null | undefined
7516
7354
  readonly required?: boolean | null | undefined
7355
+ readonly file_types?: ReadonlyArray<string> | null | undefined
7517
7356
  }
7518
7357
 
7519
7358
  export interface MentionableSelectComponentForModalRequest {
@@ -7556,9 +7395,7 @@ export interface RoleSelectComponentForModalRequest {
7556
7395
  readonly disabled?: boolean | null | undefined
7557
7396
  readonly required?: boolean | null | undefined
7558
7397
  readonly default_values?:
7559
- | ReadonlyArray<RoleSelectDefaultValue>
7560
- | null
7561
- | undefined
7398
+ ReadonlyArray<RoleSelectDefaultValue> | null | undefined
7562
7399
  }
7563
7400
 
7564
7401
  export interface StringSelectComponentForModalRequest {
@@ -7583,9 +7420,7 @@ export interface UserSelectComponentForModalRequest {
7583
7420
  readonly disabled?: boolean | null | undefined
7584
7421
  readonly required?: boolean | null | undefined
7585
7422
  readonly default_values?:
7586
- | ReadonlyArray<UserSelectDefaultValue>
7587
- | null
7588
- | undefined
7423
+ ReadonlyArray<UserSelectDefaultValue> | null | undefined
7589
7424
  }
7590
7425
 
7591
7426
  export interface LabelComponentForModalRequest {
@@ -7676,18 +7511,14 @@ export interface IncomingWebhookUpdateForInteractionCallbackRequestPartial {
7676
7511
  | null
7677
7512
  | undefined
7678
7513
  readonly attachments?:
7679
- | ReadonlyArray<MessageAttachmentRequest>
7680
- | null
7681
- | undefined
7514
+ ReadonlyArray<MessageAttachmentRequest> | null | undefined
7682
7515
  readonly flags?: number | null | undefined
7683
7516
  }
7684
7517
 
7685
7518
  export interface UpdateMessageInteractionCallbackRequest {
7686
7519
  readonly type: 6 | 7
7687
7520
  readonly data?:
7688
- | IncomingWebhookUpdateForInteractionCallbackRequestPartial
7689
- | null
7690
- | undefined
7521
+ IncomingWebhookUpdateForInteractionCallbackRequestPartial | null | undefined
7691
7522
  }
7692
7523
 
7693
7524
  export type CreateInteractionResponseRequest =
@@ -7746,19 +7577,29 @@ export interface InviteResolveParams {
7746
7577
  }
7747
7578
 
7748
7579
  export type InviteResolve200 =
7749
- | FriendInviteResponse
7750
- | GroupDMInviteResponse
7751
- | GuildInviteResponse
7580
+ FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse
7752
7581
 
7753
7582
  export type InviteRevoke200 =
7754
- | FriendInviteResponse
7755
- | GroupDMInviteResponse
7756
- | GuildInviteResponse
7583
+ FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse
7757
7584
 
7758
7585
  export interface UpdateInviteTargetUsersRequest {
7759
7586
  readonly target_users_file: Blob
7760
7587
  }
7761
7588
 
7589
+ export interface BulkAddInviteTargetUsersRequest {
7590
+ /**
7591
+ * The IDs of the users to target.
7592
+ */
7593
+ readonly user_ids: ReadonlyArray<SnowflakeType>
7594
+ }
7595
+
7596
+ export interface BulkRemoveInviteTargetUsersRequest {
7597
+ /**
7598
+ * The IDs of the users to stop targeting.
7599
+ */
7600
+ readonly user_ids: ReadonlyArray<SnowflakeType>
7601
+ }
7602
+
7762
7603
  export const TargetUsersJobStatusTypes = {
7763
7604
  /**
7764
7605
  * The default value.
@@ -7840,6 +7681,7 @@ export interface LobbyMemberRequest {
7840
7681
  readonly id: SnowflakeType
7841
7682
  readonly metadata?: Record<string, unknown> | null | undefined
7842
7683
  readonly flags?: LobbyMemberRequestFlagsEnum | null | undefined
7684
+ readonly additional_name?: string | null | undefined
7843
7685
  }
7844
7686
 
7845
7687
  export type CreateLobbyRequestFlagsEnum = 1
@@ -7876,14 +7718,15 @@ export interface BulkLobbyMemberRequest {
7876
7718
  readonly id: SnowflakeType
7877
7719
  readonly metadata?: Record<string, unknown> | null | undefined
7878
7720
  readonly flags?: BulkLobbyMemberRequestFlagsEnum | null | undefined
7879
- readonly remove_member?: boolean | null | undefined
7880
7721
  readonly additional_name?: string | null | undefined
7722
+ readonly remove_member?: boolean | null | undefined
7881
7723
  }
7882
7724
 
7883
7725
  export type BulkUpdateLobbyMembersRequest =
7884
- ReadonlyArray<BulkLobbyMemberRequest>
7726
+ ReadonlyArray<BulkLobbyMemberRequest> | null
7885
7727
 
7886
- export type BulkUpdateLobbyMembers200 = ReadonlyArray<LobbyMemberResponse>
7728
+ export type BulkUpdateLobbyMembers200 =
7729
+ ReadonlyArray<LobbyMemberResponse> | null
7887
7730
 
7888
7731
  export type AddLobbyMemberRequestFlagsEnum = 1
7889
7732
 
@@ -7911,7 +7754,7 @@ export interface LobbyMessageResponse {
7911
7754
  readonly application_id?: SnowflakeType | undefined
7912
7755
  }
7913
7756
 
7914
- export type GetLobbyMessages200 = ReadonlyArray<LobbyMessageResponse>
7757
+ export type GetLobbyMessages200 = ReadonlyArray<LobbyMessageResponse> | null
7915
7758
 
7916
7759
  export interface SDKMessageRequest {
7917
7760
  readonly content?: string | null | undefined
@@ -7932,14 +7775,10 @@ export interface SDKMessageRequest {
7932
7775
  | undefined
7933
7776
  readonly flags?: number | null | undefined
7934
7777
  readonly attachments?:
7935
- | ReadonlyArray<MessageAttachmentRequest>
7936
- | null
7937
- | undefined
7778
+ ReadonlyArray<MessageAttachmentRequest> | null | undefined
7938
7779
  readonly poll?: PollCreateRequest | null | undefined
7939
7780
  readonly shared_client_theme?:
7940
- | CustomClientThemeShareRequest
7941
- | null
7942
- | undefined
7781
+ CustomClientThemeShareRequest | null | undefined
7943
7782
  readonly message_reference?: MessageReferenceRequest | null | undefined
7944
7783
  readonly nonce?: number | string | null | undefined
7945
7784
  readonly enforce_nonce?: boolean | null | undefined
@@ -8237,9 +8076,7 @@ export interface UserPIIResponse {
8237
8076
  * data for the user's avatar decoration
8238
8077
  */
8239
8078
  readonly avatar_decoration_data?:
8240
- | UserAvatarDecorationResponse
8241
- | null
8242
- | undefined
8079
+ UserAvatarDecorationResponse | null | undefined
8243
8080
  /**
8244
8081
  * data for the user's collectibles
8245
8082
  */
@@ -8341,8 +8178,7 @@ export interface ConnectedAccountResponse {
8341
8178
  readonly type: ConnectedAccountProviders
8342
8179
  readonly friend_sync: boolean
8343
8180
  readonly integrations?:
8344
- | ReadonlyArray<ConnectedAccountIntegrationResponse>
8345
- | undefined
8181
+ ReadonlyArray<ConnectedAccountIntegrationResponse> | undefined
8346
8182
  readonly show_activity: boolean
8347
8183
  readonly two_way_link: boolean
8348
8184
  readonly verified: boolean
@@ -8350,12 +8186,14 @@ export interface ConnectedAccountResponse {
8350
8186
  readonly revoked?: boolean | undefined
8351
8187
  }
8352
8188
 
8353
- export type ListMyConnections200 = ReadonlyArray<ConnectedAccountResponse>
8189
+ export type ListMyConnections200 =
8190
+ ReadonlyArray<ConnectedAccountResponse> | null
8354
8191
 
8355
8192
  export interface ListMyGuildsParams {
8356
8193
  readonly before?: SnowflakeType | undefined
8357
8194
  readonly after?: SnowflakeType | undefined
8358
8195
  readonly limit?: number | undefined
8196
+ readonly shard?: number | undefined
8359
8197
  readonly with_counts?: boolean | undefined
8360
8198
  }
8361
8199
 
@@ -8371,9 +8209,9 @@ export interface MyGuildResponse {
8371
8209
  readonly approximate_presence_count?: number | null | undefined
8372
8210
  }
8373
8211
 
8374
- export type ListMyGuilds200 = ReadonlyArray<MyGuildResponse>
8212
+ export type ListMyGuilds200 = ReadonlyArray<MyGuildResponse> | null
8375
8213
 
8376
- export type ListVoiceRegions200 = ReadonlyArray<VoiceRegionResponse>
8214
+ export type ListVoiceRegions200 = ReadonlyArray<VoiceRegionResponse> | null
8377
8215
 
8378
8216
  export type GetWebhook200 =
8379
8217
  | ApplicationIncomingWebhookResponse
@@ -8419,9 +8257,7 @@ export interface IncomingWebhookRequestPartial {
8419
8257
  | null
8420
8258
  | undefined
8421
8259
  readonly attachments?:
8422
- | ReadonlyArray<MessageAttachmentRequest>
8423
- | null
8424
- | undefined
8260
+ ReadonlyArray<MessageAttachmentRequest> | null | undefined
8425
8261
  readonly poll?: PollCreateRequest | null | undefined
8426
8262
  readonly tts?: boolean | null | undefined
8427
8263
  readonly flags?: number | null | undefined
@@ -8448,16 +8284,13 @@ export interface IncomingWebhookUpdateRequestPartial {
8448
8284
  | null
8449
8285
  | undefined
8450
8286
  readonly attachments?:
8451
- | ReadonlyArray<MessageAttachmentRequest>
8452
- | null
8453
- | undefined
8287
+ ReadonlyArray<MessageAttachmentRequest> | null | undefined
8454
8288
  readonly poll?: PollCreateRequest | null | undefined
8455
8289
  readonly flags?: number | null | undefined
8456
8290
  }
8457
8291
 
8458
8292
  export type ExecuteWebhookRequest =
8459
- | IncomingWebhookRequestPartial
8460
- | IncomingWebhookUpdateRequestPartial
8293
+ IncomingWebhookRequestPartial | IncomingWebhookUpdateRequestPartial
8461
8294
 
8462
8295
  export interface UpdateWebhookByTokenRequest {
8463
8296
  readonly name?: string | undefined
@@ -8544,9 +8377,7 @@ export interface GithubCheckSuite {
8544
8377
  readonly head_branch?: string | null | undefined
8545
8378
  readonly head_sha: string
8546
8379
  readonly pull_requests?:
8547
- | ReadonlyArray<GithubCheckPullRequest>
8548
- | null
8549
- | undefined
8380
+ ReadonlyArray<GithubCheckPullRequest> | null | undefined
8550
8381
  readonly app: GithubCheckApp
8551
8382
  }
8552
8383
 
@@ -8563,9 +8394,7 @@ export interface GithubCheckRun {
8563
8394
  readonly details_url?: string | null | undefined
8564
8395
  readonly output?: GithubCheckRunOutput | null | undefined
8565
8396
  readonly pull_requests?:
8566
- | ReadonlyArray<GithubCheckPullRequest>
8567
- | null
8568
- | undefined
8397
+ ReadonlyArray<GithubCheckPullRequest> | null | undefined
8569
8398
  }
8570
8399
 
8571
8400
  export interface GithubDiscussion {
@@ -8661,7 +8490,7 @@ export interface SlackWebhook {
8661
8490
  readonly attachments?: ReadonlyArray<WebhookSlackEmbed> | null | undefined
8662
8491
  }
8663
8492
 
8664
- export type ExecuteSlackCompatibleWebhook200 = string
8493
+ export type ExecuteSlackCompatibleWebhook200 = string | null
8665
8494
 
8666
8495
  export const make = (
8667
8496
  httpClient: HttpClient.HttpClient,
@@ -8690,14 +8519,15 @@ export const make = (
8690
8519
  }),
8691
8520
  ),
8692
8521
  )
8522
+ const transformClient = options.transformClient
8693
8523
  const withResponse: <A, E>(
8694
8524
  f: (response: HttpClientResponse.HttpClientResponse) => Effect.Effect<A, E>,
8695
8525
  ) => (
8696
8526
  request: HttpClientRequest.HttpClientRequest,
8697
- ) => Effect.Effect<any, any> = options.transformClient
8527
+ ) => Effect.Effect<any, any> = transformClient
8698
8528
  ? f => request =>
8699
8529
  Effect.flatMap(
8700
- Effect.flatMap(options.transformClient!(httpClient), client =>
8530
+ Effect.flatMap(transformClient(httpClient), client =>
8701
8531
  client.execute(request),
8702
8532
  ),
8703
8533
  f,
@@ -10255,6 +10085,16 @@ export const make = (
10255
10085
  HttpClientRequest.bodyFormDataRecord(options as any),
10256
10086
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
10257
10087
  ),
10088
+ bulkAddInviteTargetUsers: (code, options) =>
10089
+ HttpClientRequest.post(`/invites/${code}/target-users/bulk-add`).pipe(
10090
+ HttpClientRequest.bodyJsonUnsafe(options),
10091
+ onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
10092
+ ),
10093
+ bulkRemoveInviteTargetUsers: (code, options) =>
10094
+ HttpClientRequest.post(`/invites/${code}/target-users/bulk-delete`).pipe(
10095
+ HttpClientRequest.bodyJsonUnsafe(options),
10096
+ onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
10097
+ ),
10258
10098
  getInviteTargetUsersJobStatus: code =>
10259
10099
  HttpClientRequest.get(`/invites/${code}/target-users/job-status`).pipe(
10260
10100
  onRequest(["2xx"], {
@@ -10262,6 +10102,14 @@ export const make = (
10262
10102
  "4xx": "ErrorResponse",
10263
10103
  }),
10264
10104
  ),
10105
+ addInviteTargetUser: (code, userId) =>
10106
+ HttpClientRequest.put(`/invites/${code}/target-users/${userId}`).pipe(
10107
+ onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
10108
+ ),
10109
+ removeInviteTargetUser: (code, userId) =>
10110
+ HttpClientRequest.delete(`/invites/${code}/target-users/${userId}`).pipe(
10111
+ onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
10112
+ ),
10265
10113
  createOrJoinLobby: options =>
10266
10114
  HttpClientRequest.put(`/lobbies`).pipe(
10267
10115
  HttpClientRequest.bodyJsonUnsafe(options),
@@ -10594,6 +10442,7 @@ export const make = (
10594
10442
  before: options?.["before"] as any,
10595
10443
  after: options?.["after"] as any,
10596
10444
  limit: options?.["limit"] as any,
10445
+ shard: options?.["shard"] as any,
10597
10446
  with_counts: options?.["with_counts"] as any,
10598
10447
  }),
10599
10448
  onRequest(["2xx"], {
@@ -12430,6 +12279,30 @@ export interface DiscordRest {
12430
12279
  | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
12431
12280
  | DiscordRestError<"ErrorResponse", ErrorResponse>
12432
12281
  >
12282
+ /**
12283
+ * Add multiple target users to an existing invite.
12284
+ */
12285
+ readonly bulkAddInviteTargetUsers: (
12286
+ code: string,
12287
+ options: BulkAddInviteTargetUsersRequest,
12288
+ ) => Effect.Effect<
12289
+ void,
12290
+ | HttpClientError.HttpClientError
12291
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
12292
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
12293
+ >
12294
+ /**
12295
+ * Remove multiple target users from an existing invite.
12296
+ */
12297
+ readonly bulkRemoveInviteTargetUsers: (
12298
+ code: string,
12299
+ options: BulkRemoveInviteTargetUsersRequest,
12300
+ ) => Effect.Effect<
12301
+ void,
12302
+ | HttpClientError.HttpClientError
12303
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
12304
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
12305
+ >
12433
12306
  /**
12434
12307
  * Get the target users job status for an invite.
12435
12308
  */
@@ -12441,6 +12314,30 @@ export interface DiscordRest {
12441
12314
  | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
12442
12315
  | DiscordRestError<"ErrorResponse", ErrorResponse>
12443
12316
  >
12317
+ /**
12318
+ * Add a target user to an existing invite.
12319
+ */
12320
+ readonly addInviteTargetUser: (
12321
+ code: string,
12322
+ userId: string,
12323
+ ) => Effect.Effect<
12324
+ void,
12325
+ | HttpClientError.HttpClientError
12326
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
12327
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
12328
+ >
12329
+ /**
12330
+ * Remove a target user from an existing invite.
12331
+ */
12332
+ readonly removeInviteTargetUser: (
12333
+ code: string,
12334
+ userId: string,
12335
+ ) => Effect.Effect<
12336
+ void,
12337
+ | HttpClientError.HttpClientError
12338
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
12339
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
12340
+ >
12444
12341
  readonly createOrJoinLobby: (
12445
12342
  options: CreateOrJoinLobbyRequest,
12446
12343
  ) => Effect.Effect<
@@ -13012,7 +12909,7 @@ class DiscordRestErrorImpl extends Data.Error<{
13012
12909
  request: HttpClientRequest.HttpClientRequest
13013
12910
  response: HttpClientResponse.HttpClientResponse
13014
12911
  }> {
13015
- name = "DiscordRestError"
12912
+ override name = "DiscordRestError"
13016
12913
  }
13017
12914
 
13018
12915
  export const DiscordRestError = <Tag extends string, E>(