Skip to content

Commit

Permalink
fix(GatewayVoiceState): some fields are optional instead of nullable (#…
Browse files Browse the repository at this point in the history
…345)

BREAKING CHANGE: `channel_id` and `request_to_speak_timestamp` are correctly typed as optional, not nullable now.
  • Loading branch information
almeidx committed Mar 9, 2022
1 parent e8127b8 commit fddff21
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 | null;
channel_id?: Snowflake;
/**
* 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 | null;
request_to_speak_timestamp?: string;
}

/**
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 | null;
channel_id?: Snowflake;
/**
* 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 | null;
request_to_speak_timestamp?: string;
}

/**
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 | null;
channel_id?: Snowflake;
/**
* 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 | null;
request_to_speak_timestamp?: string;
}

/**
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 | null;
channel_id?: Snowflake;
/**
* 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 | null;
request_to_speak_timestamp?: string;
}

/**
Expand Down

0 comments on commit fddff21

Please sign in to comment.