@discordjs/core 3.0.0-pr-11005.1765454364-f3f6d34e7 → 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 +19 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
package/dist/http-only.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
|
|
@@ -3159,7 +3172,7 @@ __name(withFiles, "withFiles");
|
|
|
3159
3172
|
|
|
3160
3173
|
// src/http-only/index.ts
|
|
3161
3174
|
export * from "discord-api-types/v10";
|
|
3162
|
-
var version = "3.0.0-pr-
|
|
3175
|
+
var version = "3.0.0-pr-10758.1765463096-d081e1706";
|
|
3163
3176
|
export {
|
|
3164
3177
|
API,
|
|
3165
3178
|
ApplicationCommandsAPI,
|