forked from Supositware/Haha-Yes
yes
This commit is contained in:
parent
f797af8bf8
commit
09c5057366
1 changed files with 15 additions and 15 deletions
|
@ -37,8 +37,8 @@ class dectalkvcCommand extends Command {
|
|||
},
|
||||
}).then(async (result) => {
|
||||
const outputFilename = './dectalkvc.wav';
|
||||
fs.writeFileSync(outputFilename, result.data)
|
||||
.then(async () => {
|
||||
fs.writeFile(outputFilename, result.data, async function(err) {
|
||||
if (err) console.error(err);
|
||||
const voiceChannel = message.member.voice.channel;
|
||||
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue