From 63851ce74bf64c15d94d2acf5fea4c1a14e66f1d Mon Sep 17 00:00:00 2001 From: RainyXeon / Date: Thu, 21 Dec 2023 16:22:25 +0700 Subject: [PATCH] Update Play.ts mobile --- src/commands/slash/Music/Play.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/commands/slash/Music/Play.ts b/src/commands/slash/Music/Play.ts index 1879b7dc..45326ca0 100644 --- a/src/commands/slash/Music/Play.ts +++ b/src/commands/slash/Music/Play.ts @@ -180,14 +180,9 @@ export default class implements SlashCommand { private checkSameVoice( interaction: CommandInteraction, ) { - if ( - (interaction.member as GuildMember)!.voice.channel !== + return (interaction.member as GuildMember)!.voice.channel !== interaction.guild!.members.me!.voice.channel - ) { - return false; - } else { - return true; - } + ) } // Autocomplete function