@discordjs/core 1.2.0-dev.1713148053-7baa9e433 → 1.2.0-dev.1713312595-6759f5b9c
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 +11 -11
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.APIChannel>;
|
|
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.APIChannel>;
|
|
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.APIChannel>;
|
|
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.APIChannel>;
|
|
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.APIChannel>;
|
|
567
567
|
/**
|
|
568
568
|
* Edits a guild channel's positions
|
|
569
569
|
*
|
|
@@ -863,7 +863,7 @@ declare class GuildsAPI {
|
|
|
863
863
|
* @param body - The data to create the event with
|
|
864
864
|
* @param options - The options for creating the scheduled event
|
|
865
865
|
*/
|
|
866
|
-
createScheduledEvent(guildId: Snowflake, body: RESTPostAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.
|
|
866
|
+
createScheduledEvent(guildId: Snowflake, body: RESTPostAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildScheduledEvent>;
|
|
867
867
|
/**
|
|
868
868
|
* Fetches a scheduled event for a guild
|
|
869
869
|
*
|
|
@@ -873,7 +873,7 @@ declare class GuildsAPI {
|
|
|
873
873
|
* @param query - The options for fetching the scheduled event
|
|
874
874
|
* @param options - The options for fetching the scheduled event
|
|
875
875
|
*/
|
|
876
|
-
getScheduledEvent(guildId: Snowflake, eventId: Snowflake, query?: RESTGetAPIGuildScheduledEventQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
876
|
+
getScheduledEvent(guildId: Snowflake, eventId: Snowflake, query?: RESTGetAPIGuildScheduledEventQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuildScheduledEvent>;
|
|
877
877
|
/**
|
|
878
878
|
* Edits a scheduled event for a guild
|
|
879
879
|
*
|
|
@@ -883,7 +883,7 @@ declare class GuildsAPI {
|
|
|
883
883
|
* @param body - The new event data
|
|
884
884
|
* @param options - The options for editing the scheduled event
|
|
885
885
|
*/
|
|
886
|
-
editScheduledEvent(guildId: Snowflake, eventId: Snowflake, body: RESTPatchAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.
|
|
886
|
+
editScheduledEvent(guildId: Snowflake, eventId: Snowflake, body: RESTPatchAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildScheduledEvent>;
|
|
887
887
|
/**
|
|
888
888
|
* Deletes a scheduled event for a guild
|
|
889
889
|
*
|
|
@@ -1720,7 +1720,7 @@ declare class UsersAPI {
|
|
|
1720
1720
|
* @param userId - The id of the user to open a DM channel with
|
|
1721
1721
|
* @param options - The options for opening the DM
|
|
1722
1722
|
*/
|
|
1723
|
-
createDM(userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
1723
|
+
createDM(userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIChannel>;
|
|
1724
1724
|
/**
|
|
1725
1725
|
* Gets the current user's connections
|
|
1726
1726
|
*
|
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.APIChannel>;
|
|
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.APIChannel>;
|
|
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.APIChannel>;
|
|
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.APIChannel>;
|
|
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.APIChannel>;
|
|
567
567
|
/**
|
|
568
568
|
* Edits a guild channel's positions
|
|
569
569
|
*
|
|
@@ -863,7 +863,7 @@ declare class GuildsAPI {
|
|
|
863
863
|
* @param body - The data to create the event with
|
|
864
864
|
* @param options - The options for creating the scheduled event
|
|
865
865
|
*/
|
|
866
|
-
createScheduledEvent(guildId: Snowflake, body: RESTPostAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.
|
|
866
|
+
createScheduledEvent(guildId: Snowflake, body: RESTPostAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildScheduledEvent>;
|
|
867
867
|
/**
|
|
868
868
|
* Fetches a scheduled event for a guild
|
|
869
869
|
*
|
|
@@ -873,7 +873,7 @@ declare class GuildsAPI {
|
|
|
873
873
|
* @param query - The options for fetching the scheduled event
|
|
874
874
|
* @param options - The options for fetching the scheduled event
|
|
875
875
|
*/
|
|
876
|
-
getScheduledEvent(guildId: Snowflake, eventId: Snowflake, query?: RESTGetAPIGuildScheduledEventQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
876
|
+
getScheduledEvent(guildId: Snowflake, eventId: Snowflake, query?: RESTGetAPIGuildScheduledEventQuery, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIGuildScheduledEvent>;
|
|
877
877
|
/**
|
|
878
878
|
* Edits a scheduled event for a guild
|
|
879
879
|
*
|
|
@@ -883,7 +883,7 @@ declare class GuildsAPI {
|
|
|
883
883
|
* @param body - The new event data
|
|
884
884
|
* @param options - The options for editing the scheduled event
|
|
885
885
|
*/
|
|
886
|
-
editScheduledEvent(guildId: Snowflake, eventId: Snowflake, body: RESTPatchAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.
|
|
886
|
+
editScheduledEvent(guildId: Snowflake, eventId: Snowflake, body: RESTPatchAPIGuildScheduledEventJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildScheduledEvent>;
|
|
887
887
|
/**
|
|
888
888
|
* Deletes a scheduled event for a guild
|
|
889
889
|
*
|
|
@@ -1720,7 +1720,7 @@ declare class UsersAPI {
|
|
|
1720
1720
|
* @param userId - The id of the user to open a DM channel with
|
|
1721
1721
|
* @param options - The options for opening the DM
|
|
1722
1722
|
*/
|
|
1723
|
-
createDM(userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.
|
|
1723
|
+
createDM(userId: Snowflake, { signal }?: Pick<RequestData, 'signal'>): Promise<discord_api_types_v10.APIChannel>;
|
|
1724
1724
|
/**
|
|
1725
1725
|
* Gets the current user's connections
|
|
1726
1726
|
*
|
package/dist/http-only.js
CHANGED
|
@@ -2654,7 +2654,7 @@ __name(withFiles, "withFiles");
|
|
|
2654
2654
|
|
|
2655
2655
|
// src/http-only/index.ts
|
|
2656
2656
|
__reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
|
|
2657
|
-
var version = "1.2.0-dev.
|
|
2657
|
+
var version = "1.2.0-dev.1713312595-6759f5b9c";
|
|
2658
2658
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2659
2659
|
0 && (module.exports = {
|
|
2660
2660
|
API,
|