api-docs: Guild Role Member Counts endpoint (#4628)

This commit is contained in:
Fleny
2026-01-07 13:55:42 -06:00
committed by GitHub
parent 8d90f28307
commit 1b9394244b
5 changed files with 23 additions and 0 deletions
+4
View File
@@ -180,6 +180,9 @@ export function createBotHelpers<TProps extends TransformersDesiredProperties, T
createInvite: async (channelId, options, reason) => {
return await bot.rest.createInvite(channelId, options, reason)
},
getGuildRoleMemberCounts: async (guildId) => {
return await bot.rest.getGuildRoleMemberCounts(guildId)
},
createRole: async (guildId, options, reason) => {
return bot.transformers.role(bot, snakelize(await bot.rest.createRole(guildId, options, reason)), { guildId })
},
@@ -866,6 +869,7 @@ export type BotHelpers<TProps extends TransformersDesiredProperties, TBehavior e
) => Promise<SetupDesiredProps<Sticker, TProps, TBehavior>>
createGuildTemplate: (guildId: BigString, options: CreateTemplate) => Promise<Template>
createInvite: (channelId: BigString, options?: CreateChannelInvite, reason?: string) => Promise<Camelize<DiscordInvite>>
getGuildRoleMemberCounts: (guildId: BigString) => Promise<Record<string, number>>
createRole: (guildId: BigString, options: CreateGuildRole, reason?: string) => Promise<SetupDesiredProps<Role, TProps, TBehavior>>
createScheduledEvent: (
guildId: BigString,