@discordjs/core 3.0.0-dev.1791979323-03777df7f → 3.0.0-dev.1793491372-107f61dcb
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 +3 -3
- package/dist/http-only.d.ts +3 -3
- package/dist/http-only.js +8 -6
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +8 -6
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/http-only.d.mts
CHANGED
|
@@ -1798,7 +1798,7 @@ declare class InvitesAPI {
|
|
|
1798
1798
|
* @param options - The options for updating the invite target users
|
|
1799
1799
|
* @returns
|
|
1800
1800
|
*/
|
|
1801
|
-
updateTargetUsers(code: string, targetUsersFile: RawFile, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<
|
|
1801
|
+
updateTargetUsers(code: string, targetUsersFile: RawFile, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Fetches an invite's target users job status
|
|
1804
1804
|
*
|
|
@@ -2277,7 +2277,7 @@ declare class VoiceAPI {
|
|
|
2277
2277
|
* @param body - The data for editing the voice state
|
|
2278
2278
|
* @param options - The options for editing the voice state
|
|
2279
2279
|
*/
|
|
2280
|
-
editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<
|
|
2280
|
+
editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
|
|
2281
2281
|
/**
|
|
2282
2282
|
* Edits the voice state for the current user
|
|
2283
2283
|
*
|
|
@@ -2286,7 +2286,7 @@ declare class VoiceAPI {
|
|
|
2286
2286
|
* @param body - The data for editing the voice state
|
|
2287
2287
|
* @param options - The options for editing the voice state
|
|
2288
2288
|
*/
|
|
2289
|
-
editVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<
|
|
2289
|
+
editVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
|
|
2290
2290
|
}
|
|
2291
2291
|
|
|
2292
2292
|
declare class API {
|
package/dist/http-only.d.ts
CHANGED
|
@@ -1798,7 +1798,7 @@ declare class InvitesAPI {
|
|
|
1798
1798
|
* @param options - The options for updating the invite target users
|
|
1799
1799
|
* @returns
|
|
1800
1800
|
*/
|
|
1801
|
-
updateTargetUsers(code: string, targetUsersFile: RawFile, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<
|
|
1801
|
+
updateTargetUsers(code: string, targetUsersFile: RawFile, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Fetches an invite's target users job status
|
|
1804
1804
|
*
|
|
@@ -2277,7 +2277,7 @@ declare class VoiceAPI {
|
|
|
2277
2277
|
* @param body - The data for editing the voice state
|
|
2278
2278
|
* @param options - The options for editing the voice state
|
|
2279
2279
|
*/
|
|
2280
|
-
editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<
|
|
2280
|
+
editUserVoiceState(guildId: Snowflake, userId: Snowflake, body: RESTPatchAPIGuildVoiceStateUserJSONBody, { auth, reason, signal }?: Pick<RequestData, 'auth' | 'reason' | 'signal'>): Promise<void>;
|
|
2281
2281
|
/**
|
|
2282
2282
|
* Edits the voice state for the current user
|
|
2283
2283
|
*
|
|
@@ -2286,7 +2286,7 @@ declare class VoiceAPI {
|
|
|
2286
2286
|
* @param body - The data for editing the voice state
|
|
2287
2287
|
* @param options - The options for editing the voice state
|
|
2288
2288
|
*/
|
|
2289
|
-
editVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<
|
|
2289
|
+
editVoiceState(guildId: Snowflake, body?: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, { auth, signal }?: Pick<RequestData, 'auth' | 'signal'>): Promise<void>;
|
|
2290
2290
|
}
|
|
2291
2291
|
|
|
2292
2292
|
declare class API {
|
package/dist/http-only.js
CHANGED
|
@@ -1050,11 +1050,12 @@ var GuildsAPI = class {
|
|
|
1050
1050
|
* @param options - The options for adding users to the guild
|
|
1051
1051
|
*/
|
|
1052
1052
|
async addMember(guildId, userId, body, { auth, signal } = {}) {
|
|
1053
|
-
|
|
1053
|
+
const response = await this.rest.put(import_v105.Routes.guildMember(guildId, userId), {
|
|
1054
1054
|
auth,
|
|
1055
1055
|
body,
|
|
1056
1056
|
signal
|
|
1057
1057
|
});
|
|
1058
|
+
return response instanceof ArrayBuffer ? void 0 : response;
|
|
1058
1059
|
}
|
|
1059
1060
|
/**
|
|
1060
1061
|
* Fetches members of a guild.
|
|
@@ -2275,7 +2276,7 @@ var InvitesAPI = class {
|
|
|
2275
2276
|
* @returns
|
|
2276
2277
|
*/
|
|
2277
2278
|
async updateTargetUsers(code, targetUsersFile, { auth, signal } = {}) {
|
|
2278
|
-
|
|
2279
|
+
await this.rest.put(import_v107.Routes.inviteTargetUsers(code), {
|
|
2279
2280
|
files: [{ key: "target_users_file", contentType: "text/csv", ...targetUsersFile }],
|
|
2280
2281
|
signal,
|
|
2281
2282
|
auth
|
|
@@ -3041,7 +3042,7 @@ var VoiceAPI = class {
|
|
|
3041
3042
|
* @param options - The options for editing the voice state
|
|
3042
3043
|
*/
|
|
3043
3044
|
async editUserVoiceState(guildId, userId, body, { auth, reason, signal } = {}) {
|
|
3044
|
-
|
|
3045
|
+
await this.rest.patch(import_v1017.Routes.guildVoiceState(guildId, userId), {
|
|
3045
3046
|
auth,
|
|
3046
3047
|
reason,
|
|
3047
3048
|
body,
|
|
@@ -3057,7 +3058,7 @@ var VoiceAPI = class {
|
|
|
3057
3058
|
* @param options - The options for editing the voice state
|
|
3058
3059
|
*/
|
|
3059
3060
|
async editVoiceState(guildId, body = {}, { auth, signal } = {}) {
|
|
3060
|
-
|
|
3061
|
+
await this.rest.patch(import_v1017.Routes.guildVoiceState(guildId, "@me"), {
|
|
3061
3062
|
auth,
|
|
3062
3063
|
body,
|
|
3063
3064
|
signal
|
|
@@ -3132,13 +3133,14 @@ var WebhooksAPI = class {
|
|
|
3132
3133
|
* @param options - The options for executing the webhook
|
|
3133
3134
|
*/
|
|
3134
3135
|
async execute(id, token, { wait, thread_id, with_components, files, ...body }, { signal } = {}) {
|
|
3135
|
-
|
|
3136
|
+
const response = await this.rest.post(import_v1018.Routes.webhook(id, token), {
|
|
3136
3137
|
query: (0, import_rest11.makeURLSearchParams)({ wait, thread_id, with_components }),
|
|
3137
3138
|
files,
|
|
3138
3139
|
body,
|
|
3139
3140
|
auth: false,
|
|
3140
3141
|
signal
|
|
3141
3142
|
});
|
|
3143
|
+
return wait ? response : void 0;
|
|
3142
3144
|
}
|
|
3143
3145
|
/**
|
|
3144
3146
|
* Executes a slack webhook
|
|
@@ -3297,7 +3299,7 @@ __name(withFiles, "withFiles");
|
|
|
3297
3299
|
|
|
3298
3300
|
// src/http-only/index.ts
|
|
3299
3301
|
__reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
|
|
3300
|
-
var version = "3.0.0-dev.
|
|
3302
|
+
var version = "3.0.0-dev.1793491372-107f61dcb";
|
|
3301
3303
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3302
3304
|
0 && (module.exports = {
|
|
3303
3305
|
API,
|