diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-07-09 22:14:38 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-07-09 22:14:38 -0400 |
| commit | d7e4cf29e6fc6b8f4ba07e837dcf56b3f5d63afc (patch) | |
| tree | a6fd714025ec7fe78bd89d45d7f0fa36bc8f73aa /commands/leave.js | |
| parent | 4c26fbcb7e1674d5ccbb5468a32cd4a2bc2a315b (diff) | |
| download | DLAP-d7e4cf29e6fc6b8f4ba07e837dcf56b3f5d63afc.tar.gz DLAP-d7e4cf29e6fc6b8f4ba07e837dcf56b3f5d63afc.tar.bz2 DLAP-d7e4cf29e6fc6b8f4ba07e837dcf56b3f5d63afc.zip | |
ESLint
Diffstat (limited to 'commands/leave.js')
| -rw-r--r-- | commands/leave.js | 26 |
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 }); + } +}; |
