aboutsummaryrefslogtreecommitdiff
path: root/commands/join.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-03-29 20:41:38 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-03-29 20:41:38 -0400
commitfd89e36490da711ba611c1f7c8dda93a3de054f0 (patch)
treee8c1114add718665c75bb90e7af90a9f38101815 /commands/join.js
parent84b7017c7016aea12339ec4a3ef2ba1bf0fb3872 (diff)
downloadDLAP-fd89e36490da711ba611c1f7c8dda93a3de054f0.tar.gz
DLAP-fd89e36490da711ba611c1f7c8dda93a3de054f0.tar.bz2
DLAP-fd89e36490da711ba611c1f7c8dda93a3de054f0.zip
New command; Every Discord interation is async
Diffstat (limited to 'commands/join.js')
-rw-r--r--commands/join.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/join.js b/commands/join.js
index 8778aae..72aae2e 100644
--- a/commands/join.js
+++ b/commands/join.js
@@ -20,7 +20,7 @@
***************************************************************************/
import { SlashCommandBuilder } from '@discordjs/builders'
-import { voiceInit } from "../AudioBackend.js";
+import { voiceInit } from '../AudioBackend.js';
import config from '../config.json' assert {type: 'json'}
export default {
@@ -29,7 +29,7 @@ export default {
.setDescription('Joins voice chat.'),
async execute(interaction, bot) {
if (![config.botOwner].includes(interaction.user.id)) return await interaction.reply({ content: "You do not have permissions to execute this command.", ephemeral: true });
- await interaction.reply('Joining voice channel')
- voiceInit(bot);
+ await interaction.reply({ content: 'Joining voice channel', ephemeral: true })
+ return await voiceInit(bot);
},
}; \ No newline at end of file