mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-05-30 23:40:09 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user