Lanbot_Music_V12/commands/Musique/join.js
2022-01-04 01:35:59 +00:00

18 lines
482 B
JavaScript

const { MESSAGES } = require("../../util/constants");
module.exports.run = async (client, message, args, settings) => {
const { channel } = message.member.voice;
const queueConstruct = {
textChannel: message.channel,
channel,
connection: null,
songs: [],
loop: false,
playing: true
};
queueConstruct.connection = await channel.join();
};
module.exports.help = MESSAGES.COMMANDS.MUSIQUE.JOIN;