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

BREAKING CHANGE: `channel_id` and `request_to_speak_timestamp` are correctly typed as optional, not nullable now.
This commit is contained in:
Almeida
2022-03-09 18:45:54 +00:00
committed by GitHub
parent e8127b89f8
commit fddff2167c
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 | null;
channel_id?: Snowflake;
/**
* 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 | null;
request_to_speak_timestamp?: string;
}
/**

View File

@@ -16,7 +16,7 @@ export interface GatewayVoiceState {
/**
* The channel id this user is connected to
*/
channel_id: Snowflake | null;
channel_id?: Snowflake;
/**
* 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 | null;
request_to_speak_timestamp?: string;
}
/**

View File

@@ -16,7 +16,7 @@ export interface GatewayVoiceState {
/**
* The channel id this user is connected to
*/
channel_id: Snowflake | null;
channel_id?: Snowflake;
/**
* 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 | null;
request_to_speak_timestamp?: string;
}
/**

View File

@@ -16,7 +16,7 @@ export interface GatewayVoiceState {
/**
* The channel id this user is connected to
*/
channel_id: Snowflake | null;
channel_id?: Snowflake;
/**
* 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 | null;
request_to_speak_timestamp?: string;
}
/**