Fixing async functions
This commit is contained in:
@@ -39,7 +39,7 @@ export default async function join({interaction= undefined, guildID= undefined,
|
||||
selfDeaf: false,
|
||||
});
|
||||
|
||||
const audioInstance = createAudioInstance();
|
||||
const audioInstance = await createAudioInstance();
|
||||
|
||||
audioInstance.on('data', buffer => {
|
||||
buffer = Buffer.from(buffer);
|
||||
|
||||
Reference in New Issue
Block a user