Added status command to discord bot
This commit is contained in:
@@ -26,11 +26,17 @@ const leaveCommand = new SlashCommandBuilder()
|
||||
.setDescription("Leave current voice channel")
|
||||
.toJSON();
|
||||
|
||||
const statusCommand = new SlashCommandBuilder()
|
||||
.setName("status")
|
||||
.setDescription("Returns if the bot is connected to a channel or not")
|
||||
.toJSON();
|
||||
|
||||
export default async function registerCommands(callback){
|
||||
const commands = [
|
||||
pingCommand,
|
||||
joinCommand,
|
||||
leaveCommand
|
||||
leaveCommand,
|
||||
statusCommand
|
||||
];
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user