Skip to content

Commit

Permalink
revert: fix(GatewayVoiceState): some fields are optional instead of n…
Browse files Browse the repository at this point in the history
…ullable (#367)
  • Loading branch information
imranbarbhuiya committed Mar 12, 2022
1 parent fa740eb commit e822e45
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions deno/payloads/v10/voice.ts
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions deno/payloads/v9/voice.ts
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions payloads/v10/voice.ts
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions payloads/v9/voice.ts
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit e822e45

Please sign in to comment.