From b7b855b2005bb3989810850d6e00bec443a15c92 Mon Sep 17 00:00:00 2001 From: Vitor Date: Mon, 29 Aug 2022 20:00:47 +0100 Subject: [PATCH] fix(RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody): `channel_id` is optional (#547) --- deno/rest/v10/guild.ts | 2 +- deno/rest/v9/guild.ts | 2 +- rest/v10/guild.ts | 2 +- rest/v9/guild.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno/rest/v10/guild.ts b/deno/rest/v10/guild.ts index f94412018..8d013d111 100644 --- a/deno/rest/v10/guild.ts +++ b/deno/rest/v10/guild.ts @@ -861,7 +861,7 @@ export type RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody = AddUndefinedToPos /** * The id of the channel the user is currently in */ - channel_id: Snowflake; + channel_id?: Snowflake; /** * Toggles the user's suppress state */ diff --git a/deno/rest/v9/guild.ts b/deno/rest/v9/guild.ts index 7c9b9bd89..0b319ca7d 100644 --- a/deno/rest/v9/guild.ts +++ b/deno/rest/v9/guild.ts @@ -867,7 +867,7 @@ export type RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody = AddUndefinedToPos /** * The id of the channel the user is currently in */ - channel_id: Snowflake; + channel_id?: Snowflake; /** * Toggles the user's suppress state */ diff --git a/rest/v10/guild.ts b/rest/v10/guild.ts index 4ce3b5d39..3edda535a 100644 --- a/rest/v10/guild.ts +++ b/rest/v10/guild.ts @@ -861,7 +861,7 @@ export type RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody = AddUndefinedToPos /** * The id of the channel the user is currently in */ - channel_id: Snowflake; + channel_id?: Snowflake; /** * Toggles the user's suppress state */ diff --git a/rest/v9/guild.ts b/rest/v9/guild.ts index 491497e94..15acad870 100644 --- a/rest/v9/guild.ts +++ b/rest/v9/guild.ts @@ -867,7 +867,7 @@ export type RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody = AddUndefinedToPos /** * The id of the channel the user is currently in */ - channel_id: Snowflake; + channel_id?: Snowflake; /** * Toggles the user's suppress state */