fix(APIChannel): rtc_region is optional (#118)

BREAKING CHANGE: This corrects the fact that `rtc_region` isn't present on non-voice-like channels
This commit is contained in:
Jan
2021-04-15 16:47:07 +02:00
committed by GitHub
parent df09356edd
commit 617f507427
2 changed files with 2 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ export interface APIChannel extends APIPartialChannel {
*
* See https://discord.com/developers/docs/resources/voice#voice-region-object
*/
rtc_region: string | null;
rtc_region?: string | null;
/**
* The camera video quality mode of the voice channel, `1` when not present
*

View File

@@ -105,7 +105,7 @@ export interface APIChannel extends APIPartialChannel {
*
* See https://discord.com/developers/docs/resources/voice#voice-region-object
*/
rtc_region: string | null;
rtc_region?: string | null;
/**
* The camera video quality mode of the voice channel, `1` when not present
*