|
|
@ -40,7 +40,7 @@ class dectalkvcCommand extends Command {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(async () => {
|
|
|
|
.then(async () => {
|
|
|
|
const voiceChannel = message.member.voice.channel;
|
|
|
|
const voiceChannel = message.member.voice.channel;
|
|
|
|
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
|
|
|
if (!voiceChannel) return message.channel.send('Please enter a voice channel first.');
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const connection = await voiceChannel.join();
|
|
|
|
const connection = await voiceChannel.join();
|
|
|
|
const dispatcher = connection.play('./dectalk/dectalk.wav');
|
|
|
|
const dispatcher = connection.play('./dectalk/dectalk.wav');
|
|
|
@ -64,7 +64,7 @@ class dectalkvcCommand extends Command {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(async () => {
|
|
|
|
.then(async () => {
|
|
|
|
const voiceChannel = message.member.voice.channel;
|
|
|
|
const voiceChannel = message.member.voice.channel;
|
|
|
|
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
|
|
|
if (!voiceChannel) return message.channel.send('Please enter a voice channel first.');
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
loadingmsg.delete();
|
|
|
|
loadingmsg.delete();
|
|
|
|
const connection = await voiceChannel.join();
|
|
|
|
const connection = await voiceChannel.join();
|
|
|
|