revert: fix(GatewayVoiceState): some fields are optional instead of nullable (#367)

This commit is contained in:
Parbez
2022-03-12 17:23:07 +05:30
committed by GitHub
parent fa740eb16c
commit e822e45b3b
4 changed files with 8 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ export interface GatewayVoiceState {
/**
* The channel id this user is connected to
*/
channel_id?: Snowflake;
channel_id: Snowflake | null;
/**
* The user id this voice state is for
*/
@@ -62,7 +62,7 @@ export interface GatewayVoiceState {
/**
* The time at which the user requested to speak
*/
request_to_speak_timestamp?: string;
request_to_speak_timestamp: string | null;
}
/**

View File

@@ -16,7 +16,7 @@ export interface GatewayVoiceState {
/**
* The channel id this user is connected to
*/
channel_id?: Snowflake;
channel_id: Snowflake | null;
/**
* The user id this voice state is for
*/
@@ -62,7 +62,7 @@ export interface GatewayVoiceState {
/**
* The time at which the user requested to speak
*/
request_to_speak_timestamp?: string;
request_to_speak_timestamp: string | null;
}
/**

View File

@@ -16,7 +16,7 @@ export interface GatewayVoiceState {
/**
* The channel id this user is connected to
*/
channel_id?: Snowflake;
channel_id: Snowflake | null;
/**
* The user id this voice state is for
*/
@@ -62,7 +62,7 @@ export interface GatewayVoiceState {
/**
* The time at which the user requested to speak
*/
request_to_speak_timestamp?: string;
request_to_speak_timestamp: string | null;
}
/**

View File

@@ -16,7 +16,7 @@ export interface GatewayVoiceState {
/**
* The channel id this user is connected to
*/
channel_id?: Snowflake;
channel_id: Snowflake | null;
/**
* The user id this voice state is for
*/
@@ -62,7 +62,7 @@ export interface GatewayVoiceState {
/**
* The time at which the user requested to speak
*/
request_to_speak_timestamp?: string;
request_to_speak_timestamp: string | null;
}
/**