@discordjs/core 3.0.0-dev.1759363313-f510b5ffa → 3.0.0-dev.1759622511-ffbb7b693

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/index.js CHANGED
@@ -27,6 +27,7 @@ __export(index_exports, {
27
27
  ApplicationsAPI: () => ApplicationsAPI,
28
28
  ChannelsAPI: () => ChannelsAPI,
29
29
  Client: () => Client,
30
+ GatewayAPI: () => GatewayAPI,
30
31
  GuildsAPI: () => GuildsAPI,
31
32
  InteractionsAPI: () => InteractionsAPI,
32
33
  InvitesAPI: () => InvitesAPI,
@@ -899,9 +900,44 @@ var ChannelsAPI = class {
899
900
  }
900
901
  };
901
902
 
903
+ // src/api/gateway.ts
904
+ var import_v104 = require("discord-api-types/v10");
905
+ var GatewayAPI = class {
906
+ constructor(rest) {
907
+ this.rest = rest;
908
+ }
909
+ static {
910
+ __name(this, "GatewayAPI");
911
+ }
912
+ /**
913
+ * Gets gateway information.
914
+ *
915
+ * @see {@link https://discord.com/developers/docs/events/gateway#get-gateway}
916
+ * @param options - The options for fetching the gateway information
917
+ */
918
+ async get({ signal } = {}) {
919
+ return this.rest.get(import_v104.Routes.gateway(), {
920
+ auth: false,
921
+ signal
922
+ });
923
+ }
924
+ /**
925
+ * Gets gateway information with additional metadata.
926
+ *
927
+ * @see {@link https://discord.com/developers/docs/events/gateway#get-gateway-bot}
928
+ * @param options - The options for fetching the gateway information
929
+ */
930
+ async getBot({ auth, signal } = {}) {
931
+ return this.rest.get(import_v104.Routes.gatewayBot(), {
932
+ auth,
933
+ signal
934
+ });
935
+ }
936
+ };
937
+
902
938
  // src/api/guild.ts
903
939
  var import_rest3 = require("@discordjs/rest");
904
- var import_v104 = require("discord-api-types/v10");
940
+ var import_v105 = require("discord-api-types/v10");
905
941
  var GuildsAPI = class {
906
942
  constructor(rest) {
907
943
  this.rest = rest;
@@ -918,7 +954,7 @@ var GuildsAPI = class {
918
954
  * @param options - The options for fetching the guild
919
955
  */
920
956
  async get(guildId, query = {}, { auth, signal } = {}) {
921
- return this.rest.get(import_v104.Routes.guild(guildId), {
957
+ return this.rest.get(import_v105.Routes.guild(guildId), {
922
958
  auth,
923
959
  query: (0, import_rest3.makeURLSearchParams)(query),
924
960
  signal
@@ -932,7 +968,7 @@ var GuildsAPI = class {
932
968
  * @param options - The options for fetching the guild preview
933
969
  */
934
970
  async getPreview(guildId, { auth, signal } = {}) {
935
- return this.rest.get(import_v104.Routes.guildPreview(guildId), {
971
+ return this.rest.get(import_v105.Routes.guildPreview(guildId), {
936
972
  auth,
937
973
  signal
938
974
  });
@@ -946,7 +982,7 @@ var GuildsAPI = class {
946
982
  * @param options - The options for editing the guild
947
983
  */
948
984
  async edit(guildId, body, { auth, reason, signal } = {}) {
949
- return this.rest.patch(import_v104.Routes.guild(guildId), {
985
+ return this.rest.patch(import_v105.Routes.guild(guildId), {
950
986
  auth,
951
987
  reason,
952
988
  body,
@@ -963,7 +999,7 @@ var GuildsAPI = class {
963
999
  * @param options - The options for adding users to the guild
964
1000
  */
965
1001
  async addMember(guildId, userId, body, { auth, signal } = {}) {
966
- return this.rest.put(import_v104.Routes.guildMember(guildId, userId), {
1002
+ return this.rest.put(import_v105.Routes.guildMember(guildId, userId), {
967
1003
  auth,
968
1004
  body,
969
1005
  signal
@@ -978,7 +1014,7 @@ var GuildsAPI = class {
978
1014
  * @param options - The options for fetching the guild members
979
1015
  */
980
1016
  async getMembers(guildId, query = {}, { auth, signal } = {}) {
981
- return this.rest.get(import_v104.Routes.guildMembers(guildId), {
1017
+ return this.rest.get(import_v105.Routes.guildMembers(guildId), {
982
1018
  auth,
983
1019
  query: (0, import_rest3.makeURLSearchParams)(query),
984
1020
  signal
@@ -992,7 +1028,7 @@ var GuildsAPI = class {
992
1028
  * @param options - The options for fetching the guild channels
993
1029
  */
994
1030
  async getChannels(guildId, { auth, signal } = {}) {
995
- return this.rest.get(import_v104.Routes.guildChannels(guildId), {
1031
+ return this.rest.get(import_v105.Routes.guildChannels(guildId), {
996
1032
  auth,
997
1033
  signal
998
1034
  });
@@ -1006,7 +1042,7 @@ var GuildsAPI = class {
1006
1042
  * @param options - The options for creating the guild channel
1007
1043
  */
1008
1044
  async createChannel(guildId, body, { auth, reason, signal } = {}) {
1009
- return this.rest.post(import_v104.Routes.guildChannels(guildId), {
1045
+ return this.rest.post(import_v105.Routes.guildChannels(guildId), {
1010
1046
  auth,
1011
1047
  reason,
1012
1048
  body,
@@ -1022,7 +1058,7 @@ var GuildsAPI = class {
1022
1058
  * @param options - The options for editing the guild channel positions
1023
1059
  */
1024
1060
  async setChannelPositions(guildId, body, { auth, reason, signal } = {}) {
1025
- await this.rest.patch(import_v104.Routes.guildChannels(guildId), { auth, reason, body, signal });
1061
+ await this.rest.patch(import_v105.Routes.guildChannels(guildId), { auth, reason, body, signal });
1026
1062
  }
1027
1063
  /**
1028
1064
  * Fetches the active threads in a guild
@@ -1032,7 +1068,7 @@ var GuildsAPI = class {
1032
1068
  * @param options - The options for fetching the active threads
1033
1069
  */
1034
1070
  async getActiveThreads(guildId, { auth, signal } = {}) {
1035
- return this.rest.get(import_v104.Routes.guildActiveThreads(guildId), { auth, signal });
1071
+ return this.rest.get(import_v105.Routes.guildActiveThreads(guildId), { auth, signal });
1036
1072
  }
1037
1073
  /**
1038
1074
  * Fetches a guild member ban
@@ -1043,7 +1079,7 @@ var GuildsAPI = class {
1043
1079
  * @param options - The options for fetching the ban
1044
1080
  */
1045
1081
  async getMemberBan(guildId, userId, { auth, signal } = {}) {
1046
- return this.rest.get(import_v104.Routes.guildBan(guildId, userId), { auth, signal });
1082
+ return this.rest.get(import_v105.Routes.guildBan(guildId, userId), { auth, signal });
1047
1083
  }
1048
1084
  /**
1049
1085
  * Fetches guild member bans
@@ -1054,7 +1090,7 @@ var GuildsAPI = class {
1054
1090
  * @param options - The options for fetching the bans
1055
1091
  */
1056
1092
  async getMemberBans(guildId, query = {}, { auth, signal } = {}) {
1057
- return this.rest.get(import_v104.Routes.guildBans(guildId), {
1093
+ return this.rest.get(import_v105.Routes.guildBans(guildId), {
1058
1094
  auth,
1059
1095
  query: (0, import_rest3.makeURLSearchParams)(query),
1060
1096
  signal
@@ -1070,7 +1106,7 @@ var GuildsAPI = class {
1070
1106
  * @param options - The options for banning the user
1071
1107
  */
1072
1108
  async banUser(guildId, userId, body = {}, { auth, reason, signal } = {}) {
1073
- await this.rest.put(import_v104.Routes.guildBan(guildId, userId), { auth, reason, body, signal });
1109
+ await this.rest.put(import_v105.Routes.guildBan(guildId, userId), { auth, reason, body, signal });
1074
1110
  }
1075
1111
  /**
1076
1112
  * Unbans a user from a guild
@@ -1081,7 +1117,7 @@ var GuildsAPI = class {
1081
1117
  * @param options - The options for unbanning the user
1082
1118
  */
1083
1119
  async unbanUser(guildId, userId, { auth, reason, signal } = {}) {
1084
- await this.rest.delete(import_v104.Routes.guildBan(guildId, userId), { auth, reason, signal });
1120
+ await this.rest.delete(import_v105.Routes.guildBan(guildId, userId), { auth, reason, signal });
1085
1121
  }
1086
1122
  /**
1087
1123
  * Bulk ban users from a guild
@@ -1092,7 +1128,7 @@ var GuildsAPI = class {
1092
1128
  * @param options - The options for bulk banning users
1093
1129
  */
1094
1130
  async bulkBanUsers(guildId, body, { auth, reason, signal } = {}) {
1095
- return this.rest.post(import_v104.Routes.guildBulkBan(guildId), {
1131
+ return this.rest.post(import_v105.Routes.guildBulkBan(guildId), {
1096
1132
  auth,
1097
1133
  reason,
1098
1134
  body,
@@ -1107,7 +1143,7 @@ var GuildsAPI = class {
1107
1143
  * @param options - The options for fetching the guild roles
1108
1144
  */
1109
1145
  async getRoles(guildId, { auth, signal } = {}) {
1110
- return this.rest.get(import_v104.Routes.guildRoles(guildId), { auth, signal });
1146
+ return this.rest.get(import_v105.Routes.guildRoles(guildId), { auth, signal });
1111
1147
  }
1112
1148
  /**
1113
1149
  * Get a role in a guild
@@ -1118,7 +1154,7 @@ var GuildsAPI = class {
1118
1154
  * @param options - The options for fetching the guild role
1119
1155
  */
1120
1156
  async getRole(guildId, roleId, { auth, signal } = {}) {
1121
- return this.rest.get(import_v104.Routes.guildRole(guildId, roleId), { auth, signal });
1157
+ return this.rest.get(import_v105.Routes.guildRole(guildId, roleId), { auth, signal });
1122
1158
  }
1123
1159
  /**
1124
1160
  * Creates a guild role
@@ -1129,7 +1165,7 @@ var GuildsAPI = class {
1129
1165
  * @param options - The options for creating the guild role
1130
1166
  */
1131
1167
  async createRole(guildId, body, { auth, reason, signal } = {}) {
1132
- return this.rest.post(import_v104.Routes.guildRoles(guildId), {
1168
+ return this.rest.post(import_v105.Routes.guildRoles(guildId), {
1133
1169
  auth,
1134
1170
  reason,
1135
1171
  body,
@@ -1145,7 +1181,7 @@ var GuildsAPI = class {
1145
1181
  * @param options - The options for setting role positions
1146
1182
  */
1147
1183
  async setRolePositions(guildId, body, { auth, reason, signal } = {}) {
1148
- return this.rest.patch(import_v104.Routes.guildRoles(guildId), {
1184
+ return this.rest.patch(import_v105.Routes.guildRoles(guildId), {
1149
1185
  auth,
1150
1186
  reason,
1151
1187
  body,
@@ -1162,7 +1198,7 @@ var GuildsAPI = class {
1162
1198
  * @param options - The options for editing the guild role
1163
1199
  */
1164
1200
  async editRole(guildId, roleId, body, { auth, reason, signal } = {}) {
1165
- return this.rest.patch(import_v104.Routes.guildRole(guildId, roleId), {
1201
+ return this.rest.patch(import_v105.Routes.guildRole(guildId, roleId), {
1166
1202
  auth,
1167
1203
  reason,
1168
1204
  body,
@@ -1178,7 +1214,7 @@ var GuildsAPI = class {
1178
1214
  * @param options - The options for deleting the guild role
1179
1215
  */
1180
1216
  async deleteRole(guildId, roleId, { auth, reason, signal } = {}) {
1181
- await this.rest.delete(import_v104.Routes.guildRole(guildId, roleId), { auth, reason, signal });
1217
+ await this.rest.delete(import_v105.Routes.guildRole(guildId, roleId), { auth, reason, signal });
1182
1218
  }
1183
1219
  /**
1184
1220
  * Fetch the number of members that can be pruned from a guild
@@ -1189,7 +1225,7 @@ var GuildsAPI = class {
1189
1225
  * @param options - The options for fetching the number of pruned members
1190
1226
  */
1191
1227
  async getPruneCount(guildId, query = {}, { auth, signal } = {}) {
1192
- return this.rest.get(import_v104.Routes.guildPrune(guildId), {
1228
+ return this.rest.get(import_v105.Routes.guildPrune(guildId), {
1193
1229
  auth,
1194
1230
  signal,
1195
1231
  query: (0, import_rest3.makeURLSearchParams)(query)
@@ -1204,7 +1240,7 @@ var GuildsAPI = class {
1204
1240
  * @param options - The options for initiating the prune
1205
1241
  */
1206
1242
  async beginPrune(guildId, body = {}, { auth, reason, signal } = {}) {
1207
- return this.rest.post(import_v104.Routes.guildPrune(guildId), {
1243
+ return this.rest.post(import_v105.Routes.guildPrune(guildId), {
1208
1244
  auth,
1209
1245
  body,
1210
1246
  reason,
@@ -1219,7 +1255,7 @@ var GuildsAPI = class {
1219
1255
  * @param options - The options for fetching the voice regions
1220
1256
  */
1221
1257
  async getVoiceRegions(guildId, { auth, signal } = {}) {
1222
- return this.rest.get(import_v104.Routes.guildVoiceRegions(guildId), {
1258
+ return this.rest.get(import_v105.Routes.guildVoiceRegions(guildId), {
1223
1259
  auth,
1224
1260
  signal
1225
1261
  });
@@ -1232,7 +1268,7 @@ var GuildsAPI = class {
1232
1268
  * @param options - The options for fetching the invites
1233
1269
  */
1234
1270
  async getInvites(guildId, { auth, signal } = {}) {
1235
- return this.rest.get(import_v104.Routes.guildInvites(guildId), { auth, signal });
1271
+ return this.rest.get(import_v105.Routes.guildInvites(guildId), { auth, signal });
1236
1272
  }
1237
1273
  /**
1238
1274
  * Fetches the integrations for a guild
@@ -1242,7 +1278,7 @@ var GuildsAPI = class {
1242
1278
  * @param options - The options for fetching the integrations
1243
1279
  */
1244
1280
  async getIntegrations(guildId, { auth, signal } = {}) {
1245
- return this.rest.get(import_v104.Routes.guildIntegrations(guildId), {
1281
+ return this.rest.get(import_v105.Routes.guildIntegrations(guildId), {
1246
1282
  auth,
1247
1283
  signal
1248
1284
  });
@@ -1256,7 +1292,7 @@ var GuildsAPI = class {
1256
1292
  * @param options - The options for deleting the integration
1257
1293
  */
1258
1294
  async deleteIntegration(guildId, integrationId, { auth, reason, signal } = {}) {
1259
- await this.rest.delete(import_v104.Routes.guildIntegration(guildId, integrationId), { auth, reason, signal });
1295
+ await this.rest.delete(import_v105.Routes.guildIntegration(guildId, integrationId), { auth, reason, signal });
1260
1296
  }
1261
1297
  /**
1262
1298
  * Fetches the widget settings for a guild
@@ -1266,7 +1302,7 @@ var GuildsAPI = class {
1266
1302
  * @param options - The options for fetching the widget settings
1267
1303
  */
1268
1304
  async getWidgetSettings(guildId, { auth, signal } = {}) {
1269
- return this.rest.get(import_v104.Routes.guildWidgetSettings(guildId), {
1305
+ return this.rest.get(import_v105.Routes.guildWidgetSettings(guildId), {
1270
1306
  auth,
1271
1307
  signal
1272
1308
  });
@@ -1280,7 +1316,7 @@ var GuildsAPI = class {
1280
1316
  * @param options - The options for editing the widget settings
1281
1317
  */
1282
1318
  async editWidgetSettings(guildId, body, { auth, reason, signal } = {}) {
1283
- return this.rest.patch(import_v104.Routes.guildWidgetSettings(guildId), {
1319
+ return this.rest.patch(import_v105.Routes.guildWidgetSettings(guildId), {
1284
1320
  auth,
1285
1321
  reason,
1286
1322
  body,
@@ -1295,7 +1331,7 @@ var GuildsAPI = class {
1295
1331
  * @param options - The options for fetching the widget
1296
1332
  */
1297
1333
  async getWidget(guildId, { auth, signal } = {}) {
1298
- return this.rest.get(import_v104.Routes.guildWidgetJSON(guildId), { auth, signal });
1334
+ return this.rest.get(import_v105.Routes.guildWidgetJSON(guildId), { auth, signal });
1299
1335
  }
1300
1336
  /**
1301
1337
  * Fetches the vanity url for a guild
@@ -1305,7 +1341,7 @@ var GuildsAPI = class {
1305
1341
  * @param options - The options for fetching the vanity url
1306
1342
  */
1307
1343
  async getVanityURL(guildId, { auth, signal } = {}) {
1308
- return this.rest.get(import_v104.Routes.guildVanityUrl(guildId), { auth, signal });
1344
+ return this.rest.get(import_v105.Routes.guildVanityUrl(guildId), { auth, signal });
1309
1345
  }
1310
1346
  /**
1311
1347
  * Fetches the widget image for a guild
@@ -1316,7 +1352,7 @@ var GuildsAPI = class {
1316
1352
  * @param options - The options for fetching the widget image
1317
1353
  */
1318
1354
  async getWidgetImage(guildId, style, { auth, signal } = {}) {
1319
- return this.rest.get(import_v104.Routes.guildWidgetImage(guildId), {
1355
+ return this.rest.get(import_v105.Routes.guildWidgetImage(guildId), {
1320
1356
  auth,
1321
1357
  query: (0, import_rest3.makeURLSearchParams)({ style }),
1322
1358
  signal
@@ -1330,7 +1366,7 @@ var GuildsAPI = class {
1330
1366
  * @param options - The options for fetching the welcome screen
1331
1367
  */
1332
1368
  async getWelcomeScreen(guildId, { auth, signal } = {}) {
1333
- return this.rest.get(import_v104.Routes.guildWelcomeScreen(guildId), {
1369
+ return this.rest.get(import_v105.Routes.guildWelcomeScreen(guildId), {
1334
1370
  auth,
1335
1371
  signal
1336
1372
  });
@@ -1344,7 +1380,7 @@ var GuildsAPI = class {
1344
1380
  * @param options - The options for editing the welcome screen
1345
1381
  */
1346
1382
  async editWelcomeScreen(guildId, body, { auth, reason, signal } = {}) {
1347
- return this.rest.patch(import_v104.Routes.guildWelcomeScreen(guildId), {
1383
+ return this.rest.patch(import_v105.Routes.guildWelcomeScreen(guildId), {
1348
1384
  auth,
1349
1385
  reason,
1350
1386
  body,
@@ -1359,7 +1395,7 @@ var GuildsAPI = class {
1359
1395
  * @param options - The options for fetching the emojis
1360
1396
  */
1361
1397
  async getEmojis(guildId, { auth, signal } = {}) {
1362
- return this.rest.get(import_v104.Routes.guildEmojis(guildId), { auth, signal });
1398
+ return this.rest.get(import_v105.Routes.guildEmojis(guildId), { auth, signal });
1363
1399
  }
1364
1400
  /**
1365
1401
  * Fetches an emoji for a guild
@@ -1370,7 +1406,7 @@ var GuildsAPI = class {
1370
1406
  * @param options - The options for fetching the emoji
1371
1407
  */
1372
1408
  async getEmoji(guildId, emojiId, { auth, signal } = {}) {
1373
- return this.rest.get(import_v104.Routes.guildEmoji(guildId, emojiId), { auth, signal });
1409
+ return this.rest.get(import_v105.Routes.guildEmoji(guildId, emojiId), { auth, signal });
1374
1410
  }
1375
1411
  /**
1376
1412
  * Creates a new emoji for a guild
@@ -1381,7 +1417,7 @@ var GuildsAPI = class {
1381
1417
  * @param options - The options for creating the emoji
1382
1418
  */
1383
1419
  async createEmoji(guildId, body, { auth, reason, signal } = {}) {
1384
- return this.rest.post(import_v104.Routes.guildEmojis(guildId), {
1420
+ return this.rest.post(import_v105.Routes.guildEmojis(guildId), {
1385
1421
  auth,
1386
1422
  reason,
1387
1423
  body,
@@ -1398,7 +1434,7 @@ var GuildsAPI = class {
1398
1434
  * @param options - The options for editing the emoji
1399
1435
  */
1400
1436
  async editEmoji(guildId, emojiId, body, { auth, reason, signal } = {}) {
1401
- return this.rest.patch(import_v104.Routes.guildEmoji(guildId, emojiId), {
1437
+ return this.rest.patch(import_v105.Routes.guildEmoji(guildId, emojiId), {
1402
1438
  auth,
1403
1439
  reason,
1404
1440
  body,
@@ -1414,7 +1450,7 @@ var GuildsAPI = class {
1414
1450
  * @param options - The options for deleting the emoji
1415
1451
  */
1416
1452
  async deleteEmoji(guildId, emojiId, { auth, reason, signal } = {}) {
1417
- await this.rest.delete(import_v104.Routes.guildEmoji(guildId, emojiId), { auth, reason, signal });
1453
+ await this.rest.delete(import_v105.Routes.guildEmoji(guildId, emojiId), { auth, reason, signal });
1418
1454
  }
1419
1455
  /**
1420
1456
  * Fetches all scheduled events for a guild
@@ -1425,7 +1461,7 @@ var GuildsAPI = class {
1425
1461
  * @param options - The options for fetching the scheduled events
1426
1462
  */
1427
1463
  async getScheduledEvents(guildId, query = {}, { auth, signal } = {}) {
1428
- return this.rest.get(import_v104.Routes.guildScheduledEvents(guildId), {
1464
+ return this.rest.get(import_v105.Routes.guildScheduledEvents(guildId), {
1429
1465
  auth,
1430
1466
  query: (0, import_rest3.makeURLSearchParams)(query),
1431
1467
  signal
@@ -1440,7 +1476,7 @@ var GuildsAPI = class {
1440
1476
  * @param options - The options for creating the scheduled event
1441
1477
  */
1442
1478
  async createScheduledEvent(guildId, body, { auth, reason, signal } = {}) {
1443
- return this.rest.post(import_v104.Routes.guildScheduledEvents(guildId), {
1479
+ return this.rest.post(import_v105.Routes.guildScheduledEvents(guildId), {
1444
1480
  auth,
1445
1481
  reason,
1446
1482
  body,
@@ -1457,7 +1493,7 @@ var GuildsAPI = class {
1457
1493
  * @param options - The options for fetching the scheduled event
1458
1494
  */
1459
1495
  async getScheduledEvent(guildId, eventId, query = {}, { auth, signal } = {}) {
1460
- return this.rest.get(import_v104.Routes.guildScheduledEvent(guildId, eventId), {
1496
+ return this.rest.get(import_v105.Routes.guildScheduledEvent(guildId, eventId), {
1461
1497
  auth,
1462
1498
  query: (0, import_rest3.makeURLSearchParams)(query),
1463
1499
  signal
@@ -1473,7 +1509,7 @@ var GuildsAPI = class {
1473
1509
  * @param options - The options for editing the scheduled event
1474
1510
  */
1475
1511
  async editScheduledEvent(guildId, eventId, body, { auth, reason, signal } = {}) {
1476
- return this.rest.patch(import_v104.Routes.guildScheduledEvent(guildId, eventId), {
1512
+ return this.rest.patch(import_v105.Routes.guildScheduledEvent(guildId, eventId), {
1477
1513
  auth,
1478
1514
  reason,
1479
1515
  body,
@@ -1489,7 +1525,7 @@ var GuildsAPI = class {
1489
1525
  * @param options - The options for deleting the scheduled event
1490
1526
  */
1491
1527
  async deleteScheduledEvent(guildId, eventId, { auth, reason, signal } = {}) {
1492
- await this.rest.delete(import_v104.Routes.guildScheduledEvent(guildId, eventId), { auth, reason, signal });
1528
+ await this.rest.delete(import_v105.Routes.guildScheduledEvent(guildId, eventId), { auth, reason, signal });
1493
1529
  }
1494
1530
  /**
1495
1531
  * Gets all users that are interested in a scheduled event
@@ -1501,7 +1537,7 @@ var GuildsAPI = class {
1501
1537
  * @param options - The options for fetching the scheduled event users
1502
1538
  */
1503
1539
  async getScheduledEventUsers(guildId, eventId, query = {}, { auth, signal } = {}) {
1504
- return this.rest.get(import_v104.Routes.guildScheduledEventUsers(guildId, eventId), {
1540
+ return this.rest.get(import_v105.Routes.guildScheduledEventUsers(guildId, eventId), {
1505
1541
  auth,
1506
1542
  query: (0, import_rest3.makeURLSearchParams)(query),
1507
1543
  signal
@@ -1515,7 +1551,7 @@ var GuildsAPI = class {
1515
1551
  * @param options - The options for fetching the templates
1516
1552
  */
1517
1553
  async getTemplates(guildId, { auth, signal } = {}) {
1518
- return this.rest.get(import_v104.Routes.guildTemplates(guildId), { auth, signal });
1554
+ return this.rest.get(import_v105.Routes.guildTemplates(guildId), { auth, signal });
1519
1555
  }
1520
1556
  /**
1521
1557
  * Syncs a template for a guild
@@ -1526,7 +1562,7 @@ var GuildsAPI = class {
1526
1562
  * @param options - The options for syncing the template
1527
1563
  */
1528
1564
  async syncTemplate(guildId, templateCode, { auth, signal } = {}) {
1529
- return this.rest.put(import_v104.Routes.guildTemplate(guildId, templateCode), {
1565
+ return this.rest.put(import_v105.Routes.guildTemplate(guildId, templateCode), {
1530
1566
  auth,
1531
1567
  signal
1532
1568
  });
@@ -1541,7 +1577,7 @@ var GuildsAPI = class {
1541
1577
  * @param options - The options for editing the template
1542
1578
  */
1543
1579
  async editTemplate(guildId, templateCode, body, { auth, signal } = {}) {
1544
- return this.rest.patch(import_v104.Routes.guildTemplate(guildId, templateCode), {
1580
+ return this.rest.patch(import_v105.Routes.guildTemplate(guildId, templateCode), {
1545
1581
  auth,
1546
1582
  body,
1547
1583
  signal
@@ -1556,7 +1592,7 @@ var GuildsAPI = class {
1556
1592
  * @param options - The options for deleting the template
1557
1593
  */
1558
1594
  async deleteTemplate(guildId, templateCode, { auth, signal } = {}) {
1559
- await this.rest.delete(import_v104.Routes.guildTemplate(guildId, templateCode), { auth, signal });
1595
+ await this.rest.delete(import_v105.Routes.guildTemplate(guildId, templateCode), { auth, signal });
1560
1596
  }
1561
1597
  /**
1562
1598
  * Fetches all the stickers for a guild
@@ -1566,7 +1602,7 @@ var GuildsAPI = class {
1566
1602
  * @param options - The options for fetching the stickers
1567
1603
  */
1568
1604
  async getStickers(guildId, { auth, signal } = {}) {
1569
- return this.rest.get(import_v104.Routes.guildStickers(guildId), { auth, signal });
1605
+ return this.rest.get(import_v105.Routes.guildStickers(guildId), { auth, signal });
1570
1606
  }
1571
1607
  /**
1572
1608
  * Fetches a sticker for a guild
@@ -1577,7 +1613,7 @@ var GuildsAPI = class {
1577
1613
  * @param options - The options for fetching the sticker
1578
1614
  */
1579
1615
  async getSticker(guildId, stickerId, { auth, signal } = {}) {
1580
- return this.rest.get(import_v104.Routes.guildSticker(guildId, stickerId), {
1616
+ return this.rest.get(import_v105.Routes.guildSticker(guildId, stickerId), {
1581
1617
  auth,
1582
1618
  signal
1583
1619
  });
@@ -1592,7 +1628,7 @@ var GuildsAPI = class {
1592
1628
  */
1593
1629
  async createSticker(guildId, { file, ...body }, { auth, reason, signal } = {}) {
1594
1630
  const fileData = { ...file, key: "file" };
1595
- return this.rest.post(import_v104.Routes.guildStickers(guildId), {
1631
+ return this.rest.post(import_v105.Routes.guildStickers(guildId), {
1596
1632
  auth,
1597
1633
  appendToFormData: true,
1598
1634
  body,
@@ -1611,7 +1647,7 @@ var GuildsAPI = class {
1611
1647
  * @param options - The options for editing the sticker
1612
1648
  */
1613
1649
  async editSticker(guildId, stickerId, body, { auth, reason, signal } = {}) {
1614
- return this.rest.patch(import_v104.Routes.guildSticker(guildId, stickerId), {
1650
+ return this.rest.patch(import_v105.Routes.guildSticker(guildId, stickerId), {
1615
1651
  auth,
1616
1652
  reason,
1617
1653
  body,
@@ -1627,7 +1663,7 @@ var GuildsAPI = class {
1627
1663
  * @param options - The options for deleting the sticker
1628
1664
  */
1629
1665
  async deleteSticker(guildId, stickerId, { auth, reason, signal } = {}) {
1630
- await this.rest.delete(import_v104.Routes.guildSticker(guildId, stickerId), { auth, reason, signal });
1666
+ await this.rest.delete(import_v105.Routes.guildSticker(guildId, stickerId), { auth, reason, signal });
1631
1667
  }
1632
1668
  /**
1633
1669
  * Fetches the audit logs for a guild
@@ -1638,7 +1674,7 @@ var GuildsAPI = class {
1638
1674
  * @param options - The options for fetching the audit logs
1639
1675
  */
1640
1676
  async getAuditLogs(guildId, query = {}, { auth, signal } = {}) {
1641
- return this.rest.get(import_v104.Routes.guildAuditLog(guildId), {
1677
+ return this.rest.get(import_v105.Routes.guildAuditLog(guildId), {
1642
1678
  auth,
1643
1679
  query: (0, import_rest3.makeURLSearchParams)(query),
1644
1680
  signal
@@ -1652,7 +1688,7 @@ var GuildsAPI = class {
1652
1688
  * @param options - The options for fetching the auto moderation rules
1653
1689
  */
1654
1690
  async getAutoModerationRules(guildId, { auth, signal } = {}) {
1655
- return this.rest.get(import_v104.Routes.guildAutoModerationRules(guildId), {
1691
+ return this.rest.get(import_v105.Routes.guildAutoModerationRules(guildId), {
1656
1692
  auth,
1657
1693
  signal
1658
1694
  });
@@ -1666,7 +1702,7 @@ var GuildsAPI = class {
1666
1702
  * @param options - The options for fetching the auto moderation rule
1667
1703
  */
1668
1704
  async getAutoModerationRule(guildId, ruleId, { auth, signal } = {}) {
1669
- return this.rest.get(import_v104.Routes.guildAutoModerationRule(guildId, ruleId), {
1705
+ return this.rest.get(import_v105.Routes.guildAutoModerationRule(guildId, ruleId), {
1670
1706
  auth,
1671
1707
  signal
1672
1708
  });
@@ -1680,7 +1716,7 @@ var GuildsAPI = class {
1680
1716
  * @param options - The options for creating the auto moderation rule
1681
1717
  */
1682
1718
  async createAutoModerationRule(guildId, body, { auth, reason, signal } = {}) {
1683
- return this.rest.post(import_v104.Routes.guildAutoModerationRules(guildId), {
1719
+ return this.rest.post(import_v105.Routes.guildAutoModerationRules(guildId), {
1684
1720
  auth,
1685
1721
  reason,
1686
1722
  body,
@@ -1697,7 +1733,7 @@ var GuildsAPI = class {
1697
1733
  * @param options - The options for editing the auto moderation rule
1698
1734
  */
1699
1735
  async editAutoModerationRule(guildId, ruleId, body, { auth, reason, signal } = {}) {
1700
- return this.rest.patch(import_v104.Routes.guildAutoModerationRule(guildId, ruleId), {
1736
+ return this.rest.patch(import_v105.Routes.guildAutoModerationRule(guildId, ruleId), {
1701
1737
  auth,
1702
1738
  reason,
1703
1739
  body,
@@ -1713,7 +1749,7 @@ var GuildsAPI = class {
1713
1749
  * @param options - The options for deleting the auto moderation rule
1714
1750
  */
1715
1751
  async deleteAutoModerationRule(guildId, ruleId, { auth, reason, signal } = {}) {
1716
- await this.rest.delete(import_v104.Routes.guildAutoModerationRule(guildId, ruleId), { auth, reason, signal });
1752
+ await this.rest.delete(import_v105.Routes.guildAutoModerationRule(guildId, ruleId), { auth, reason, signal });
1717
1753
  }
1718
1754
  /**
1719
1755
  * Fetches a guild member
@@ -1724,7 +1760,7 @@ var GuildsAPI = class {
1724
1760
  * @param options - The options for fetching the guild member
1725
1761
  */
1726
1762
  async getMember(guildId, userId, { auth, signal } = {}) {
1727
- return this.rest.get(import_v104.Routes.guildMember(guildId, userId), { auth, signal });
1763
+ return this.rest.get(import_v105.Routes.guildMember(guildId, userId), { auth, signal });
1728
1764
  }
1729
1765
  /**
1730
1766
  * Searches for guild members
@@ -1735,7 +1771,7 @@ var GuildsAPI = class {
1735
1771
  * @param options - The options for searching for guild members
1736
1772
  */
1737
1773
  async searchForMembers(guildId, query, { auth, signal } = {}) {
1738
- return this.rest.get(import_v104.Routes.guildMembersSearch(guildId), {
1774
+ return this.rest.get(import_v105.Routes.guildMembersSearch(guildId), {
1739
1775
  auth,
1740
1776
  query: (0, import_rest3.makeURLSearchParams)(query),
1741
1777
  signal
@@ -1751,7 +1787,7 @@ var GuildsAPI = class {
1751
1787
  * @param options - The options for editing the guild member
1752
1788
  */
1753
1789
  async editMember(guildId, userId, body = {}, { auth, reason, signal } = {}) {
1754
- return this.rest.patch(import_v104.Routes.guildMember(guildId, userId), {
1790
+ return this.rest.patch(import_v105.Routes.guildMember(guildId, userId), {
1755
1791
  auth,
1756
1792
  reason,
1757
1793
  body,
@@ -1767,7 +1803,7 @@ var GuildsAPI = class {
1767
1803
  * @param options - The options for removing the guild member
1768
1804
  */
1769
1805
  async removeMember(guildId, userId, { auth, reason, signal } = {}) {
1770
- return this.rest.delete(import_v104.Routes.guildMember(guildId, userId), { auth, reason, signal });
1806
+ return this.rest.delete(import_v105.Routes.guildMember(guildId, userId), { auth, reason, signal });
1771
1807
  }
1772
1808
  /**
1773
1809
  * Adds a role to a guild member
@@ -1779,7 +1815,7 @@ var GuildsAPI = class {
1779
1815
  * @param options - The options for adding a role to a guild member
1780
1816
  */
1781
1817
  async addRoleToMember(guildId, userId, roleId, { auth, reason, signal } = {}) {
1782
- await this.rest.put(import_v104.Routes.guildMemberRole(guildId, userId, roleId), { auth, reason, signal });
1818
+ await this.rest.put(import_v105.Routes.guildMemberRole(guildId, userId, roleId), { auth, reason, signal });
1783
1819
  }
1784
1820
  /**
1785
1821
  * Removes a role from a guild member
@@ -1791,7 +1827,7 @@ var GuildsAPI = class {
1791
1827
  * @param options - The options for removing a role from a guild member
1792
1828
  */
1793
1829
  async removeRoleFromMember(guildId, userId, roleId, { auth, reason, signal } = {}) {
1794
- await this.rest.delete(import_v104.Routes.guildMemberRole(guildId, userId, roleId), { auth, reason, signal });
1830
+ await this.rest.delete(import_v105.Routes.guildMemberRole(guildId, userId, roleId), { auth, reason, signal });
1795
1831
  }
1796
1832
  /**
1797
1833
  * Fetches a guild template
@@ -1801,7 +1837,7 @@ var GuildsAPI = class {
1801
1837
  * @param options - The options for fetching the guild template
1802
1838
  */
1803
1839
  async getTemplate(templateCode, { auth, signal } = {}) {
1804
- return this.rest.get(import_v104.Routes.template(templateCode), { auth, signal });
1840
+ return this.rest.get(import_v105.Routes.template(templateCode), { auth, signal });
1805
1841
  }
1806
1842
  /**
1807
1843
  * Creates a new template
@@ -1812,7 +1848,7 @@ var GuildsAPI = class {
1812
1848
  * @param options - The options for creating the template
1813
1849
  */
1814
1850
  async createTemplate(guildId, body, { auth, signal } = {}) {
1815
- return this.rest.post(import_v104.Routes.guildTemplates(guildId), {
1851
+ return this.rest.post(import_v105.Routes.guildTemplates(guildId), {
1816
1852
  auth,
1817
1853
  body,
1818
1854
  signal
@@ -1826,7 +1862,7 @@ var GuildsAPI = class {
1826
1862
  * @param options - The options for fetching the webhooks
1827
1863
  */
1828
1864
  async getWebhooks(id, { auth, signal } = {}) {
1829
- return this.rest.get(import_v104.Routes.guildWebhooks(id), { auth, signal });
1865
+ return this.rest.get(import_v105.Routes.guildWebhooks(id), { auth, signal });
1830
1866
  }
1831
1867
  /**
1832
1868
  * Fetches a guild onboarding
@@ -1836,7 +1872,7 @@ var GuildsAPI = class {
1836
1872
  * @param options - The options for fetching the guild onboarding
1837
1873
  */
1838
1874
  async getOnboarding(guildId, { auth, signal } = {}) {
1839
- return this.rest.get(import_v104.Routes.guildOnboarding(guildId), { auth, signal });
1875
+ return this.rest.get(import_v105.Routes.guildOnboarding(guildId), { auth, signal });
1840
1876
  }
1841
1877
  /**
1842
1878
  * Edits a guild onboarding
@@ -1847,7 +1883,7 @@ var GuildsAPI = class {
1847
1883
  * @param options - The options for editing the guild onboarding
1848
1884
  */
1849
1885
  async editOnboarding(guildId, body, { auth, reason, signal } = {}) {
1850
- return this.rest.put(import_v104.Routes.guildOnboarding(guildId), {
1886
+ return this.rest.put(import_v105.Routes.guildOnboarding(guildId), {
1851
1887
  auth,
1852
1888
  reason,
1853
1889
  body,
@@ -1862,7 +1898,7 @@ var GuildsAPI = class {
1862
1898
  * @param options - The options for fetching the soundboard sounds
1863
1899
  */
1864
1900
  async getSoundboardSounds(guildId, { auth, signal } = {}) {
1865
- return this.rest.get(import_v104.Routes.guildSoundboardSounds(guildId), {
1901
+ return this.rest.get(import_v105.Routes.guildSoundboardSounds(guildId), {
1866
1902
  auth,
1867
1903
  signal
1868
1904
  });
@@ -1876,7 +1912,7 @@ var GuildsAPI = class {
1876
1912
  * @param options - The options for fetching the soundboard sound
1877
1913
  */
1878
1914
  async getSoundboardSound(guildId, soundId, { auth, signal } = {}) {
1879
- return this.rest.get(import_v104.Routes.guildSoundboardSound(guildId, soundId), {
1915
+ return this.rest.get(import_v105.Routes.guildSoundboardSound(guildId, soundId), {
1880
1916
  auth,
1881
1917
  signal
1882
1918
  });
@@ -1890,7 +1926,7 @@ var GuildsAPI = class {
1890
1926
  * @param options - The options for creating the soundboard sound
1891
1927
  */
1892
1928
  async createSoundboardSound(guildId, body, { auth, reason, signal } = {}) {
1893
- return this.rest.post(import_v104.Routes.guildSoundboardSounds(guildId), {
1929
+ return this.rest.post(import_v105.Routes.guildSoundboardSounds(guildId), {
1894
1930
  auth,
1895
1931
  body,
1896
1932
  reason,
@@ -1907,7 +1943,7 @@ var GuildsAPI = class {
1907
1943
  * @param options - The options for editing the soundboard sound
1908
1944
  */
1909
1945
  async editSoundboardSound(guildId, soundId, body, { auth, reason, signal } = {}) {
1910
- return this.rest.patch(import_v104.Routes.guildSoundboardSound(guildId, soundId), {
1946
+ return this.rest.patch(import_v105.Routes.guildSoundboardSound(guildId, soundId), {
1911
1947
  auth,
1912
1948
  body,
1913
1949
  reason,
@@ -1923,13 +1959,13 @@ var GuildsAPI = class {
1923
1959
  * @param options - The options for deleting the soundboard sound
1924
1960
  */
1925
1961
  async deleteSoundboardSound(guildId, soundId, { auth, reason, signal } = {}) {
1926
- await this.rest.delete(import_v104.Routes.guildSoundboardSound(guildId, soundId), { auth, reason, signal });
1962
+ await this.rest.delete(import_v105.Routes.guildSoundboardSound(guildId, soundId), { auth, reason, signal });
1927
1963
  }
1928
1964
  };
1929
1965
 
1930
1966
  // src/api/interactions.ts
1931
1967
  var import_rest4 = require("@discordjs/rest");
1932
- var import_v105 = require("discord-api-types/v10");
1968
+ var import_v106 = require("discord-api-types/v10");
1933
1969
  var InteractionsAPI = class {
1934
1970
  constructor(rest, webhooks) {
1935
1971
  this.rest = rest;
@@ -1939,12 +1975,12 @@ var InteractionsAPI = class {
1939
1975
  __name(this, "InteractionsAPI");
1940
1976
  }
1941
1977
  async reply(interactionId, interactionToken, { files, with_response, ...data }, { signal } = {}) {
1942
- const response = await this.rest.post(import_v105.Routes.interactionCallback(interactionId, interactionToken), {
1978
+ const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1943
1979
  query: (0, import_rest4.makeURLSearchParams)({ with_response }),
1944
1980
  files,
1945
1981
  auth: false,
1946
1982
  body: {
1947
- type: import_v105.InteractionResponseType.ChannelMessageWithSource,
1983
+ type: import_v106.InteractionResponseType.ChannelMessageWithSource,
1948
1984
  data
1949
1985
  },
1950
1986
  signal
@@ -1952,11 +1988,11 @@ var InteractionsAPI = class {
1952
1988
  return with_response ? response : void 0;
1953
1989
  }
1954
1990
  async defer(interactionId, interactionToken, { with_response, ...data } = {}, { signal } = {}) {
1955
- const response = await this.rest.post(import_v105.Routes.interactionCallback(interactionId, interactionToken), {
1991
+ const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1956
1992
  query: (0, import_rest4.makeURLSearchParams)({ with_response }),
1957
1993
  auth: false,
1958
1994
  body: {
1959
- type: import_v105.InteractionResponseType.DeferredChannelMessageWithSource,
1995
+ type: import_v106.InteractionResponseType.DeferredChannelMessageWithSource,
1960
1996
  data
1961
1997
  },
1962
1998
  signal
@@ -1964,11 +2000,11 @@ var InteractionsAPI = class {
1964
2000
  return with_response ? response : void 0;
1965
2001
  }
1966
2002
  async deferMessageUpdate(interactionId, interactionToken, { with_response } = {}, { signal } = {}) {
1967
- const response = await this.rest.post(import_v105.Routes.interactionCallback(interactionId, interactionToken), {
2003
+ const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1968
2004
  query: (0, import_rest4.makeURLSearchParams)({ with_response }),
1969
2005
  auth: false,
1970
2006
  body: {
1971
- type: import_v105.InteractionResponseType.DeferredMessageUpdate
2007
+ type: import_v106.InteractionResponseType.DeferredMessageUpdate
1972
2008
  },
1973
2009
  signal
1974
2010
  });
@@ -2033,12 +2069,12 @@ var InteractionsAPI = class {
2033
2069
  await this.webhooks.deleteMessage(applicationId, interactionToken, messageId ?? "@original", {}, { signal });
2034
2070
  }
2035
2071
  async updateMessage(interactionId, interactionToken, { files, with_response, ...data }, { signal } = {}) {
2036
- const response = await this.rest.post(import_v105.Routes.interactionCallback(interactionId, interactionToken), {
2072
+ const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2037
2073
  query: (0, import_rest4.makeURLSearchParams)({ with_response }),
2038
2074
  files,
2039
2075
  auth: false,
2040
2076
  body: {
2041
- type: import_v105.InteractionResponseType.UpdateMessage,
2077
+ type: import_v106.InteractionResponseType.UpdateMessage,
2042
2078
  data
2043
2079
  },
2044
2080
  signal
@@ -2046,11 +2082,11 @@ var InteractionsAPI = class {
2046
2082
  return with_response ? response : void 0;
2047
2083
  }
2048
2084
  async createAutocompleteResponse(interactionId, interactionToken, { with_response, ...data }, { signal } = {}) {
2049
- const response = await this.rest.post(import_v105.Routes.interactionCallback(interactionId, interactionToken), {
2085
+ const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2050
2086
  query: (0, import_rest4.makeURLSearchParams)({ with_response }),
2051
2087
  auth: false,
2052
2088
  body: {
2053
- type: import_v105.InteractionResponseType.ApplicationCommandAutocompleteResult,
2089
+ type: import_v106.InteractionResponseType.ApplicationCommandAutocompleteResult,
2054
2090
  data
2055
2091
  },
2056
2092
  signal
@@ -2058,11 +2094,11 @@ var InteractionsAPI = class {
2058
2094
  return with_response ? response : void 0;
2059
2095
  }
2060
2096
  async createModal(interactionId, interactionToken, { with_response, ...data }, { signal } = {}) {
2061
- const response = await this.rest.post(import_v105.Routes.interactionCallback(interactionId, interactionToken), {
2097
+ const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2062
2098
  query: (0, import_rest4.makeURLSearchParams)({ with_response }),
2063
2099
  auth: false,
2064
2100
  body: {
2065
- type: import_v105.InteractionResponseType.Modal,
2101
+ type: import_v106.InteractionResponseType.Modal,
2066
2102
  data
2067
2103
  },
2068
2104
  signal
@@ -2070,11 +2106,11 @@ var InteractionsAPI = class {
2070
2106
  return with_response ? response : void 0;
2071
2107
  }
2072
2108
  async launchActivity(interactionId, interactionToken, { with_response } = {}, { signal } = {}) {
2073
- const response = await this.rest.post(import_v105.Routes.interactionCallback(interactionId, interactionToken), {
2109
+ const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2074
2110
  query: (0, import_rest4.makeURLSearchParams)({ with_response }),
2075
2111
  auth: false,
2076
2112
  body: {
2077
- type: import_v105.InteractionResponseType.LaunchActivity
2113
+ type: import_v106.InteractionResponseType.LaunchActivity
2078
2114
  },
2079
2115
  signal
2080
2116
  });
@@ -2084,7 +2120,7 @@ var InteractionsAPI = class {
2084
2120
 
2085
2121
  // src/api/invite.ts
2086
2122
  var import_rest5 = require("@discordjs/rest");
2087
- var import_v106 = require("discord-api-types/v10");
2123
+ var import_v107 = require("discord-api-types/v10");
2088
2124
  var InvitesAPI = class {
2089
2125
  constructor(rest) {
2090
2126
  this.rest = rest;
@@ -2101,7 +2137,7 @@ var InvitesAPI = class {
2101
2137
  * @param options - The options for fetching the invite
2102
2138
  */
2103
2139
  async get(code, query = {}, { auth, signal } = {}) {
2104
- return this.rest.get(import_v106.Routes.invite(code), {
2140
+ return this.rest.get(import_v107.Routes.invite(code), {
2105
2141
  auth,
2106
2142
  query: (0, import_rest5.makeURLSearchParams)(query),
2107
2143
  signal
@@ -2115,13 +2151,13 @@ var InvitesAPI = class {
2115
2151
  * @param options - The options for deleting the invite
2116
2152
  */
2117
2153
  async delete(code, { auth, reason, signal } = {}) {
2118
- await this.rest.delete(import_v106.Routes.invite(code), { auth, reason, signal });
2154
+ await this.rest.delete(import_v107.Routes.invite(code), { auth, reason, signal });
2119
2155
  }
2120
2156
  };
2121
2157
 
2122
2158
  // src/api/monetization.ts
2123
2159
  var import_rest6 = require("@discordjs/rest");
2124
- var import_v107 = require("discord-api-types/v10");
2160
+ var import_v108 = require("discord-api-types/v10");
2125
2161
  var MonetizationAPI = class {
2126
2162
  constructor(rest) {
2127
2163
  this.rest = rest;
@@ -2137,7 +2173,7 @@ var MonetizationAPI = class {
2137
2173
  * @param options - The options for fetching the SKUs.
2138
2174
  */
2139
2175
  async getSKUs(applicationId, { auth, signal } = {}) {
2140
- return this.rest.get(import_v107.Routes.skus(applicationId), { auth, signal });
2176
+ return this.rest.get(import_v108.Routes.skus(applicationId), { auth, signal });
2141
2177
  }
2142
2178
  /**
2143
2179
  * Fetches subscriptions for an SKU.
@@ -2148,7 +2184,7 @@ var MonetizationAPI = class {
2148
2184
  * @param options - The options for fetching subscriptions
2149
2185
  */
2150
2186
  async getSKUSubscriptions(skuId, query = {}, { auth, signal } = {}) {
2151
- return this.rest.get(import_v107.Routes.skuSubscriptions(skuId), {
2187
+ return this.rest.get(import_v108.Routes.skuSubscriptions(skuId), {
2152
2188
  auth,
2153
2189
  signal,
2154
2190
  query: (0, import_rest6.makeURLSearchParams)(query)
@@ -2163,7 +2199,7 @@ var MonetizationAPI = class {
2163
2199
  * @param options - The options for fetching the subscription
2164
2200
  */
2165
2201
  async getSKUSubscription(skuId, subscriptionId, { auth, signal } = {}) {
2166
- return this.rest.get(import_v107.Routes.skuSubscription(skuId, subscriptionId), {
2202
+ return this.rest.get(import_v108.Routes.skuSubscription(skuId, subscriptionId), {
2167
2203
  auth,
2168
2204
  signal
2169
2205
  });
@@ -2177,7 +2213,7 @@ var MonetizationAPI = class {
2177
2213
  * @param options - The options for fetching entitlements
2178
2214
  */
2179
2215
  async getEntitlements(applicationId, query = {}, { auth, signal } = {}) {
2180
- return this.rest.get(import_v107.Routes.entitlements(applicationId), {
2216
+ return this.rest.get(import_v108.Routes.entitlements(applicationId), {
2181
2217
  auth,
2182
2218
  signal,
2183
2219
  query: (0, import_rest6.makeURLSearchParams)(query)
@@ -2192,7 +2228,7 @@ var MonetizationAPI = class {
2192
2228
  * @param options - The options for fetching the entitlement
2193
2229
  */
2194
2230
  async getEntitlement(applicationId, entitlementId, { auth, signal } = {}) {
2195
- return this.rest.get(import_v107.Routes.entitlement(applicationId, entitlementId), {
2231
+ return this.rest.get(import_v108.Routes.entitlement(applicationId, entitlementId), {
2196
2232
  auth,
2197
2233
  signal
2198
2234
  });
@@ -2206,7 +2242,7 @@ var MonetizationAPI = class {
2206
2242
  * @param options - The options for creating the entitlement
2207
2243
  */
2208
2244
  async createTestEntitlement(applicationId, body, { auth, signal } = {}) {
2209
- return this.rest.post(import_v107.Routes.entitlements(applicationId), {
2245
+ return this.rest.post(import_v108.Routes.entitlements(applicationId), {
2210
2246
  auth,
2211
2247
  body,
2212
2248
  signal
@@ -2221,7 +2257,7 @@ var MonetizationAPI = class {
2221
2257
  * @param options - The options for deleting the entitlement
2222
2258
  */
2223
2259
  async deleteTestEntitlement(applicationId, entitlementId, { auth, signal } = {}) {
2224
- await this.rest.delete(import_v107.Routes.entitlement(applicationId, entitlementId), { auth, signal });
2260
+ await this.rest.delete(import_v108.Routes.entitlement(applicationId, entitlementId), { auth, signal });
2225
2261
  }
2226
2262
  /**
2227
2263
  * Marks a given entitlement for the user as consumed. Only available for One-Time Purchase consumable SKUs.
@@ -2232,13 +2268,13 @@ var MonetizationAPI = class {
2232
2268
  * @param options - The options for consuming the entitlement
2233
2269
  */
2234
2270
  async consumeEntitlement(applicationId, entitlementId, { auth, signal } = {}) {
2235
- await this.rest.post(import_v107.Routes.consumeEntitlement(applicationId, entitlementId), { auth, signal });
2271
+ await this.rest.post(import_v108.Routes.consumeEntitlement(applicationId, entitlementId), { auth, signal });
2236
2272
  }
2237
2273
  };
2238
2274
 
2239
2275
  // src/api/oauth2.ts
2240
2276
  var import_rest7 = require("@discordjs/rest");
2241
- var import_v108 = require("discord-api-types/v10");
2277
+ var import_v109 = require("discord-api-types/v10");
2242
2278
  var OAuth2API = class {
2243
2279
  constructor(rest) {
2244
2280
  this.rest = rest;
@@ -2253,7 +2289,7 @@ var OAuth2API = class {
2253
2289
  * @param options - The options for creating the authorization URL
2254
2290
  */
2255
2291
  generateAuthorizationURL(options) {
2256
- const url = new URL(`${import_v108.RouteBases.api}${import_v108.Routes.oauth2Authorization()}`);
2292
+ const url = new URL(`${import_v109.RouteBases.api}${import_v109.Routes.oauth2Authorization()}`);
2257
2293
  url.search = (0, import_rest7.makeURLSearchParams)(options).toString();
2258
2294
  return url.toString();
2259
2295
  }
@@ -2265,7 +2301,7 @@ var OAuth2API = class {
2265
2301
  * @param options - The options for the token exchange request
2266
2302
  */
2267
2303
  async tokenExchange(body, { signal } = {}) {
2268
- return this.rest.post(import_v108.Routes.oauth2TokenExchange(), {
2304
+ return this.rest.post(import_v109.Routes.oauth2TokenExchange(), {
2269
2305
  body: (0, import_rest7.makeURLSearchParams)(body),
2270
2306
  passThroughBody: true,
2271
2307
  headers: {
@@ -2283,7 +2319,7 @@ var OAuth2API = class {
2283
2319
  * @param options - The options for the refresh token request
2284
2320
  */
2285
2321
  async refreshToken(body, { signal } = {}) {
2286
- return this.rest.post(import_v108.Routes.oauth2TokenExchange(), {
2322
+ return this.rest.post(import_v109.Routes.oauth2TokenExchange(), {
2287
2323
  body: (0, import_rest7.makeURLSearchParams)(body),
2288
2324
  passThroughBody: true,
2289
2325
  headers: {
@@ -2303,7 +2339,7 @@ var OAuth2API = class {
2303
2339
  * @param options - The options for the client credentials grant request
2304
2340
  */
2305
2341
  async getToken(body, { signal } = {}) {
2306
- return this.rest.post(import_v108.Routes.oauth2TokenExchange(), {
2342
+ return this.rest.post(import_v109.Routes.oauth2TokenExchange(), {
2307
2343
  body: (0, import_rest7.makeURLSearchParams)(body),
2308
2344
  passThroughBody: true,
2309
2345
  headers: {
@@ -2320,7 +2356,7 @@ var OAuth2API = class {
2320
2356
  * @param options - The options for the current bot application information request
2321
2357
  */
2322
2358
  async getCurrentBotApplicationInformation({ auth, signal } = {}) {
2323
- return this.rest.get(import_v108.Routes.oauth2CurrentApplication(), {
2359
+ return this.rest.get(import_v109.Routes.oauth2CurrentApplication(), {
2324
2360
  auth,
2325
2361
  signal
2326
2362
  });
@@ -2332,7 +2368,7 @@ var OAuth2API = class {
2332
2368
  * @param options - The options for the current authorization information request
2333
2369
  */
2334
2370
  async getCurrentAuthorizationInformation({ auth, signal } = {}) {
2335
- return this.rest.get(import_v108.Routes.oauth2CurrentAuthorization(), {
2371
+ return this.rest.get(import_v109.Routes.oauth2CurrentAuthorization(), {
2336
2372
  auth,
2337
2373
  signal
2338
2374
  });
@@ -2347,7 +2383,7 @@ var OAuth2API = class {
2347
2383
  * @param options - The options for the token revocation request
2348
2384
  */
2349
2385
  async revokeToken(applicationId, applicationSecret, body, { signal } = {}) {
2350
- await this.rest.post(import_v108.Routes.oauth2TokenRevocation(), {
2386
+ await this.rest.post(import_v109.Routes.oauth2TokenRevocation(), {
2351
2387
  body: (0, import_rest7.makeURLSearchParams)(body),
2352
2388
  passThroughBody: true,
2353
2389
  headers: {
@@ -2362,7 +2398,7 @@ var OAuth2API = class {
2362
2398
 
2363
2399
  // src/api/poll.ts
2364
2400
  var import_rest8 = require("@discordjs/rest");
2365
- var import_v109 = require("discord-api-types/v10");
2401
+ var import_v1010 = require("discord-api-types/v10");
2366
2402
  var PollAPI = class {
2367
2403
  constructor(rest) {
2368
2404
  this.rest = rest;
@@ -2381,7 +2417,7 @@ var PollAPI = class {
2381
2417
  * @param options - The options for getting the list of voters
2382
2418
  */
2383
2419
  async getAnswerVoters(channelId, messageId, answerId, query = {}, { auth, signal } = {}) {
2384
- return this.rest.get(import_v109.Routes.pollAnswerVoters(channelId, messageId, answerId), {
2420
+ return this.rest.get(import_v1010.Routes.pollAnswerVoters(channelId, messageId, answerId), {
2385
2421
  auth,
2386
2422
  signal,
2387
2423
  query: (0, import_rest8.makeURLSearchParams)(query)
@@ -2396,7 +2432,7 @@ var PollAPI = class {
2396
2432
  * @param options - The options for expiring the poll
2397
2433
  */
2398
2434
  async expirePoll(channelId, messageId, { auth, signal } = {}) {
2399
- return this.rest.post(import_v109.Routes.expirePoll(channelId, messageId), {
2435
+ return this.rest.post(import_v1010.Routes.expirePoll(channelId, messageId), {
2400
2436
  auth,
2401
2437
  signal
2402
2438
  });
@@ -2404,7 +2440,7 @@ var PollAPI = class {
2404
2440
  };
2405
2441
 
2406
2442
  // src/api/roleConnections.ts
2407
- var import_v1010 = require("discord-api-types/v10");
2443
+ var import_v1011 = require("discord-api-types/v10");
2408
2444
  var RoleConnectionsAPI = class {
2409
2445
  constructor(rest) {
2410
2446
  this.rest = rest;
@@ -2420,7 +2456,7 @@ var RoleConnectionsAPI = class {
2420
2456
  * @param options - The options for fetching the role connection metadata records
2421
2457
  */
2422
2458
  async getMetadataRecords(applicationId, { auth, signal } = {}) {
2423
- return this.rest.get(import_v1010.Routes.applicationRoleConnectionMetadata(applicationId), {
2459
+ return this.rest.get(import_v1011.Routes.applicationRoleConnectionMetadata(applicationId), {
2424
2460
  auth,
2425
2461
  signal
2426
2462
  });
@@ -2434,7 +2470,7 @@ var RoleConnectionsAPI = class {
2434
2470
  * @param options - The options for updating the role connection metadata records
2435
2471
  */
2436
2472
  async updateMetadataRecords(applicationId, body, { auth, signal } = {}) {
2437
- return this.rest.put(import_v1010.Routes.applicationRoleConnectionMetadata(applicationId), {
2473
+ return this.rest.put(import_v1011.Routes.applicationRoleConnectionMetadata(applicationId), {
2438
2474
  auth,
2439
2475
  body,
2440
2476
  signal
@@ -2443,7 +2479,7 @@ var RoleConnectionsAPI = class {
2443
2479
  };
2444
2480
 
2445
2481
  // src/api/soundboardSounds.ts
2446
- var import_v1011 = require("discord-api-types/v10");
2482
+ var import_v1012 = require("discord-api-types/v10");
2447
2483
  var SoundboardSoundsAPI = class {
2448
2484
  constructor(rest) {
2449
2485
  this.rest = rest;
@@ -2458,7 +2494,7 @@ var SoundboardSoundsAPI = class {
2458
2494
  * @param options - The options for fetching the soundboard default sounds.
2459
2495
  */
2460
2496
  async getSoundboardDefaultSounds({ auth, signal } = {}) {
2461
- return this.rest.get(import_v1011.Routes.soundboardDefaultSounds(), {
2497
+ return this.rest.get(import_v1012.Routes.soundboardDefaultSounds(), {
2462
2498
  auth,
2463
2499
  signal
2464
2500
  });
@@ -2466,7 +2502,7 @@ var SoundboardSoundsAPI = class {
2466
2502
  };
2467
2503
 
2468
2504
  // src/api/stageInstances.ts
2469
- var import_v1012 = require("discord-api-types/v10");
2505
+ var import_v1013 = require("discord-api-types/v10");
2470
2506
  var StageInstancesAPI = class {
2471
2507
  constructor(rest) {
2472
2508
  this.rest = rest;
@@ -2482,7 +2518,7 @@ var StageInstancesAPI = class {
2482
2518
  * @param options - The options for creating the new stage instance
2483
2519
  */
2484
2520
  async create(body, { auth, reason, signal } = {}) {
2485
- return this.rest.post(import_v1012.Routes.stageInstances(), {
2521
+ return this.rest.post(import_v1013.Routes.stageInstances(), {
2486
2522
  auth,
2487
2523
  body,
2488
2524
  reason,
@@ -2497,7 +2533,7 @@ var StageInstancesAPI = class {
2497
2533
  * @param options - The options for fetching the stage instance
2498
2534
  */
2499
2535
  async get(channelId, { auth, signal } = {}) {
2500
- return this.rest.get(import_v1012.Routes.stageInstance(channelId), { auth, signal });
2536
+ return this.rest.get(import_v1013.Routes.stageInstance(channelId), { auth, signal });
2501
2537
  }
2502
2538
  /**
2503
2539
  * Edits a stage instance
@@ -2508,7 +2544,7 @@ var StageInstancesAPI = class {
2508
2544
  * @param options - The options for editing the stage instance
2509
2545
  */
2510
2546
  async edit(channelId, body, { auth, reason, signal } = {}) {
2511
- return this.rest.patch(import_v1012.Routes.stageInstance(channelId), {
2547
+ return this.rest.patch(import_v1013.Routes.stageInstance(channelId), {
2512
2548
  auth,
2513
2549
  body,
2514
2550
  reason,
@@ -2523,12 +2559,12 @@ var StageInstancesAPI = class {
2523
2559
  * @param options - The options for deleting the stage instance
2524
2560
  */
2525
2561
  async delete(channelId, { auth, reason, signal } = {}) {
2526
- await this.rest.delete(import_v1012.Routes.stageInstance(channelId), { auth, reason, signal });
2562
+ await this.rest.delete(import_v1013.Routes.stageInstance(channelId), { auth, reason, signal });
2527
2563
  }
2528
2564
  };
2529
2565
 
2530
2566
  // src/api/sticker.ts
2531
- var import_v1013 = require("discord-api-types/v10");
2567
+ var import_v1014 = require("discord-api-types/v10");
2532
2568
  var StickersAPI = class {
2533
2569
  constructor(rest) {
2534
2570
  this.rest = rest;
@@ -2544,7 +2580,7 @@ var StickersAPI = class {
2544
2580
  * @param options - The options for fetching the sticker pack
2545
2581
  */
2546
2582
  async getStickerPack(packId, { auth, signal } = {}) {
2547
- return this.rest.get(import_v1013.Routes.stickerPack(packId), { auth, signal });
2583
+ return this.rest.get(import_v1014.Routes.stickerPack(packId), { auth, signal });
2548
2584
  }
2549
2585
  /**
2550
2586
  * Fetches all of the sticker packs
@@ -2553,7 +2589,7 @@ var StickersAPI = class {
2553
2589
  * @param options - The options for fetching the sticker packs
2554
2590
  */
2555
2591
  async getStickers({ auth, signal } = {}) {
2556
- return this.rest.get(import_v1013.Routes.stickerPacks(), { auth, signal });
2592
+ return this.rest.get(import_v1014.Routes.stickerPacks(), { auth, signal });
2557
2593
  }
2558
2594
  /**
2559
2595
  * Fetches a sticker
@@ -2563,12 +2599,12 @@ var StickersAPI = class {
2563
2599
  * @param options - The options for fetching the sticker
2564
2600
  */
2565
2601
  async get(stickerId, { auth, signal } = {}) {
2566
- return this.rest.get(import_v1013.Routes.sticker(stickerId), { auth, signal });
2602
+ return this.rest.get(import_v1014.Routes.sticker(stickerId), { auth, signal });
2567
2603
  }
2568
2604
  };
2569
2605
 
2570
2606
  // src/api/thread.ts
2571
- var import_v1014 = require("discord-api-types/v10");
2607
+ var import_v1015 = require("discord-api-types/v10");
2572
2608
  var ThreadsAPI = class {
2573
2609
  constructor(rest) {
2574
2610
  this.rest = rest;
@@ -2584,7 +2620,7 @@ var ThreadsAPI = class {
2584
2620
  * @param options - The options for joining the thread
2585
2621
  */
2586
2622
  async join(threadId, { auth, signal } = {}) {
2587
- await this.rest.put(import_v1014.Routes.threadMembers(threadId, "@me"), { auth, signal });
2623
+ await this.rest.put(import_v1015.Routes.threadMembers(threadId, "@me"), { auth, signal });
2588
2624
  }
2589
2625
  /**
2590
2626
  * Adds a member to a thread
@@ -2595,7 +2631,7 @@ var ThreadsAPI = class {
2595
2631
  * @param options - The options for adding the member to the thread
2596
2632
  */
2597
2633
  async addMember(threadId, userId, { auth, signal } = {}) {
2598
- await this.rest.put(import_v1014.Routes.threadMembers(threadId, userId), { auth, signal });
2634
+ await this.rest.put(import_v1015.Routes.threadMembers(threadId, userId), { auth, signal });
2599
2635
  }
2600
2636
  /**
2601
2637
  * Removes the current user from a thread
@@ -2605,7 +2641,7 @@ var ThreadsAPI = class {
2605
2641
  * @param options - The options for leaving the thread
2606
2642
  */
2607
2643
  async leave(threadId, { auth, signal } = {}) {
2608
- await this.rest.delete(import_v1014.Routes.threadMembers(threadId, "@me"), { auth, signal });
2644
+ await this.rest.delete(import_v1015.Routes.threadMembers(threadId, "@me"), { auth, signal });
2609
2645
  }
2610
2646
  /**
2611
2647
  * Removes a member from a thread
@@ -2616,7 +2652,7 @@ var ThreadsAPI = class {
2616
2652
  * @param options - The options for removing the member from the thread
2617
2653
  */
2618
2654
  async removeMember(threadId, userId, { auth, signal } = {}) {
2619
- await this.rest.delete(import_v1014.Routes.threadMembers(threadId, userId), { auth, signal });
2655
+ await this.rest.delete(import_v1015.Routes.threadMembers(threadId, userId), { auth, signal });
2620
2656
  }
2621
2657
  /**
2622
2658
  * Fetches a member of a thread
@@ -2627,7 +2663,7 @@ var ThreadsAPI = class {
2627
2663
  * @param options - The options for fetching the member
2628
2664
  */
2629
2665
  async getMember(threadId, userId, { auth, signal } = {}) {
2630
- return this.rest.get(import_v1014.Routes.threadMembers(threadId, userId), { auth, signal });
2666
+ return this.rest.get(import_v1015.Routes.threadMembers(threadId, userId), { auth, signal });
2631
2667
  }
2632
2668
  /**
2633
2669
  * Fetches all members of a thread
@@ -2637,7 +2673,7 @@ var ThreadsAPI = class {
2637
2673
  * @param options - The options for fetching the members
2638
2674
  */
2639
2675
  async getAllMembers(threadId, { auth, signal } = {}) {
2640
- return this.rest.get(import_v1014.Routes.threadMembers(threadId), {
2676
+ return this.rest.get(import_v1015.Routes.threadMembers(threadId), {
2641
2677
  auth,
2642
2678
  signal
2643
2679
  });
@@ -2646,7 +2682,7 @@ var ThreadsAPI = class {
2646
2682
 
2647
2683
  // src/api/user.ts
2648
2684
  var import_rest9 = require("@discordjs/rest");
2649
- var import_v1015 = require("discord-api-types/v10");
2685
+ var import_v1016 = require("discord-api-types/v10");
2650
2686
  var UsersAPI = class {
2651
2687
  constructor(rest) {
2652
2688
  this.rest = rest;
@@ -2662,7 +2698,7 @@ var UsersAPI = class {
2662
2698
  * @param options - The options for fetching the user
2663
2699
  */
2664
2700
  async get(userId, { auth, signal } = {}) {
2665
- return this.rest.get(import_v1015.Routes.user(userId), { auth, signal });
2701
+ return this.rest.get(import_v1016.Routes.user(userId), { auth, signal });
2666
2702
  }
2667
2703
  /**
2668
2704
  * Returns the user object of the requester's account
@@ -2671,7 +2707,7 @@ var UsersAPI = class {
2671
2707
  * @param options - The options for fetching the current user
2672
2708
  */
2673
2709
  async getCurrent({ auth, signal } = {}) {
2674
- return this.rest.get(import_v1015.Routes.user("@me"), { auth, signal });
2710
+ return this.rest.get(import_v1016.Routes.user("@me"), { auth, signal });
2675
2711
  }
2676
2712
  /**
2677
2713
  * Returns a list of partial guild objects the current user is a member of
@@ -2681,7 +2717,7 @@ var UsersAPI = class {
2681
2717
  * @param options - The options for fetching the guilds
2682
2718
  */
2683
2719
  async getGuilds(query = {}, { auth, signal } = {}) {
2684
- return this.rest.get(import_v1015.Routes.userGuilds(), {
2720
+ return this.rest.get(import_v1016.Routes.userGuilds(), {
2685
2721
  auth,
2686
2722
  query: (0, import_rest9.makeURLSearchParams)(query),
2687
2723
  signal
@@ -2695,7 +2731,7 @@ var UsersAPI = class {
2695
2731
  * @param options - The options for leaving the guild
2696
2732
  */
2697
2733
  async leaveGuild(guildId, { auth, signal } = {}) {
2698
- await this.rest.delete(import_v1015.Routes.userGuild(guildId), { auth, signal });
2734
+ await this.rest.delete(import_v1016.Routes.userGuild(guildId), { auth, signal });
2699
2735
  }
2700
2736
  /**
2701
2737
  * Edits the current user
@@ -2705,7 +2741,7 @@ var UsersAPI = class {
2705
2741
  * @param options - The options for editing the user
2706
2742
  */
2707
2743
  async edit(body, { auth, signal } = {}) {
2708
- return this.rest.patch(import_v1015.Routes.user("@me"), { auth, body, signal });
2744
+ return this.rest.patch(import_v1016.Routes.user("@me"), { auth, body, signal });
2709
2745
  }
2710
2746
  /**
2711
2747
  * Fetches the guild member for the current user
@@ -2715,7 +2751,7 @@ var UsersAPI = class {
2715
2751
  * @param options - The options for fetching the guild member
2716
2752
  */
2717
2753
  async getGuildMember(guildId, { auth, signal } = {}) {
2718
- return this.rest.get(import_v1015.Routes.userGuildMember(guildId), {
2754
+ return this.rest.get(import_v1016.Routes.userGuildMember(guildId), {
2719
2755
  auth,
2720
2756
  signal
2721
2757
  });
@@ -2729,7 +2765,7 @@ var UsersAPI = class {
2729
2765
  * @param options - The options for editing the guild member
2730
2766
  */
2731
2767
  async editCurrentGuildMember(guildId, body = {}, { auth, reason, signal } = {}) {
2732
- return this.rest.patch(import_v1015.Routes.guildMember(guildId, "@me"), {
2768
+ return this.rest.patch(import_v1016.Routes.guildMember(guildId, "@me"), {
2733
2769
  auth,
2734
2770
  reason,
2735
2771
  body,
@@ -2744,7 +2780,7 @@ var UsersAPI = class {
2744
2780
  * @param options - The options for opening the DM
2745
2781
  */
2746
2782
  async createDM(userId, { auth, signal } = {}) {
2747
- return this.rest.post(import_v1015.Routes.userChannels(), {
2783
+ return this.rest.post(import_v1016.Routes.userChannels(), {
2748
2784
  auth,
2749
2785
  body: { recipient_id: userId },
2750
2786
  signal
@@ -2757,7 +2793,7 @@ var UsersAPI = class {
2757
2793
  * @param options - The options for fetching the user's connections
2758
2794
  */
2759
2795
  async getConnections({ auth, signal } = {}) {
2760
- return this.rest.get(import_v1015.Routes.userConnections(), { auth, signal });
2796
+ return this.rest.get(import_v1016.Routes.userConnections(), { auth, signal });
2761
2797
  }
2762
2798
  /**
2763
2799
  * Gets the current user's active application role connection
@@ -2767,7 +2803,7 @@ var UsersAPI = class {
2767
2803
  * @param options - The options for fetching the role connections
2768
2804
  */
2769
2805
  async getApplicationRoleConnection(applicationId, { auth, signal } = {}) {
2770
- return this.rest.get(import_v1015.Routes.userApplicationRoleConnection(applicationId), {
2806
+ return this.rest.get(import_v1016.Routes.userApplicationRoleConnection(applicationId), {
2771
2807
  auth,
2772
2808
  signal
2773
2809
  });
@@ -2781,7 +2817,7 @@ var UsersAPI = class {
2781
2817
  * @param options - The options for updating the application role connection
2782
2818
  */
2783
2819
  async updateApplicationRoleConnection(applicationId, body, { auth, signal } = {}) {
2784
- return this.rest.put(import_v1015.Routes.userApplicationRoleConnection(applicationId), {
2820
+ return this.rest.put(import_v1016.Routes.userApplicationRoleConnection(applicationId), {
2785
2821
  auth,
2786
2822
  body,
2787
2823
  signal
@@ -2790,7 +2826,7 @@ var UsersAPI = class {
2790
2826
  };
2791
2827
 
2792
2828
  // src/api/voice.ts
2793
- var import_v1016 = require("discord-api-types/v10");
2829
+ var import_v1017 = require("discord-api-types/v10");
2794
2830
  var VoiceAPI = class {
2795
2831
  constructor(rest) {
2796
2832
  this.rest = rest;
@@ -2805,7 +2841,7 @@ var VoiceAPI = class {
2805
2841
  * @param options - The options for fetching the voice regions
2806
2842
  */
2807
2843
  async getVoiceRegions({ auth, signal } = {}) {
2808
- return this.rest.get(import_v1016.Routes.voiceRegions(), { auth, signal });
2844
+ return this.rest.get(import_v1017.Routes.voiceRegions(), { auth, signal });
2809
2845
  }
2810
2846
  /**
2811
2847
  * Fetches voice state of a user by their id
@@ -2814,7 +2850,7 @@ var VoiceAPI = class {
2814
2850
  * @param options - The options for fetching user voice state
2815
2851
  */
2816
2852
  async getUserVoiceState(guildId, userId, { auth, signal } = {}) {
2817
- return this.rest.get(import_v1016.Routes.guildVoiceState(guildId, userId), {
2853
+ return this.rest.get(import_v1017.Routes.guildVoiceState(guildId, userId), {
2818
2854
  auth,
2819
2855
  signal
2820
2856
  });
@@ -2826,7 +2862,7 @@ var VoiceAPI = class {
2826
2862
  * @param options - The options for fetching user voice state
2827
2863
  */
2828
2864
  async getVoiceState(guildId, { auth, signal } = {}) {
2829
- return this.rest.get(import_v1016.Routes.guildVoiceState(guildId, "@me"), {
2865
+ return this.rest.get(import_v1017.Routes.guildVoiceState(guildId, "@me"), {
2830
2866
  auth,
2831
2867
  signal
2832
2868
  });
@@ -2841,7 +2877,7 @@ var VoiceAPI = class {
2841
2877
  * @param options - The options for editing the voice state
2842
2878
  */
2843
2879
  async editUserVoiceState(guildId, userId, body, { auth, reason, signal } = {}) {
2844
- return this.rest.patch(import_v1016.Routes.guildVoiceState(guildId, userId), {
2880
+ return this.rest.patch(import_v1017.Routes.guildVoiceState(guildId, userId), {
2845
2881
  auth,
2846
2882
  reason,
2847
2883
  body,
@@ -2857,7 +2893,7 @@ var VoiceAPI = class {
2857
2893
  * @param options - The options for editing the voice state
2858
2894
  */
2859
2895
  async editVoiceState(guildId, body = {}, { auth, signal } = {}) {
2860
- return this.rest.patch(import_v1016.Routes.guildVoiceState(guildId, "@me"), {
2896
+ return this.rest.patch(import_v1017.Routes.guildVoiceState(guildId, "@me"), {
2861
2897
  auth,
2862
2898
  body,
2863
2899
  signal
@@ -2867,7 +2903,7 @@ var VoiceAPI = class {
2867
2903
 
2868
2904
  // src/api/webhook.ts
2869
2905
  var import_rest10 = require("@discordjs/rest");
2870
- var import_v1017 = require("discord-api-types/v10");
2906
+ var import_v1018 = require("discord-api-types/v10");
2871
2907
  var WebhooksAPI = class {
2872
2908
  constructor(rest) {
2873
2909
  this.rest = rest;
@@ -2884,7 +2920,7 @@ var WebhooksAPI = class {
2884
2920
  * @param options - The options for fetching the webhook
2885
2921
  */
2886
2922
  async get(id, { token, signal } = {}) {
2887
- return this.rest.get(import_v1017.Routes.webhook(id, token), {
2923
+ return this.rest.get(import_v1018.Routes.webhook(id, token), {
2888
2924
  signal,
2889
2925
  auth: !token
2890
2926
  });
@@ -2899,7 +2935,7 @@ var WebhooksAPI = class {
2899
2935
  * @param options - The options for editing the webhook
2900
2936
  */
2901
2937
  async edit(id, body, { token, reason, signal } = {}) {
2902
- return this.rest.patch(import_v1017.Routes.webhook(id, token), {
2938
+ return this.rest.patch(import_v1018.Routes.webhook(id, token), {
2903
2939
  reason,
2904
2940
  body,
2905
2941
  signal,
@@ -2915,7 +2951,7 @@ var WebhooksAPI = class {
2915
2951
  * @param options - The options for deleting the webhook
2916
2952
  */
2917
2953
  async delete(id, { token, reason, signal } = {}) {
2918
- await this.rest.delete(import_v1017.Routes.webhook(id, token), {
2954
+ await this.rest.delete(import_v1018.Routes.webhook(id, token), {
2919
2955
  reason,
2920
2956
  signal,
2921
2957
  auth: !token
@@ -2931,7 +2967,7 @@ var WebhooksAPI = class {
2931
2967
  * @param options - The options for executing the webhook
2932
2968
  */
2933
2969
  async execute(id, token, { wait, thread_id, with_components, files, ...body }, { signal } = {}) {
2934
- return this.rest.post(import_v1017.Routes.webhook(id, token), {
2970
+ return this.rest.post(import_v1018.Routes.webhook(id, token), {
2935
2971
  query: (0, import_rest10.makeURLSearchParams)({ wait, thread_id, with_components }),
2936
2972
  files,
2937
2973
  body,
@@ -2950,7 +2986,7 @@ var WebhooksAPI = class {
2950
2986
  * @param options - The options for executing the webhook
2951
2987
  */
2952
2988
  async executeSlack(id, token, body, query = {}, { signal } = {}) {
2953
- await this.rest.post(import_v1017.Routes.webhookPlatform(id, token, "slack"), {
2989
+ await this.rest.post(import_v1018.Routes.webhookPlatform(id, token, "slack"), {
2954
2990
  query: (0, import_rest10.makeURLSearchParams)(query),
2955
2991
  body,
2956
2992
  auth: false,
@@ -2968,7 +3004,7 @@ var WebhooksAPI = class {
2968
3004
  * @param options - The options for executing the webhook
2969
3005
  */
2970
3006
  async executeGitHub(id, token, body, query = {}, { signal } = {}) {
2971
- await this.rest.post(import_v1017.Routes.webhookPlatform(id, token, "github"), {
3007
+ await this.rest.post(import_v1018.Routes.webhookPlatform(id, token, "github"), {
2972
3008
  query: (0, import_rest10.makeURLSearchParams)(query),
2973
3009
  body,
2974
3010
  signal,
@@ -2986,7 +3022,7 @@ var WebhooksAPI = class {
2986
3022
  * @param options - The options for fetching the message
2987
3023
  */
2988
3024
  async getMessage(id, token, messageId, query = {}, { signal } = {}) {
2989
- return this.rest.get(import_v1017.Routes.webhookMessage(id, token, messageId), {
3025
+ return this.rest.get(import_v1018.Routes.webhookMessage(id, token, messageId), {
2990
3026
  query: (0, import_rest10.makeURLSearchParams)(query),
2991
3027
  auth: false,
2992
3028
  signal
@@ -3003,7 +3039,7 @@ var WebhooksAPI = class {
3003
3039
  * @param options - The options for editing the message
3004
3040
  */
3005
3041
  async editMessage(id, token, messageId, { thread_id, with_components, files, ...body }, { signal } = {}) {
3006
- return this.rest.patch(import_v1017.Routes.webhookMessage(id, token, messageId), {
3042
+ return this.rest.patch(import_v1018.Routes.webhookMessage(id, token, messageId), {
3007
3043
  query: (0, import_rest10.makeURLSearchParams)({ thread_id, with_components }),
3008
3044
  auth: false,
3009
3045
  body,
@@ -3022,7 +3058,7 @@ var WebhooksAPI = class {
3022
3058
  * @param options - The options for deleting the message
3023
3059
  */
3024
3060
  async deleteMessage(id, token, messageId, query = {}, { signal } = {}) {
3025
- await this.rest.delete(import_v1017.Routes.webhookMessage(id, token, messageId), {
3061
+ await this.rest.delete(import_v1018.Routes.webhookMessage(id, token, messageId), {
3026
3062
  query: (0, import_rest10.makeURLSearchParams)(query),
3027
3063
  auth: false,
3028
3064
  signal
@@ -3037,6 +3073,7 @@ var API = class {
3037
3073
  this.applicationCommands = new ApplicationCommandsAPI(rest);
3038
3074
  this.applications = new ApplicationsAPI(rest);
3039
3075
  this.channels = new ChannelsAPI(rest);
3076
+ this.gateway = new GatewayAPI(rest);
3040
3077
  this.guilds = new GuildsAPI(rest);
3041
3078
  this.invites = new InvitesAPI(rest);
3042
3079
  this.monetization = new MonetizationAPI(rest);
@@ -3058,6 +3095,7 @@ var API = class {
3058
3095
  applicationCommands;
3059
3096
  applications;
3060
3097
  channels;
3098
+ gateway;
3061
3099
  guilds;
3062
3100
  interactions;
3063
3101
  invites;
@@ -3080,7 +3118,7 @@ var import_util = require("@discordjs/util");
3080
3118
  var import_ws = require("@discordjs/ws");
3081
3119
  var import_snowflake = require("@sapphire/snowflake");
3082
3120
  var import_async_event_emitter = require("@vladfrangu/async_event_emitter");
3083
- var import_v1018 = require("discord-api-types/v10");
3121
+ var import_v1019 = require("discord-api-types/v10");
3084
3122
  function createTimer(controller, timeout) {
3085
3123
  return (0, import_node_timers.setTimeout)(() => controller.abort(), timeout);
3086
3124
  }
@@ -3121,7 +3159,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
3121
3159
  const controller = new AbortController();
3122
3160
  let timer = createTimer(controller, timeout);
3123
3161
  await this.gateway.send(shardId, {
3124
- op: import_v1018.GatewayOpcodes.RequestGuildMembers,
3162
+ op: import_v1019.GatewayOpcodes.RequestGuildMembers,
3125
3163
  // eslint-disable-next-line id-length
3126
3164
  d: {
3127
3165
  ...options,
@@ -3129,7 +3167,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
3129
3167
  }
3130
3168
  });
3131
3169
  try {
3132
- const iterator = import_async_event_emitter.AsyncEventEmitter.on(this, import_v1018.GatewayDispatchEvents.GuildMembersChunk, {
3170
+ const iterator = import_async_event_emitter.AsyncEventEmitter.on(this, import_v1019.GatewayDispatchEvents.GuildMembersChunk, {
3133
3171
  signal: controller.signal
3134
3172
  });
3135
3173
  for await (const [{ data }] of iterator) {
@@ -3205,7 +3243,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
3205
3243
  let timer = createTimer(controller, timeout);
3206
3244
  for (const [shardId, guildIds] of shardIds) {
3207
3245
  await this.gateway.send(shardId, {
3208
- op: import_v1018.GatewayOpcodes.RequestSoundboardSounds,
3246
+ op: import_v1019.GatewayOpcodes.RequestSoundboardSounds,
3209
3247
  // eslint-disable-next-line id-length
3210
3248
  d: {
3211
3249
  ...options,
@@ -3214,7 +3252,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
3214
3252
  });
3215
3253
  }
3216
3254
  try {
3217
- const iterator = import_async_event_emitter.AsyncEventEmitter.on(this, import_v1018.GatewayDispatchEvents.SoundboardSounds, {
3255
+ const iterator = import_async_event_emitter.AsyncEventEmitter.on(this, import_v1019.GatewayDispatchEvents.SoundboardSounds, {
3218
3256
  signal: controller.signal
3219
3257
  });
3220
3258
  const guildIds = new Set(options.guild_ids);
@@ -3271,7 +3309,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
3271
3309
  async updateVoiceState(options) {
3272
3310
  const shardId = (0, import_util.calculateShardId)(options.guild_id, await this.gateway.getShardCount());
3273
3311
  await this.gateway.send(shardId, {
3274
- op: import_v1018.GatewayOpcodes.VoiceStateUpdate,
3312
+ op: import_v1019.GatewayOpcodes.VoiceStateUpdate,
3275
3313
  // eslint-disable-next-line id-length
3276
3314
  d: options
3277
3315
  });
@@ -3284,7 +3322,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
3284
3322
  */
3285
3323
  async updatePresence(shardId, options) {
3286
3324
  await this.gateway.send(shardId, {
3287
- op: import_v1018.GatewayOpcodes.PresenceUpdate,
3325
+ op: import_v1019.GatewayOpcodes.PresenceUpdate,
3288
3326
  // eslint-disable-next-line id-length
3289
3327
  d: options
3290
3328
  });
@@ -3317,7 +3355,7 @@ __name(withFiles, "withFiles");
3317
3355
 
3318
3356
  // src/index.ts
3319
3357
  __reExport(index_exports, require("discord-api-types/v10"), module.exports);
3320
- var version = "3.0.0-dev.1759363313-f510b5ffa";
3358
+ var version = "3.0.0-dev.1759622511-ffbb7b693";
3321
3359
  // Annotate the CommonJS export names for ESM import in node:
3322
3360
  0 && (module.exports = {
3323
3361
  API,
@@ -3325,6 +3363,7 @@ var version = "3.0.0-dev.1759363313-f510b5ffa";
3325
3363
  ApplicationsAPI,
3326
3364
  ChannelsAPI,
3327
3365
  Client,
3366
+ GatewayAPI,
3328
3367
  GuildsAPI,
3329
3368
  InteractionsAPI,
3330
3369
  InvitesAPI,