Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(GatewayVoiceState): some fields are optional instead of nullable #345

Merged
merged 1 commit into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deno/payloads/v10/voice.ts
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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