@discordjs/core 0.7.0-dev.1684152268-590f5bc.0 → 0.7.0-dev.1684282301-5d6eed6.0
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/{files-5bae27a9.d.ts → files-2a988976.d.ts} +9 -0
- package/dist/http-only.d.ts +1 -1
- package/dist/http-only.js +12 -1
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +12 -1
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -965,6 +965,15 @@ declare class GuildsAPI {
|
|
|
965
965
|
* @param options - The options for editing the guild member
|
|
966
966
|
*/
|
|
967
967
|
editMember(guildId: Snowflake, userId: Snowflake, body?: RESTPatchAPIGuildMemberJSONBody, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<discord_api_types_v10.APIGuildMember>;
|
|
968
|
+
/**
|
|
969
|
+
* Removes a member from a guild
|
|
970
|
+
*
|
|
971
|
+
* @see {@link https://discord.com/developers/docs/resources/guild#remove-guild-member}
|
|
972
|
+
* @param guildId - The id of the guild
|
|
973
|
+
* @param userId - The id of the user
|
|
974
|
+
* @param options - The options for removing the guild member
|
|
975
|
+
*/
|
|
976
|
+
removeMember(guildId: Snowflake, userId: Snowflake, { reason, signal }?: Pick<RequestData, 'reason' | 'signal'>): Promise<unknown>;
|
|
968
977
|
/**
|
|
969
978
|
* Adds a role to a guild member
|
|
970
979
|
*
|
package/dist/http-only.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as API, a as ApplicationCommandsAPI, C as ChannelsAPI, D as DescriptiveRawFile, G as GuildsAPI, I as InteractionsAPI, b as InvitesAPI, O as OAuth2API, R as RoleConnectionsAPI, c as StartForumThreadOptions, S as StickersAPI, T as ThreadsAPI, U as UsersAPI, V as VoiceAPI, W as WebhooksAPI, w as withFiles } from './files-
|
|
1
|
+
export { A as API, a as ApplicationCommandsAPI, C as ChannelsAPI, D as DescriptiveRawFile, G as GuildsAPI, I as InteractionsAPI, b as InvitesAPI, O as OAuth2API, R as RoleConnectionsAPI, c as StartForumThreadOptions, S as StickersAPI, T as ThreadsAPI, U as UsersAPI, V as VoiceAPI, W as WebhooksAPI, w as withFiles } from './files-2a988976.js';
|
|
2
2
|
export * from 'discord-api-types/v10';
|
|
3
3
|
import '@discordjs/rest';
|
|
4
4
|
|
package/dist/http-only.js
CHANGED
|
@@ -1402,6 +1402,17 @@ var GuildsAPI = class {
|
|
|
1402
1402
|
signal
|
|
1403
1403
|
});
|
|
1404
1404
|
}
|
|
1405
|
+
/**
|
|
1406
|
+
* Removes a member from a guild
|
|
1407
|
+
*
|
|
1408
|
+
* @see {@link https://discord.com/developers/docs/resources/guild#remove-guild-member}
|
|
1409
|
+
* @param guildId - The id of the guild
|
|
1410
|
+
* @param userId - The id of the user
|
|
1411
|
+
* @param options - The options for removing the guild member
|
|
1412
|
+
*/
|
|
1413
|
+
async removeMember(guildId, userId, { reason, signal } = {}) {
|
|
1414
|
+
return this.rest.delete(import_v103.Routes.guildMember(guildId, userId), { reason, signal });
|
|
1415
|
+
}
|
|
1405
1416
|
/**
|
|
1406
1417
|
* Adds a role to a guild member
|
|
1407
1418
|
*
|
|
@@ -2346,7 +2357,7 @@ __name(withFiles, "withFiles");
|
|
|
2346
2357
|
|
|
2347
2358
|
// src/http-only/index.ts
|
|
2348
2359
|
__reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
|
|
2349
|
-
var version = "0.7.0-dev.
|
|
2360
|
+
var version = "0.7.0-dev.1684282301-5d6eed6.0";
|
|
2350
2361
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2351
2362
|
0 && (module.exports = {
|
|
2352
2363
|
API,
|