Skip to content

Commit f2401cd

Browse files
fix: use APIVoiceState
1 parent cdc49b0 commit f2401cd

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

deno/gateway/v10.ts

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/gateway/v9.ts

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gateway/v10.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import type {
4747
GatewayGuildMembersChunkPresence,
4848
APIBaseMessage,
4949
APIVoiceStateMember,
50+
APIVoiceState,
5051
} from '../payloads/v10/index';
5152
import type { ReactionType } from '../rest/v10/index';
5253
import type { _Nullable } from '../utils/internals';
@@ -2098,7 +2099,7 @@ export type GatewayVoiceStateUpdateDispatch = _DataPayload<
20982099
/**
20992100
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-state-update}
21002101
*/
2101-
export interface GatewayVoiceStateUpdateDispatchData extends APIBaseVoiceState, APIVoiceStateMember {}
2102+
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
21022103

21032104
/**
21042105
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-server-update}

gateway/v9.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import type {
4747
APIBaseMessage,
4848
APIGuildMemberJoined,
4949
APIVoiceStateMember,
50+
APIVoiceState,
5051
} from '../payloads/v9/index';
5152
import type { ReactionType } from '../rest/v9/index';
5253
import type { _Nullable } from '../utils/internals';
@@ -2097,7 +2098,7 @@ export type GatewayVoiceStateUpdateDispatch = _DataPayload<
20972098
/**
20982099
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-state-update}
20992100
*/
2100-
export interface GatewayVoiceStateUpdateDispatchData extends APIBaseVoiceState, APIVoiceStateMember {}
2101+
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
21012102

21022103
/**
21032104
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-server-update}

0 commit comments

Comments
 (0)