From 06617ff1ced00fe52b76e63ac1956e462030e0ac Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Thu, 19 Sep 2024 04:04:31 +0000 Subject: [PATCH] feat: voiceState#channel type --- src/structures/VoiceState.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/structures/VoiceState.ts b/src/structures/VoiceState.ts index 8032382..fd8602a 100644 --- a/src/structures/VoiceState.ts +++ b/src/structures/VoiceState.ts @@ -3,6 +3,7 @@ import type { VoiceStateResource } from '../cache/resources/voice-states'; import { type GuildMemberStructure, Transformers } from '../client/transformers'; import type { ObjectToLower } from '../common'; import type { APIVoiceState } from '../types'; +import type { AllGuildVoiceChannels } from './channels'; import { Base } from './extra/Base'; export interface VoiceState extends Base, ObjectToLower> {} @@ -29,9 +30,9 @@ export class VoiceState extends Base { return this.client.users.fetch(this.userId, force); } - async channel(force?: boolean) { + channel(force?: boolean) { if (!this.channelId) return; - return this.client.channels.fetch(this.channelId, force); + return this.client.channels.fetch(this.channelId, force) as Promise; } async setMute(mute = !this.mute, reason?: string) {