Skip to content

Commit

Permalink
Update autoplay.js
Browse files Browse the repository at this point in the history
  • Loading branch information
adh319 committed Oct 16, 2024
1 parent 4e11b11 commit 6cbe087
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/interaction/setting/autoplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ module.exports = {

if (autoplay) {
client.data.delete("autoplay", player.guildId);

embed.setDescription(`Autoplay mode is now \`disabled\``);
} else {
client.data.set("autoplay", player.guildId);

embed.setDescription(`Autoplay mode is now \`enabled\``);
}

return interaction.reply({ embeds: [embed], ephemeral: true });
},
};
Expand Down

0 comments on commit 6cbe087

Please sign in to comment.