diff --git a/deno/v8/payloads/channel.ts b/deno/v8/payloads/channel.ts index 5c60068e..ddfb9f26 100644 --- a/deno/v8/payloads/channel.ts +++ b/deno/v8/payloads/channel.ts @@ -99,6 +99,12 @@ export interface APIChannel extends APIPartialChannel { * This may be `null` in events such as `GUILD_CREATE` when a message is not pinned */ last_pin_timestamp?: string | null; + /** + * Voice region id for the voice or stage channel, automatic when set to `null` + * + * See https://discord.com/developers/docs/resources/voice#voice-region-object + */ + rtc_region: string | null; /** * The camera video quality mode of the voice channel, `1` when not present * diff --git a/deno/v8/payloads/guild.ts b/deno/v8/payloads/guild.ts index f518f366..e1d625b7 100644 --- a/deno/v8/payloads/guild.ts +++ b/deno/v8/payloads/guild.ts @@ -114,6 +114,7 @@ export interface APIGuild extends APIPartialGuild { * Voice region id for the guild * * See 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; /** diff --git a/deno/v8/rest/channel.ts b/deno/v8/rest/channel.ts index b0e97ace..eb76895c 100644 --- a/deno/v8/rest/channel.ts +++ b/deno/v8/rest/channel.ts @@ -89,6 +89,12 @@ export interface RESTPatchAPIChannelJSONBody { * Channel types: text, news, store, voice */ parent_id?: Snowflake | null; + /** + * Voice region id for the voice or stage channel, automatic when set to `null` + * + * See https://discord.com/developers/docs/resources/voice#voice-region-object + */ + rtc_region?: string | null; /** * The camera video quality mode of the voice channel * diff --git a/v8/payloads/channel.ts b/v8/payloads/channel.ts index 5ccf118d..c8f7e206 100644 --- a/v8/payloads/channel.ts +++ b/v8/payloads/channel.ts @@ -99,6 +99,12 @@ export interface APIChannel extends APIPartialChannel { * This may be `null` in events such as `GUILD_CREATE` when a message is not pinned */ last_pin_timestamp?: string | null; + /** + * Voice region id for the voice or stage channel, automatic when set to `null` + * + * See https://discord.com/developers/docs/resources/voice#voice-region-object + */ + rtc_region: string | null; /** * The camera video quality mode of the voice channel, `1` when not present * diff --git a/v8/payloads/guild.ts b/v8/payloads/guild.ts index adf21605..57fc5348 100644 --- a/v8/payloads/guild.ts +++ b/v8/payloads/guild.ts @@ -114,6 +114,7 @@ export interface APIGuild extends APIPartialGuild { * Voice region id for the guild * * See 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; /** diff --git a/v8/rest/channel.ts b/v8/rest/channel.ts index 18cf2b19..0430442f 100644 --- a/v8/rest/channel.ts +++ b/v8/rest/channel.ts @@ -89,6 +89,12 @@ export interface RESTPatchAPIChannelJSONBody { * Channel types: text, news, store, voice */ parent_id?: Snowflake | null; + /** + * Voice region id for the voice or stage channel, automatic when set to `null` + * + * See https://discord.com/developers/docs/resources/voice#voice-region-object + */ + rtc_region?: string | null; /** * The camera video quality mode of the voice channel *