From e822e45b3b6e07eb85a45039975cb33636765f5e Mon Sep 17 00:00:00 2001 From: Parbez Date: Sat, 12 Mar 2022 17:23:07 +0530 Subject: [PATCH] revert: fix(GatewayVoiceState): some fields are optional instead of nullable (#367) --- 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 e1758600..2474aa8e 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; + 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; } /** diff --git a/deno/payloads/v9/voice.ts b/deno/payloads/v9/voice.ts index e1758600..2474aa8e 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; + 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; } /** diff --git a/payloads/v10/voice.ts b/payloads/v10/voice.ts index 2e3964bb..d2a100a5 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; + 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; } /** diff --git a/payloads/v9/voice.ts b/payloads/v9/voice.ts index 2e3964bb..d2a100a5 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; + 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; } /**