@discordjs/core 3.0.0-pr-11006.1765452229-e636950b2 → 3.0.0-pr-10758.1765463096-d081e1706
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 -1
- package/dist/http-only.d.ts +9 -1
- package/dist/http-only.js +14 -1
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +14 -1
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1968,6 +1968,19 @@ var GuildsAPI = class {
|
|
|
1968
1968
|
signal
|
|
1969
1969
|
});
|
|
1970
1970
|
}
|
|
1971
|
+
/**
|
|
1972
|
+
* Fetches role member counts for a guild.
|
|
1973
|
+
*
|
|
1974
|
+
* @see {@link https://discord.com/developers/docs/resources/guild#get-guild-role-member-counts}
|
|
1975
|
+
* @param guildId - The id of the guild to fetch role member counts for
|
|
1976
|
+
* @param options - The options for fetching role member counts
|
|
1977
|
+
*/
|
|
1978
|
+
async getRoleMemberCounts(guildId, { auth, signal } = {}) {
|
|
1979
|
+
return this.rest.get(Routes5.guildRoleMemberCounts(guildId), {
|
|
1980
|
+
auth,
|
|
1981
|
+
signal
|
|
1982
|
+
});
|
|
1983
|
+
}
|
|
1971
1984
|
};
|
|
1972
1985
|
|
|
1973
1986
|
// src/api/interactions.ts
|
|
@@ -3399,7 +3412,7 @@ __name(withFiles, "withFiles");
|
|
|
3399
3412
|
// src/index.ts
|
|
3400
3413
|
export * from "discord-api-types/v10";
|
|
3401
3414
|
import { GatewayRateLimitError as GatewayRateLimitError2 } from "@discordjs/util";
|
|
3402
|
-
var version = "3.0.0-pr-
|
|
3415
|
+
var version = "3.0.0-pr-10758.1765463096-d081e1706";
|
|
3403
3416
|
export {
|
|
3404
3417
|
API,
|
|
3405
3418
|
ApplicationCommandsAPI,
|