Skip to content

Commit

Permalink
[Fix] added and edited player options
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Aug 31, 2021
1 parent 54c2a82 commit e5a6060
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions commands/music/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,25 @@ module.exports = {
});

const queue = client.player.createQueue(guild, {
metadata: interaction,
leaveOnEnd: false,
leaveOnStop: false,
initialVolume: 50,
initialVolume: 80,
ytdlOptions: {
highWaterMark: 1 << 25,
filter: "audioonly",
quality: "highestaudio",
},
bufferingTimeout: 200,
leaveOnEmpty: true,
bufferingTimeout: 250,
leaveOnEmpty: false,
});

try {
if (!queue.connection)
await queue.connect(interaction.member.voice.channel);
} catch {
client.player.deleteQueue(interaction.guildId);
queue.destroy();
queue.destroy(true);
return await interaction.followUp({
content: "Could not join your voice channel!",
empheral: true,
Expand Down

0 comments on commit e5a6060

Please sign in to comment.