Update commands to use the new slash command builder
- Updated app js to remove Emmelia remnants
This commit is contained in:
@@ -1,9 +1,22 @@
|
||||
const {getVoiceConnection} = require("@discordjs/voice");
|
||||
const {replyToInteraction} = require("../utilities/messageHandler.js");
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
// Debug
|
||||
const { DebugBuilder } = require("../utilities/debugBuilder.js");
|
||||
const log = new DebugBuilder("client-bot", "leave");
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('leave')
|
||||
.setDescription('Leave a voice channel'),
|
||||
example: "leave",
|
||||
isPrivileged: false,
|
||||
async execute(interaction) {
|
||||
await this.leave({ interaction: interaction })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* If in a voice channel for the specified guild, leave
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user