Skip to content

Commit

Permalink
[Hotfix] playlist aliases are unique for each guild!!
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Nov 15, 2021
1 parent 5950034 commit 8a63306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/Music/playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = {
});

if (args[0] === "add" && args[1] && args[2]) {
await client.db.set(`${args[1]}`, args[2]);
await client.db.set(`${message.guildId}_${args[1]}`, args[2]);
return await message.channel.send({
embeds: [
embedMessage(
Expand All @@ -62,7 +62,7 @@ module.exports = {
],
});
}
const customPlaylist = await client.db.get(`${args[0]}`);
const customPlaylist = await client.db.get(`${message.guildId}_${args[0]}`);

if (!customPlaylist)
return await message.channel.send({
Expand Down

0 comments on commit 8a63306

Please sign in to comment.