aboutsummaryrefslogtreecommitdiff
path: root/commands/leave.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/leave.js')
-rw-r--r--commands/leave.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/commands/leave.js b/commands/leave.js
index 63b4245..b37ebdc 100644
--- a/commands/leave.js
+++ b/commands/leave.js
@@ -19,18 +19,18 @@
*
***************************************************************************/
-import { SlashCommandBuilder } from '@discordjs/builders'
-import { destroyAudio } from "../AudioBackend.js"
-import { PermissionFlagsBits } from "discord-api-types/v10"
+import { SlashCommandBuilder } from '@discordjs/builders';
+import { destroyAudio } from '../AudioBackend.js';
+import { PermissionFlagsBits } from 'discord-api-types/v10';
export default {
- data: new SlashCommandBuilder()
- .setName('leave')
- .setDescription('Leaves the voice chat')
- .setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
- async execute(interaction) {
- console.log('Leaving voice channel...');
- await destroyAudio(interaction);
- return await interaction.reply({content:'Leaving voice channel', ephemeral:true});
- },
-}; \ No newline at end of file
+ data: new SlashCommandBuilder()
+ .setName('leave')
+ .setDescription('Leaves the voice chat')
+ .setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
+ async execute (interaction) {
+ console.log('Leaving voice channel...');
+ await destroyAudio(interaction);
+ return await interaction.reply({ content: 'Leaving voice channel', ephemeral: true });
+ }
+};