Skip to content

Commit

Permalink
feat(APIChannel): add rtc_region (#108)
Browse files Browse the repository at this point in the history
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Apr 9, 2021
1 parent b90714f commit 07ba907
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deno/v8/payloads/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
1 change: 1 addition & 0 deletions deno/v8/payloads/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down
6 changes: 6 additions & 0 deletions deno/v8/rest/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
6 changes: 6 additions & 0 deletions v8/payloads/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
1 change: 1 addition & 0 deletions v8/payloads/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down
6 changes: 6 additions & 0 deletions v8/rest/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 07ba907

Please sign in to comment.