@discordjs/core 3.0.0-dev.1776730371-8ea7c7c7e → 3.0.0-dev.1777075897-40ce0791a
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 -0
- package/dist/http-only.d.ts +9 -0
- package/dist/http-only.js +15 -1
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +15 -1
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -223,6 +223,15 @@ declare class ApplicationsAPI {
|
|
|
223
223
|
* @param options - The options for deleting the emoji
|
|
224
224
|
*/
|
|
225
225
|
deleteEmoji(applicationId: Snowflake, emojiId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
|
|
226
|
+
/**
|
|
227
|
+
* Fetches an activity instance of an application
|
|
228
|
+
*
|
|
229
|
+
* @see {@link https://docs.discord.com/developers/resources/application#get-application-activity-instance}
|
|
230
|
+
* @param applicationId - The id of the application to fetch the activity instance of
|
|
231
|
+
* @param instanceId - The id of the activity instance to fetch
|
|
232
|
+
* @param options - The options for fetching the activity instance
|
|
233
|
+
*/
|
|
234
|
+
getActivityInstance(applicationId: Snowflake, instanceId: string, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIActivityInstance>;
|
|
226
235
|
}
|
|
227
236
|
|
|
228
237
|
interface StartForumThreadOptions extends RESTPostAPIGuildForumThreadsJSONBody {
|
package/dist/index.d.ts
CHANGED
|
@@ -223,6 +223,15 @@ declare class ApplicationsAPI {
|
|
|
223
223
|
* @param options - The options for deleting the emoji
|
|
224
224
|
*/
|
|
225
225
|
deleteEmoji(applicationId: Snowflake, emojiId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
|
|
226
|
+
/**
|
|
227
|
+
* Fetches an activity instance of an application
|
|
228
|
+
*
|
|
229
|
+
* @see {@link https://docs.discord.com/developers/resources/application#get-application-activity-instance}
|
|
230
|
+
* @param applicationId - The id of the application to fetch the activity instance of
|
|
231
|
+
* @param instanceId - The id of the activity instance to fetch
|
|
232
|
+
* @param options - The options for fetching the activity instance
|
|
233
|
+
*/
|
|
234
|
+
getActivityInstance(applicationId: Snowflake, instanceId: string, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIActivityInstance>;
|
|
226
235
|
}
|
|
227
236
|
|
|
228
237
|
interface StartForumThreadOptions extends RESTPostAPIGuildForumThreadsJSONBody {
|
package/dist/index.js
CHANGED
|
@@ -387,6 +387,20 @@ var ApplicationsAPI = class {
|
|
|
387
387
|
async deleteEmoji(applicationId, emojiId, { auth, signal } = {}) {
|
|
388
388
|
await this.rest.delete(import_v102.Routes.applicationEmoji(applicationId, emojiId), { auth, signal });
|
|
389
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
* Fetches an activity instance of an application
|
|
392
|
+
*
|
|
393
|
+
* @see {@link https://docs.discord.com/developers/resources/application#get-application-activity-instance}
|
|
394
|
+
* @param applicationId - The id of the application to fetch the activity instance of
|
|
395
|
+
* @param instanceId - The id of the activity instance to fetch
|
|
396
|
+
* @param options - The options for fetching the activity instance
|
|
397
|
+
*/
|
|
398
|
+
async getActivityInstance(applicationId, instanceId, { auth, signal } = {}) {
|
|
399
|
+
return this.rest.get(import_v102.Routes.applicationActivityInstance(applicationId, instanceId), {
|
|
400
|
+
auth,
|
|
401
|
+
signal
|
|
402
|
+
});
|
|
403
|
+
}
|
|
390
404
|
};
|
|
391
405
|
|
|
392
406
|
// src/api/channel.ts
|
|
@@ -3424,7 +3438,7 @@ __name(withFiles, "withFiles");
|
|
|
3424
3438
|
// src/index.ts
|
|
3425
3439
|
__reExport(index_exports, require("discord-api-types/v10"), module.exports);
|
|
3426
3440
|
var import_util2 = require("@discordjs/util");
|
|
3427
|
-
var version = "3.0.0-dev.
|
|
3441
|
+
var version = "3.0.0-dev.1777075897-40ce0791a";
|
|
3428
3442
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3429
3443
|
0 && (module.exports = {
|
|
3430
3444
|
API,
|