This repository has been archived on 2022-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
Codsworth/commands/join.js

16 lines
550 B
JavaScript

const { MessageEmbed } = require("discord.js");
const { Client, Collection } = require("discord.js");
module.exports = {
name: "join",
description: "Joins channel",
async execute(message, args) {
const { channel } = message.member.voice;
const serverQueue = message.client.queue.get(message.guild.id);
if (!channel) return message.reply("You need to join a voice channel first!").catch(console.error);
await channel.join();
return message.reply(`Codsworth Has Joined Your Channel`)
}
};