Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Fixed Removetrack & Fix can't find locale Language!
Browse files Browse the repository at this point in the history
  • Loading branch information
Adivise committed Mar 7, 2022
1 parent 355f04e commit a33544f
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions commands/playlist/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ module.exports = {
const song = playlist.tracks[position];
if(!song) return message.channel.send(`${client.i18n.get(language, "playlist", "remove_song_notfound")}`);

playlist.tracks.splice(position + 1, 1);
playlist.tracks.splice(position - 1, 1);
await playlist.save();

const embed = new MessageEmbed()
.setDescription(`${client.i18n.get(language, "playlist", "remove_removed", {
name: Plist,
position: args[1] + 1
position: args[1]
})}`)
.setColor(client.color)

Expand Down
4 changes: 2 additions & 2 deletions slashcommands/filters/equalizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ module.exports = {
return msg.edit({ content: " ", embeds: [embed] });
} else {
const Premiumed = new MessageEmbed()
.setAuthor({ name: `${client.i18n.get(language, "nopremium", "premiun_author")}`, iconURL: client.user.displayAvatarURL() })
.setDescription(`${client.i18n.get(language, "nopremium", "premiun_desc")}`)
.setAuthor({ name: `${client.i18n.get(language, "nopremium", "premium_author")}`, iconURL: client.user.displayAvatarURL() })
.setDescription(`${client.i18n.get(language, "nopremium", "premium_desc")}`)
.setColor(client.color)
.setTimestamp()

Expand Down
4 changes: 2 additions & 2 deletions slashcommands/playlist/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ module.exports = {
}).catch(err => console.log(err));
} else {
const Premiumed = new MessageEmbed()
.setAuthor({ name: `${client.i18n.get(language, "nopremium", "premiun_author")}`, iconURL: client.user.displayAvatarURL() })
.setDescription(`${client.i18n.get(language, "nopremium", "premiun_desc")}`)
.setAuthor({ name: `${client.i18n.get(language, "nopremium", "premium_author")}`, iconURL: client.user.displayAvatarURL() })
.setDescription(`${client.i18n.get(language, "nopremium", "premium_desc")}`)
.setColor(client.color)
.setTimestamp()

Expand Down
4 changes: 2 additions & 2 deletions slashcommands/playlist/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ module.exports = {
interaction.editReply({ embeds: [embed] });
} else {
const Premiumed = new MessageEmbed()
.setAuthor({ name: `${client.i18n.get(language, "nopremium", "premiun_author")}`, iconURL: client.user.displayAvatarURL() })
.setDescription(`${client.i18n.get(language, "nopremium", "premiun_desc")}`)
.setAuthor({ name: `${client.i18n.get(language, "nopremium", "premium_author")}`, iconURL: client.user.displayAvatarURL() })
.setDescription(`${client.i18n.get(language, "nopremium", "premium_desc")}`)
.setColor(client.color)
.setTimestamp()

Expand Down
4 changes: 2 additions & 2 deletions slashcommands/playlist/detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ module.exports = {
}
} else {
const Premiumed = new MessageEmbed()
.setAuthor({ name: `${client.i18n.get(language, "nopremium", "premiun_author")}`, iconURL: client.user.displayAvatarURL() })
.setDescription(`${client.i18n.get(language, "nopremium", "premiun_desc")}`)
.setAuthor({ name: `${client.i18n.get(language, "nopremium", "premium_author")}`, iconURL: client.user.displayAvatarURL() })
.setDescription(`${client.i18n.get(language, "nopremium", "premium_desc")}`)
.setColor(client.color)
.setTimestamp()

Expand Down
4 changes: 2 additions & 2 deletions slashcommands/playlist/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ module.exports = {
}
} else {
const Premiumed = new MessageEmbed()
.setAuthor({ name: `${client.i18n.get(language, "nopremium", "premiun_author")}`, iconURL: client.user.displayAvatarURL() })
.setDescription(`${client.i18n.get(language, "nopremium", "premiun_desc")}`)
.setAuthor({ name: `${client.i18n.get(language, "nopremium", "premium_author")}`, iconURL: client.user.displayAvatarURL() })
.setDescription(`${client.i18n.get(language, "nopremium", "premium_desc")}`)
.setColor(client.color)
.setTimestamp()

Expand Down
4 changes: 2 additions & 2 deletions slashcommands/playlist/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ module.exports = {
const song = playlist.tracks[position];
if(!song) return interaction.editReply(`${client.i18n.get(language, "playlist", "remove_song_notfound")}`);

playlist.tracks.splice(position + 1, 1);
playlist.tracks.splice(position - 1, 1);
await playlist.save();

const embed = new MessageEmbed()
.setDescription(`${client.i18n.get(language, "playlist", "remove_removed", {
name: Plist,
position: pos + 1
position: pos
})}`)
.setColor(client.color)

Expand Down
4 changes: 2 additions & 2 deletions slashcommands/playlist/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ module.exports = {
}
} else {
const Premiumed = new MessageEmbed()
.setAuthor({ name: `${client.i18n.get(language, "nopremium", "premiun_author")}`, iconURL: client.user.displayAvatarURL() })
.setDescription(`${client.i18n.get(language, "nopremium", "premiun_desc")}`)
.setAuthor({ name: `${client.i18n.get(language, "nopremium", "premium_author")}`, iconURL: client.user.displayAvatarURL() })
.setDescription(`${client.i18n.get(language, "nopremium", "premium_desc")}`)
.setColor(client.color)
.setTimestamp()

Expand Down

0 comments on commit a33544f

Please sign in to comment.