Skip to content

Commit

Permalink
refactor(types): replace deprecated types (GatewayVoiceState -> APIVo…
Browse files Browse the repository at this point in the history
…iceState)
  • Loading branch information
yuimarudev committed Nov 30, 2024
1 parent 556f05f commit 39ff80c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/voice/room.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Readable } from "stream";
import { API, APIMessage, GatewayVoiceState } from "@discordjs/core";
import { API, APIMessage, APIVoiceState } from "@discordjs/core";
import {
AudioPlayerStatus,
AudioResource,
Expand Down Expand Up @@ -109,8 +109,8 @@ export default class Room {
}

async handleVoiceStateUpdate(
oldState: GatewayVoiceState | undefined,
newState: GatewayVoiceState,
oldState: APIVoiceState | undefined,
newState: APIVoiceState,
) {
if (newState.member?.user && newState.guild_id) {
users.set(newState.user_id, newState.member.user);
Expand Down

0 comments on commit 39ff80c

Please sign in to comment.