@discordjs/core 1.2.0-dev.1710029418-5f2095b76 → 1.2.0-dev.1710979855-6cc5fa28e
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/http-only.d.mts +9 -9
- package/dist/http-only.d.ts +9 -9
- package/dist/http-only.js +1 -1
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +1 -1
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/http-only.d.mts
CHANGED
|
@@ -274,7 +274,7 @@ declare class ChannelsAPI {
|
|
|
274
274
|
* @param channelId - The id of the channel
|
|
275
275
|
* @param options - The options for fetching the channel
|
|
276
276
|
*/
|
|
277
|
-
get(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
277
|
+
get(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.GatewayChannelModifyDispatchData>;
|
|
278
278
|
/**
|
|
279
279
|
* Edits a channel
|
|
280
280
|
*
|
|
@@ -283,7 +283,7 @@ declare class ChannelsAPI {
|
|
|
283
283
|
* @param body - The new channel data
|
|
284
284
|
* @param options - The options for editing the channel
|
|
285
285
|
*/
|
|
286
|
-
edit(channelId: Snowflake, body: RESTPatchAPIChannelJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
286
|
+
edit(channelId: Snowflake, body: RESTPatchAPIChannelJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.GatewayChannelModifyDispatchData>;
|
|
287
287
|
/**
|
|
288
288
|
* Deletes a channel
|
|
289
289
|
*
|
|
@@ -291,7 +291,7 @@ declare class ChannelsAPI {
|
|
|
291
291
|
* @param channelId - The id of the channel to delete
|
|
292
292
|
* @param options - The options for deleting the channel
|
|
293
293
|
*/
|
|
294
|
-
delete(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
294
|
+
delete(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.GatewayChannelModifyDispatchData>;
|
|
295
295
|
/**
|
|
296
296
|
* Fetches the messages of a channel
|
|
297
297
|
*
|
|
@@ -407,7 +407,7 @@ declare class ChannelsAPI {
|
|
|
407
407
|
* @param messageId - The id of the message to start the thread from
|
|
408
408
|
* @param options - The options for starting the thread
|
|
409
409
|
*/
|
|
410
|
-
createThread(channelId: Snowflake, body: RESTPostAPIChannelThreadsJSONBody, messageId?: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
410
|
+
createThread(channelId: Snowflake, body: RESTPostAPIChannelThreadsJSONBody, messageId?: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.GatewayChannelModifyDispatchData>;
|
|
411
411
|
/**
|
|
412
412
|
* Creates a new forum post
|
|
413
413
|
*
|
|
@@ -563,7 +563,7 @@ declare class GuildsAPI {
|
|
|
563
563
|
* @param body - The data to create the new channel
|
|
564
564
|
* @param options - The options for creating the guild channel
|
|
565
565
|
*/
|
|
566
|
-
createChannel(guildId: Snowflake, body: RESTPostAPIGuildChannelJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.
|
|
566
|
+
createChannel(guildId: Snowflake, body: RESTPostAPIGuildChannelJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.GatewayChannelModifyDispatchData>;
|
|
567
567
|
/**
|
|
568
568
|
* Edits a guild channel's positions
|
|
569
569
|
*
|
|
@@ -854,7 +854,7 @@ declare class GuildsAPI {
|
|
|
854
854
|
* @param body - The data to create the event with
|
|
855
855
|
* @param options - The options for creating the scheduled event
|
|
856
856
|
*/
|
|
857
|
-
createScheduledEvent(guildId: Snowflake, body: RESTPostAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.
|
|
857
|
+
createScheduledEvent(guildId: Snowflake, body: RESTPostAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.GatewayGuildScheduledEventCreateDispatchData>;
|
|
858
858
|
/**
|
|
859
859
|
* Fetches a scheduled event for a guild
|
|
860
860
|
*
|
|
@@ -864,7 +864,7 @@ declare class GuildsAPI {
|
|
|
864
864
|
* @param query - The options for fetching the scheduled event
|
|
865
865
|
* @param options - The options for fetching the scheduled event
|
|
866
866
|
*/
|
|
867
|
-
getScheduledEvent(guildId: Snowflake, eventId: Snowflake, query?: RESTGetAPIGuildScheduledEventQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
867
|
+
getScheduledEvent(guildId: Snowflake, eventId: Snowflake, query?: RESTGetAPIGuildScheduledEventQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.GatewayGuildScheduledEventCreateDispatchData>;
|
|
868
868
|
/**
|
|
869
869
|
* Edits a scheduled event for a guild
|
|
870
870
|
*
|
|
@@ -874,7 +874,7 @@ declare class GuildsAPI {
|
|
|
874
874
|
* @param body - The new event data
|
|
875
875
|
* @param options - The options for editing the scheduled event
|
|
876
876
|
*/
|
|
877
|
-
editScheduledEvent(guildId: Snowflake, eventId: Snowflake, body: RESTPatchAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.
|
|
877
|
+
editScheduledEvent(guildId: Snowflake, eventId: Snowflake, body: RESTPatchAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.GatewayGuildScheduledEventCreateDispatchData>;
|
|
878
878
|
/**
|
|
879
879
|
* Deletes a scheduled event for a guild
|
|
880
880
|
*
|
|
@@ -1711,7 +1711,7 @@ declare class UsersAPI {
|
|
|
1711
1711
|
* @param userId - The id of the user to open a DM channel with
|
|
1712
1712
|
* @param options - The options for opening the DM
|
|
1713
1713
|
*/
|
|
1714
|
-
createDM(userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
1714
|
+
createDM(userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.GatewayChannelModifyDispatchData>;
|
|
1715
1715
|
/**
|
|
1716
1716
|
* Gets the current user's connections
|
|
1717
1717
|
*
|
package/dist/http-only.d.ts
CHANGED
|
@@ -274,7 +274,7 @@ declare class ChannelsAPI {
|
|
|
274
274
|
* @param channelId - The id of the channel
|
|
275
275
|
* @param options - The options for fetching the channel
|
|
276
276
|
*/
|
|
277
|
-
get(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
277
|
+
get(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.GatewayChannelModifyDispatchData>;
|
|
278
278
|
/**
|
|
279
279
|
* Edits a channel
|
|
280
280
|
*
|
|
@@ -283,7 +283,7 @@ declare class ChannelsAPI {
|
|
|
283
283
|
* @param body - The new channel data
|
|
284
284
|
* @param options - The options for editing the channel
|
|
285
285
|
*/
|
|
286
|
-
edit(channelId: Snowflake, body: RESTPatchAPIChannelJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
286
|
+
edit(channelId: Snowflake, body: RESTPatchAPIChannelJSONBody, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.GatewayChannelModifyDispatchData>;
|
|
287
287
|
/**
|
|
288
288
|
* Deletes a channel
|
|
289
289
|
*
|
|
@@ -291,7 +291,7 @@ declare class ChannelsAPI {
|
|
|
291
291
|
* @param channelId - The id of the channel to delete
|
|
292
292
|
* @param options - The options for deleting the channel
|
|
293
293
|
*/
|
|
294
|
-
delete(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
294
|
+
delete(channelId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.GatewayChannelModifyDispatchData>;
|
|
295
295
|
/**
|
|
296
296
|
* Fetches the messages of a channel
|
|
297
297
|
*
|
|
@@ -407,7 +407,7 @@ declare class ChannelsAPI {
|
|
|
407
407
|
* @param messageId - The id of the message to start the thread from
|
|
408
408
|
* @param options - The options for starting the thread
|
|
409
409
|
*/
|
|
410
|
-
createThread(channelId: Snowflake, body: RESTPostAPIChannelThreadsJSONBody, messageId?: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
410
|
+
createThread(channelId: Snowflake, body: RESTPostAPIChannelThreadsJSONBody, messageId?: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.GatewayChannelModifyDispatchData>;
|
|
411
411
|
/**
|
|
412
412
|
* Creates a new forum post
|
|
413
413
|
*
|
|
@@ -563,7 +563,7 @@ declare class GuildsAPI {
|
|
|
563
563
|
* @param body - The data to create the new channel
|
|
564
564
|
* @param options - The options for creating the guild channel
|
|
565
565
|
*/
|
|
566
|
-
createChannel(guildId: Snowflake, body: RESTPostAPIGuildChannelJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.
|
|
566
|
+
createChannel(guildId: Snowflake, body: RESTPostAPIGuildChannelJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.GatewayChannelModifyDispatchData>;
|
|
567
567
|
/**
|
|
568
568
|
* Edits a guild channel's positions
|
|
569
569
|
*
|
|
@@ -854,7 +854,7 @@ declare class GuildsAPI {
|
|
|
854
854
|
* @param body - The data to create the event with
|
|
855
855
|
* @param options - The options for creating the scheduled event
|
|
856
856
|
*/
|
|
857
|
-
createScheduledEvent(guildId: Snowflake, body: RESTPostAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.
|
|
857
|
+
createScheduledEvent(guildId: Snowflake, body: RESTPostAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.GatewayGuildScheduledEventCreateDispatchData>;
|
|
858
858
|
/**
|
|
859
859
|
* Fetches a scheduled event for a guild
|
|
860
860
|
*
|
|
@@ -864,7 +864,7 @@ declare class GuildsAPI {
|
|
|
864
864
|
* @param query - The options for fetching the scheduled event
|
|
865
865
|
* @param options - The options for fetching the scheduled event
|
|
866
866
|
*/
|
|
867
|
-
getScheduledEvent(guildId: Snowflake, eventId: Snowflake, query?: RESTGetAPIGuildScheduledEventQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
867
|
+
getScheduledEvent(guildId: Snowflake, eventId: Snowflake, query?: RESTGetAPIGuildScheduledEventQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.GatewayGuildScheduledEventCreateDispatchData>;
|
|
868
868
|
/**
|
|
869
869
|
* Edits a scheduled event for a guild
|
|
870
870
|
*
|
|
@@ -874,7 +874,7 @@ declare class GuildsAPI {
|
|
|
874
874
|
* @param body - The new event data
|
|
875
875
|
* @param options - The options for editing the scheduled event
|
|
876
876
|
*/
|
|
877
|
-
editScheduledEvent(guildId: Snowflake, eventId: Snowflake, body: RESTPatchAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.
|
|
877
|
+
editScheduledEvent(guildId: Snowflake, eventId: Snowflake, body: RESTPatchAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.GatewayGuildScheduledEventCreateDispatchData>;
|
|
878
878
|
/**
|
|
879
879
|
* Deletes a scheduled event for a guild
|
|
880
880
|
*
|
|
@@ -1711,7 +1711,7 @@ declare class UsersAPI {
|
|
|
1711
1711
|
* @param userId - The id of the user to open a DM channel with
|
|
1712
1712
|
* @param options - The options for opening the DM
|
|
1713
1713
|
*/
|
|
1714
|
-
createDM(userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
1714
|
+
createDM(userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.GatewayChannelModifyDispatchData>;
|
|
1715
1715
|
/**
|
|
1716
1716
|
* Gets the current user's connections
|
|
1717
1717
|
*
|
package/dist/http-only.js
CHANGED
|
@@ -2639,7 +2639,7 @@ __name(withFiles, "withFiles");
|
|
|
2639
2639
|
|
|
2640
2640
|
// src/http-only/index.ts
|
|
2641
2641
|
__reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
|
|
2642
|
-
var version = "1.2.0-dev.
|
|
2642
|
+
var version = "1.2.0-dev.1710979855-6cc5fa28e";
|
|
2643
2643
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2644
2644
|
0 && (module.exports = {
|
|
2645
2645
|
API,
|