import type { GuildMessage } from '../../Constants' ; import type { HelpObj } from '../../structures/commandhandler' ; import type { PermissionString } from 'discord.js' ; import type ReknownClient from '../../structures/client' ; export async function run ( client , message , args ) { const music = client . music [ message . guild . id ] ; if ( ! music || ! music . player || ! music . player . playing ) return message . reply ( 'I am not playing anything!' ) ; if ( message . guild . voice ! . channelID !== message . member . voice . channelID ) return message . reply ( 'You must be in the same voice channel as me to run that command.' ) ; client . functions . endSession ( client , music ) ; message . channel . send ( 'Successfully stopped the music and left the voice channel.' ) ; } export const help = { aliases : [ 'dis' , 'disconnect' ] , category : 'Music' , desc : 'Stops the music.' , togglable : true , usage : 'stop' } ; export const memberPerms = [ ] ; export const permissions = [ ] ;