@discordjs/core 3.0.0-dev.1776125601-58c5ebdd0 → 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/http-only.d.mts
CHANGED
|
@@ -219,6 +219,15 @@ declare class ApplicationsAPI {
|
|
|
219
219
|
* @param options - The options for deleting the emoji
|
|
220
220
|
*/
|
|
221
221
|
deleteEmoji(applicationId: Snowflake, emojiId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
|
|
222
|
+
/**
|
|
223
|
+
* Fetches an activity instance of an application
|
|
224
|
+
*
|
|
225
|
+
* @see {@link https://docs.discord.com/developers/resources/application#get-application-activity-instance}
|
|
226
|
+
* @param applicationId - The id of the application to fetch the activity instance of
|
|
227
|
+
* @param instanceId - The id of the activity instance to fetch
|
|
228
|
+
* @param options - The options for fetching the activity instance
|
|
229
|
+
*/
|
|
230
|
+
getActivityInstance(applicationId: Snowflake, instanceId: string, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIActivityInstance>;
|
|
222
231
|
}
|
|
223
232
|
|
|
224
233
|
interface StartForumThreadOptions extends RESTPostAPIGuildForumThreadsJSONBody {
|
package/dist/http-only.d.ts
CHANGED
|
@@ -219,6 +219,15 @@ declare class ApplicationsAPI {
|
|
|
219
219
|
* @param options - The options for deleting the emoji
|
|
220
220
|
*/
|
|
221
221
|
deleteEmoji(applicationId: Snowflake, emojiId: Snowflake, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
|
|
222
|
+
/**
|
|
223
|
+
* Fetches an activity instance of an application
|
|
224
|
+
*
|
|
225
|
+
* @see {@link https://docs.discord.com/developers/resources/application#get-application-activity-instance}
|
|
226
|
+
* @param applicationId - The id of the application to fetch the activity instance of
|
|
227
|
+
* @param instanceId - The id of the activity instance to fetch
|
|
228
|
+
* @param options - The options for fetching the activity instance
|
|
229
|
+
*/
|
|
230
|
+
getActivityInstance(applicationId: Snowflake, instanceId: string, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<discord_api_types_v10.APIActivityInstance>;
|
|
222
231
|
}
|
|
223
232
|
|
|
224
233
|
interface StartForumThreadOptions extends RESTPostAPIGuildForumThreadsJSONBody {
|
package/dist/http-only.js
CHANGED
|
@@ -385,6 +385,20 @@ var ApplicationsAPI = class {
|
|
|
385
385
|
async deleteEmoji(applicationId, emojiId, { auth, signal } = {}) {
|
|
386
386
|
await this.rest.delete(import_v102.Routes.applicationEmoji(applicationId, emojiId), { auth, signal });
|
|
387
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* Fetches an activity instance of an application
|
|
390
|
+
*
|
|
391
|
+
* @see {@link https://docs.discord.com/developers/resources/application#get-application-activity-instance}
|
|
392
|
+
* @param applicationId - The id of the application to fetch the activity instance of
|
|
393
|
+
* @param instanceId - The id of the activity instance to fetch
|
|
394
|
+
* @param options - The options for fetching the activity instance
|
|
395
|
+
*/
|
|
396
|
+
async getActivityInstance(applicationId, instanceId, { auth, signal } = {}) {
|
|
397
|
+
return this.rest.get(import_v102.Routes.applicationActivityInstance(applicationId, instanceId), {
|
|
398
|
+
auth,
|
|
399
|
+
signal
|
|
400
|
+
});
|
|
401
|
+
}
|
|
388
402
|
};
|
|
389
403
|
|
|
390
404
|
// src/api/channel.ts
|
|
@@ -3185,7 +3199,7 @@ __name(withFiles, "withFiles");
|
|
|
3185
3199
|
|
|
3186
3200
|
// src/http-only/index.ts
|
|
3187
3201
|
__reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
|
|
3188
|
-
var version = "3.0.0-dev.
|
|
3202
|
+
var version = "3.0.0-dev.1777075897-40ce0791a";
|
|
3189
3203
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3190
3204
|
0 && (module.exports = {
|
|
3191
3205
|
API,
|