mirror of
https://github.com/gizmo4487/O-Bot.git
synced 2025-05-29 19:52:31 -05:00
13 lines
362 B
JavaScript
13 lines
362 B
JavaScript
const { SlashCommandBuilder } = require('discord.js');
|
|
const vcutil = require('../util/vc.js');
|
|
|
|
module.exports = {
|
|
data: new SlashCommandBuilder()
|
|
.setName('leave')
|
|
.setDescription('Disconnect O-Bot from the voice channel'),
|
|
async execute(interaction) {
|
|
const response = await vcutil.disconnect(interaction);
|
|
await interaction.reply(response);
|
|
},
|
|
};
|