forked from Supositware/Haha-Yes
fixed
This commit is contained in:
parent
47d8f8166b
commit
3730aecd87
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ class dectalkvcCommand extends Command {
|
||||||
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
||||||
try {
|
try {
|
||||||
const connection = await voiceChannel.join();
|
const connection = await voiceChannel.join();
|
||||||
const dispatcher = connection.play('./dectalkvc.wav');
|
const dispatcher = connection.play('./dectalk/dectalkvc.wav');
|
||||||
dispatcher.once('finish', () => voiceChannel.leave());
|
dispatcher.once('finish', () => voiceChannel.leave());
|
||||||
dispatcher.once('error', () => voiceChannel.leave());
|
dispatcher.once('error', () => voiceChannel.leave());
|
||||||
return null;
|
return null;
|
||||||
|
@ -61,7 +61,7 @@ class dectalkvcCommand extends Command {
|
||||||
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
||||||
try {
|
try {
|
||||||
const connection = await voiceChannel.join();
|
const connection = await voiceChannel.join();
|
||||||
const dispatcher = connection.play('./dectalkvc.wav');
|
const dispatcher = connection.play('./dectalk/dectalkvc.wav');
|
||||||
dispatcher.once('finish', () => voiceChannel.leave());
|
dispatcher.once('finish', () => voiceChannel.leave());
|
||||||
dispatcher.once('error', () => voiceChannel.leave());
|
dispatcher.once('error', () => voiceChannel.leave());
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue