From 95b186deb7410ff5a667a1cbac5e7b6dd915f6fe Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sat, 4 Oct 2025 13:45:59 +0100 Subject: [PATCH] fix: `@unstable` screening (#1389) --- deno/payloads/v10/guild.ts | 11 +++++++++-- deno/payloads/v9/guild.ts | 11 +++++++++-- deno/rest/v10/guild.ts | 6 ++++++ deno/rest/v10/mod.ts | 2 ++ deno/rest/v9/guild.ts | 6 ++++++ deno/rest/v9/mod.ts | 2 ++ payloads/v10/guild.ts | 11 +++++++++-- payloads/v9/guild.ts | 11 +++++++++-- rest/v10/guild.ts | 6 ++++++ rest/v10/index.ts | 2 ++ rest/v9/guild.ts | 6 ++++++ rest/v9/index.ts | 2 ++ 12 files changed, 68 insertions(+), 8 deletions(-) diff --git a/deno/payloads/v10/guild.ts b/deno/payloads/v10/guild.ts index 0745b6d5..663f21fd 100644 --- a/deno/payloads/v10/guild.ts +++ b/deno/payloads/v10/guild.ts @@ -1074,6 +1074,9 @@ export interface APIGuildWelcomeScreenChannel { emoji_name: string | null; } +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export interface APIGuildMembershipScreening { /** * When the fields were last updated @@ -1089,8 +1092,9 @@ export interface APIGuildMembershipScreening { description: string | null; } -// TODO: make this a union based on the type in the future, when new types are added - +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export interface APIGuildMembershipScreeningField { /** * The type of field @@ -1110,6 +1114,9 @@ export interface APIGuildMembershipScreeningField { required: boolean; } +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export enum MembershipScreeningFieldType { /** * Server Rules diff --git a/deno/payloads/v9/guild.ts b/deno/payloads/v9/guild.ts index 86f0172b..e1ccbb3b 100644 --- a/deno/payloads/v9/guild.ts +++ b/deno/payloads/v9/guild.ts @@ -1066,6 +1066,9 @@ export interface APIGuildWelcomeScreenChannel { emoji_name: string | null; } +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export interface APIGuildMembershipScreening { /** * When the fields were last updated @@ -1081,8 +1084,9 @@ export interface APIGuildMembershipScreening { description: string | null; } -// TODO: make this a union based on the type in the future, when new types are added - +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export interface APIGuildMembershipScreeningField { /** * The type of field @@ -1102,6 +1106,9 @@ export interface APIGuildMembershipScreeningField { required: boolean; } +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export enum MembershipScreeningFieldType { /** * Server Rules diff --git a/deno/rest/v10/guild.ts b/deno/rest/v10/guild.ts index 579e0c43..3075a256 100644 --- a/deno/rest/v10/guild.ts +++ b/deno/rest/v10/guild.ts @@ -931,6 +931,9 @@ export type RESTGetAPIGuildWidgetImageResult = ArrayBuffer; export type RESTGetAPIGuildMemberVerificationResult = APIGuildMembershipScreening; +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export interface RESTPatchAPIGuildMemberVerificationJSONBody { /** * Whether Membership Screening is enabled @@ -946,6 +949,9 @@ export interface RESTPatchAPIGuildMemberVerificationJSONBody { description?: string | null | undefined; } +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export type RESTPatchAPIGuildMemberVerificationResult = APIGuildMembershipScreening; /** diff --git a/deno/rest/v10/mod.ts b/deno/rest/v10/mod.ts index 3a143632..8102980e 100644 --- a/deno/rest/v10/mod.ts +++ b/deno/rest/v10/mod.ts @@ -808,6 +808,8 @@ export const Routes = { * Route for: * - GET `/guilds/{guild.id}/member-verification` * - PATCH `/guilds/{guild.id}/member-verification` + * + * @unstable https://github.com/discord/discord-api-docs/pull/2547 */ guildMemberVerification(guildId: Snowflake) { return `/guilds/${guildId}/member-verification` as const; diff --git a/deno/rest/v9/guild.ts b/deno/rest/v9/guild.ts index f92ed1ac..a5c80aa4 100644 --- a/deno/rest/v9/guild.ts +++ b/deno/rest/v9/guild.ts @@ -937,6 +937,9 @@ export type RESTGetAPIGuildWidgetImageResult = ArrayBuffer; export type RESTGetAPIGuildMemberVerificationResult = APIGuildMembershipScreening; +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export interface RESTPatchAPIGuildMemberVerificationJSONBody { /** * Whether Membership Screening is enabled @@ -952,6 +955,9 @@ export interface RESTPatchAPIGuildMemberVerificationJSONBody { description?: string | null | undefined; } +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export type RESTPatchAPIGuildMemberVerificationResult = APIGuildMembershipScreening; /** diff --git a/deno/rest/v9/mod.ts b/deno/rest/v9/mod.ts index 67823615..09798dc5 100644 --- a/deno/rest/v9/mod.ts +++ b/deno/rest/v9/mod.ts @@ -817,6 +817,8 @@ export const Routes = { * Route for: * - GET `/guilds/{guild.id}/member-verification` * - PATCH `/guilds/{guild.id}/member-verification` + * + * @unstable https://github.com/discord/discord-api-docs/pull/2547 */ guildMemberVerification(guildId: Snowflake) { return `/guilds/${guildId}/member-verification` as const; diff --git a/payloads/v10/guild.ts b/payloads/v10/guild.ts index 949e6617..32d8f10d 100644 --- a/payloads/v10/guild.ts +++ b/payloads/v10/guild.ts @@ -1074,6 +1074,9 @@ export interface APIGuildWelcomeScreenChannel { emoji_name: string | null; } +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export interface APIGuildMembershipScreening { /** * When the fields were last updated @@ -1089,8 +1092,9 @@ export interface APIGuildMembershipScreening { description: string | null; } -// TODO: make this a union based on the type in the future, when new types are added - +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export interface APIGuildMembershipScreeningField { /** * The type of field @@ -1110,6 +1114,9 @@ export interface APIGuildMembershipScreeningField { required: boolean; } +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export enum MembershipScreeningFieldType { /** * Server Rules diff --git a/payloads/v9/guild.ts b/payloads/v9/guild.ts index f2b53ff4..27105e71 100644 --- a/payloads/v9/guild.ts +++ b/payloads/v9/guild.ts @@ -1066,6 +1066,9 @@ export interface APIGuildWelcomeScreenChannel { emoji_name: string | null; } +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export interface APIGuildMembershipScreening { /** * When the fields were last updated @@ -1081,8 +1084,9 @@ export interface APIGuildMembershipScreening { description: string | null; } -// TODO: make this a union based on the type in the future, when new types are added - +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export interface APIGuildMembershipScreeningField { /** * The type of field @@ -1102,6 +1106,9 @@ export interface APIGuildMembershipScreeningField { required: boolean; } +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export enum MembershipScreeningFieldType { /** * Server Rules diff --git a/rest/v10/guild.ts b/rest/v10/guild.ts index 6d85dd56..53a50d9f 100644 --- a/rest/v10/guild.ts +++ b/rest/v10/guild.ts @@ -931,6 +931,9 @@ export type RESTGetAPIGuildWidgetImageResult = ArrayBuffer; export type RESTGetAPIGuildMemberVerificationResult = APIGuildMembershipScreening; +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export interface RESTPatchAPIGuildMemberVerificationJSONBody { /** * Whether Membership Screening is enabled @@ -946,6 +949,9 @@ export interface RESTPatchAPIGuildMemberVerificationJSONBody { description?: string | null | undefined; } +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export type RESTPatchAPIGuildMemberVerificationResult = APIGuildMembershipScreening; /** diff --git a/rest/v10/index.ts b/rest/v10/index.ts index 7705936b..3277d092 100644 --- a/rest/v10/index.ts +++ b/rest/v10/index.ts @@ -808,6 +808,8 @@ export const Routes = { * Route for: * - GET `/guilds/{guild.id}/member-verification` * - PATCH `/guilds/{guild.id}/member-verification` + * + * @unstable https://github.com/discord/discord-api-docs/pull/2547 */ guildMemberVerification(guildId: Snowflake) { return `/guilds/${guildId}/member-verification` as const; diff --git a/rest/v9/guild.ts b/rest/v9/guild.ts index ab14bfa9..9194e00a 100644 --- a/rest/v9/guild.ts +++ b/rest/v9/guild.ts @@ -937,6 +937,9 @@ export type RESTGetAPIGuildWidgetImageResult = ArrayBuffer; export type RESTGetAPIGuildMemberVerificationResult = APIGuildMembershipScreening; +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export interface RESTPatchAPIGuildMemberVerificationJSONBody { /** * Whether Membership Screening is enabled @@ -952,6 +955,9 @@ export interface RESTPatchAPIGuildMemberVerificationJSONBody { description?: string | null | undefined; } +/** + * @unstable https://github.com/discord/discord-api-docs/pull/2547 + */ export type RESTPatchAPIGuildMemberVerificationResult = APIGuildMembershipScreening; /** diff --git a/rest/v9/index.ts b/rest/v9/index.ts index 2980e8fd..014d5f92 100644 --- a/rest/v9/index.ts +++ b/rest/v9/index.ts @@ -817,6 +817,8 @@ export const Routes = { * Route for: * - GET `/guilds/{guild.id}/member-verification` * - PATCH `/guilds/{guild.id}/member-verification` + * + * @unstable https://github.com/discord/discord-api-docs/pull/2547 */ guildMemberVerification(guildId: Snowflake) { return `/guilds/${guildId}/member-verification` as const;