mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-09-17 16:57:25 +00:00
feat(RESTGetAPICurrentUserGuildsQuery): add with_counts (#641)
This commit is contained in:
@@ -236,11 +236,13 @@ export interface APIGuild extends APIPartialGuild {
|
||||
*/
|
||||
max_video_channel_users?: number;
|
||||
/**
|
||||
* **This field is only received from https://discord.com/developers/docs/resources/guild#get-guild with the `with_counts` query parameter set to `true`**
|
||||
* Approximate number of members in this guild,
|
||||
* returned from the `GET /guilds/<id>` and `/users/@me/guilds` (OAuth2) endpoints when `with_counts` is `true`
|
||||
*/
|
||||
approximate_member_count?: number;
|
||||
/**
|
||||
* **This field is only received from https://discord.com/developers/docs/resources/guild#get-guild with the `with_counts` query parameter set to `true`**
|
||||
* Approximate number of non-offline members in this guild,
|
||||
* returned from the `GET /guilds/<id>` and `/users/@me/guilds` (OAuth2) endpoints when `with_counts` is `true`
|
||||
*/
|
||||
approximate_presence_count?: number;
|
||||
/**
|
||||
|
||||
@@ -236,11 +236,13 @@ export interface APIGuild extends APIPartialGuild {
|
||||
*/
|
||||
max_video_channel_users?: number;
|
||||
/**
|
||||
* **This field is only received from https://discord.com/developers/docs/resources/guild#get-guild with the `with_counts` query parameter set to `true`**
|
||||
* Approximate number of members in this guild,
|
||||
* returned from the `GET /guilds/<id>` and `/users/@me/guilds` (OAuth2) endpoints when `with_counts` is `true`
|
||||
*/
|
||||
approximate_member_count?: number;
|
||||
/**
|
||||
* **This field is only received from https://discord.com/developers/docs/resources/guild#get-guild with the `with_counts` query parameter set to `true`**
|
||||
* Approximate number of non-offline members in this guild,
|
||||
* returned from the `GET /guilds/<id>` and `/users/@me/guilds` (OAuth2) endpoints when `with_counts` is `true`
|
||||
*/
|
||||
approximate_presence_count?: number;
|
||||
/**
|
||||
|
||||
@@ -60,6 +60,12 @@ export interface RESTGetAPICurrentUserGuildsQuery {
|
||||
* @default 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* Include approximate member and presence counts in response
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
with_counts?: boolean;
|
||||
}
|
||||
|
||||
export interface RESTAPIPartialCurrentUserGuild {
|
||||
@@ -69,6 +75,8 @@ export interface RESTAPIPartialCurrentUserGuild {
|
||||
owner: boolean;
|
||||
features: GuildFeature[];
|
||||
permissions: Permissions;
|
||||
approximate_member_count?: number;
|
||||
approximate_presence_count?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,6 +60,12 @@ export interface RESTGetAPICurrentUserGuildsQuery {
|
||||
* @default 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* Include approximate member and presence counts in response
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
with_counts?: boolean;
|
||||
}
|
||||
|
||||
export interface RESTAPIPartialCurrentUserGuild {
|
||||
@@ -69,6 +75,8 @@ export interface RESTAPIPartialCurrentUserGuild {
|
||||
owner: boolean;
|
||||
features: GuildFeature[];
|
||||
permissions: Permissions;
|
||||
approximate_member_count?: number;
|
||||
approximate_presence_count?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -236,11 +236,13 @@ export interface APIGuild extends APIPartialGuild {
|
||||
*/
|
||||
max_video_channel_users?: number;
|
||||
/**
|
||||
* **This field is only received from https://discord.com/developers/docs/resources/guild#get-guild with the `with_counts` query parameter set to `true`**
|
||||
* Approximate number of members in this guild,
|
||||
* returned from the `GET /guilds/<id>` and `/users/@me/guilds` (OAuth2) endpoints when `with_counts` is `true`
|
||||
*/
|
||||
approximate_member_count?: number;
|
||||
/**
|
||||
* **This field is only received from https://discord.com/developers/docs/resources/guild#get-guild with the `with_counts` query parameter set to `true`**
|
||||
* Approximate number of non-offline members in this guild,
|
||||
* returned from the `GET /guilds/<id>` and `/users/@me/guilds` (OAuth2) endpoints when `with_counts` is `true`
|
||||
*/
|
||||
approximate_presence_count?: number;
|
||||
/**
|
||||
|
||||
@@ -236,11 +236,13 @@ export interface APIGuild extends APIPartialGuild {
|
||||
*/
|
||||
max_video_channel_users?: number;
|
||||
/**
|
||||
* **This field is only received from https://discord.com/developers/docs/resources/guild#get-guild with the `with_counts` query parameter set to `true`**
|
||||
* Approximate number of members in this guild,
|
||||
* returned from the `GET /guilds/<id>` and `/users/@me/guilds` (OAuth2) endpoints when `with_counts` is `true`
|
||||
*/
|
||||
approximate_member_count?: number;
|
||||
/**
|
||||
* **This field is only received from https://discord.com/developers/docs/resources/guild#get-guild with the `with_counts` query parameter set to `true`**
|
||||
* Approximate number of non-offline members in this guild,
|
||||
* returned from the `GET /guilds/<id>` and `/users/@me/guilds` (OAuth2) endpoints when `with_counts` is `true`
|
||||
*/
|
||||
approximate_presence_count?: number;
|
||||
/**
|
||||
|
||||
@@ -60,6 +60,12 @@ export interface RESTGetAPICurrentUserGuildsQuery {
|
||||
* @default 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* Include approximate member and presence counts in response
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
with_counts?: boolean;
|
||||
}
|
||||
|
||||
export interface RESTAPIPartialCurrentUserGuild {
|
||||
@@ -69,6 +75,8 @@ export interface RESTAPIPartialCurrentUserGuild {
|
||||
owner: boolean;
|
||||
features: GuildFeature[];
|
||||
permissions: Permissions;
|
||||
approximate_member_count?: number;
|
||||
approximate_presence_count?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,6 +60,12 @@ export interface RESTGetAPICurrentUserGuildsQuery {
|
||||
* @default 200
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* Include approximate member and presence counts in response
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
with_counts?: boolean;
|
||||
}
|
||||
|
||||
export interface RESTAPIPartialCurrentUserGuild {
|
||||
@@ -69,6 +75,8 @@ export interface RESTAPIPartialCurrentUserGuild {
|
||||
owner: boolean;
|
||||
features: GuildFeature[];
|
||||
permissions: Permissions;
|
||||
approximate_member_count?: number;
|
||||
approximate_presence_count?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user