Lanbot_Music_V12/commands/Musique/join.js

18 lines
482 B
JavaScript
Raw Permalink Normal View History

2022-01-04 02:35:59 +01:00
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;