fix(Guild): correct optionality and nullability (#1574)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Almeida
2026-03-19 11:08:15 +00:00
committed by GitHub
parent f76c2fa249
commit cf6476dc8a
8 changed files with 20 additions and 20 deletions

View File

@@ -127,7 +127,7 @@ export interface APIGuild extends APIPartialGuild {
* @see {@link https://discord.com/developers/docs/resources/voice#voice-region-object}
* @deprecated This field has been deprecated in favor of `rtc_region` on the channel.
*/
region: string;
region?: string | null;
/**
* ID of afk channel
*/
@@ -275,7 +275,7 @@ export interface APIGuild extends APIPartialGuild {
*
* @see {@link https://discord.com/developers/docs/resources/sticker#sticker-object}
*/
stickers: APISticker[];
stickers?: APISticker[];
/**
* Whether the guild has the boost progress bar enabled.
*/
@@ -638,7 +638,7 @@ export interface APIGuildPreview {
/**
* The description for the guild
*/
description: string;
description: string | null;
/**
* Custom guild stickers
*/

View File

@@ -127,7 +127,7 @@ export interface APIGuild extends APIPartialGuild {
* @see {@link https://discord.com/developers/docs/resources/voice#voice-region-object}
* @deprecated This field has been deprecated in favor of `rtc_region` on the channel.
*/
region: string;
region?: string | null;
/**
* ID of afk channel
*/
@@ -275,7 +275,7 @@ export interface APIGuild extends APIPartialGuild {
*
* @see {@link https://discord.com/developers/docs/resources/sticker#sticker-object}
*/
stickers: APISticker[];
stickers?: APISticker[];
/**
* Whether the guild has the boost progress bar enabled.
*/
@@ -630,7 +630,7 @@ export interface APIGuildPreview {
/**
* The description for the guild
*/
description: string;
description: string | null;
/**
* Custom guild stickers
*/

View File

@@ -382,11 +382,11 @@ export type RESTPatchAPIGuildChannelPositionsJSONBody = {
/**
* Sorting position of the channel
*/
position: number;
position?: number | null | undefined;
/**
* Sync channel overwrites with the new parent, when moving to a new `parent_id`
*/
lock_permissions?: boolean | undefined;
lock_permissions?: boolean | null | undefined;
/**
* The new parent id of this channel
*/

4
deno/rest/v9/guild.ts generated
View File

@@ -382,11 +382,11 @@ export type RESTPatchAPIGuildChannelPositionsJSONBody = {
/**
* Sorting position of the channel
*/
position: number;
position?: number | null | undefined;
/**
* Sync channel overwrites with the new parent, when moving to a new `parent_id`
*/
lock_permissions?: boolean | undefined;
lock_permissions?: boolean | null | undefined;
/**
* The new parent id of this channel
*/

View File

@@ -127,7 +127,7 @@ export interface APIGuild extends APIPartialGuild {
* @see {@link https://discord.com/developers/docs/resources/voice#voice-region-object}
* @deprecated This field has been deprecated in favor of `rtc_region` on the channel.
*/
region: string;
region?: string | null;
/**
* ID of afk channel
*/
@@ -275,7 +275,7 @@ export interface APIGuild extends APIPartialGuild {
*
* @see {@link https://discord.com/developers/docs/resources/sticker#sticker-object}
*/
stickers: APISticker[];
stickers?: APISticker[];
/**
* Whether the guild has the boost progress bar enabled.
*/
@@ -638,7 +638,7 @@ export interface APIGuildPreview {
/**
* The description for the guild
*/
description: string;
description: string | null;
/**
* Custom guild stickers
*/

View File

@@ -127,7 +127,7 @@ export interface APIGuild extends APIPartialGuild {
* @see {@link https://discord.com/developers/docs/resources/voice#voice-region-object}
* @deprecated This field has been deprecated in favor of `rtc_region` on the channel.
*/
region: string;
region?: string | null;
/**
* ID of afk channel
*/
@@ -275,7 +275,7 @@ export interface APIGuild extends APIPartialGuild {
*
* @see {@link https://discord.com/developers/docs/resources/sticker#sticker-object}
*/
stickers: APISticker[];
stickers?: APISticker[];
/**
* Whether the guild has the boost progress bar enabled.
*/
@@ -630,7 +630,7 @@ export interface APIGuildPreview {
/**
* The description for the guild
*/
description: string;
description: string | null;
/**
* Custom guild stickers
*/

View File

@@ -382,11 +382,11 @@ export type RESTPatchAPIGuildChannelPositionsJSONBody = {
/**
* Sorting position of the channel
*/
position: number;
position?: number | null | undefined;
/**
* Sync channel overwrites with the new parent, when moving to a new `parent_id`
*/
lock_permissions?: boolean | undefined;
lock_permissions?: boolean | null | undefined;
/**
* The new parent id of this channel
*/

View File

@@ -382,11 +382,11 @@ export type RESTPatchAPIGuildChannelPositionsJSONBody = {
/**
* Sorting position of the channel
*/
position: number;
position?: number | null | undefined;
/**
* Sync channel overwrites with the new parent, when moving to a new `parent_id`
*/
lock_permissions?: boolean | undefined;
lock_permissions?: boolean | null | undefined;
/**
* The new parent id of this channel
*/