feat(APIChannel): add rtc_region (#108)

Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Advaith
2021-04-09 13:18:32 +03:00
committed by GitHub
co-authored by Vlad Frangu github-actions[bot]
parent b90714f677
commit 07ba907242
6 changed files with 26 additions and 0 deletions
+6
View File
@@ -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
*
+1
View File
@@ -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;
/**
+6
View File
@@ -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
*
+6
View File
@@ -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
*
+1
View File
@@ -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;
/**
+6
View File
@@ -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
*