From fddff2167c858832d6c61f3efca8d944fd356a85 Mon Sep 17 00:00:00 2001 From: Almeida Date: Wed, 9 Mar 2022 18:45:54 +0000 Subject: [PATCH] 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. --- deno/payloads/v10/voice.ts | 4 ++-- deno/payloads/v9/voice.ts | 4 ++-- payloads/v10/voice.ts | 4 ++-- payloads/v9/voice.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deno/payloads/v10/voice.ts b/deno/payloads/v10/voice.ts index 2474aa8e..e1758600 100644 --- a/deno/payloads/v10/voice.ts +++ b/deno/payloads/v10/voice.ts @@ -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; } /** diff --git a/deno/payloads/v9/voice.ts b/deno/payloads/v9/voice.ts index 2474aa8e..e1758600 100644 --- a/deno/payloads/v9/voice.ts +++ b/deno/payloads/v9/voice.ts @@ -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; } /** diff --git a/payloads/v10/voice.ts b/payloads/v10/voice.ts index d2a100a5..2e3964bb 100644 --- a/payloads/v10/voice.ts +++ b/payloads/v10/voice.ts @@ -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; } /** diff --git a/payloads/v9/voice.ts b/payloads/v9/voice.ts index d2a100a5..2e3964bb 100644 --- a/payloads/v9/voice.ts +++ b/payloads/v9/voice.ts @@ -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; } /**