blob: 67ed896d49a43df19aaed49e837252b1da2d0c0d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
const { SlashCommandBuilder } = require('@discordjs/builders');
const { MessageEmbed } = require("discord.js");
const { AudioResource } = require("@discordjs/voice");
const config = require("../config.json");
module.exports = {
data: new SlashCommandBuilder()
.setName('help')
.setDescription('Lists the commands'),
async execute(interaction, bot, audio) {
const helpEmbed = new MessageEmbed()
.setAuthor({name:`${bot.user.username} Help`, iconURL:bot.user.avatarURL()})
.setDescription(`Currently playing \`${audio}\`.`)
.addField('Public Commands', `/help\n/ping\n/about\n`, true)
.addField('Bot Owner Only', `/join\n/control\n/stop\n`, true)
.setFooter({text:'© Copyright 2020-2022 Andrew Lee. Licensed with GPL-3.0.'})
.setColor('#0066ff')
return interaction.reply({ embeds: [helpEmbed]});
},
};
|