mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-07 04:20:49 +00:00
Fix code to work on this decade 1/x
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
const discord = require("discord.js");
|
||||
const { EmbedBuilder } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: "blacklist",
|
||||
@ -89,7 +89,7 @@ module.exports = {
|
||||
}
|
||||
break;
|
||||
case "list":
|
||||
embed = new discord.MessageEmbed()
|
||||
embed = new EmbedBuilder()
|
||||
.setTitle(client.messages.blacklistTitle)
|
||||
.setDescription(
|
||||
`${client.global.db.guilds[msg.guild.id].blacklist
|
||||
@ -100,17 +100,16 @@ module.exports = {
|
||||
msg.channel.send(embed);
|
||||
break;
|
||||
case undefined:
|
||||
embed = new discord.MessageEmbed()
|
||||
embed = new EmbedBuilder()
|
||||
.setTitle(client.messages.blacklistTitle)
|
||||
.addField("add", "Add a channel to the blacklist. (ID or mention)")
|
||||
.addField(
|
||||
"remove",
|
||||
"Remove a channel from the blacklist. (ID or mention)"
|
||||
.addFields(
|
||||
{ name: "add", value: "Add a channel to the blacklist. (ID or mention)" },
|
||||
{ name: "remove", value: "Remove a channel from the blacklist. (ID or mention)" },
|
||||
{ name: "list", value: "List the currently blacklisted channels." }
|
||||
)
|
||||
.addField("list", "List the currently blacklisted channels.")
|
||||
.setColor(client.config.embedColor);
|
||||
msg.channel.send(embed);
|
||||
break;
|
||||
}
|
||||
},
|
||||
};
|
||||
};
|
||||
|
@ -6,8 +6,6 @@ module.exports = {
|
||||
client.messages.premiumState +
|
||||
client.global.db.guilds[msg.guild.id].premium
|
||||
);
|
||||
if (msg.member.id !== client.config.devId)
|
||||
return msg.channel.send(client.messages.onlyDev);
|
||||
if (client.global.db.guilds[args[2]].premium === false) {
|
||||
client.global.db.guilds[args[2]].premium = true;
|
||||
let message;
|
||||
|
Reference in New Issue
Block a user