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) {