Minor Addition
This commit is contained in:
parent
46ad9012a4
commit
8eb82eb93f
2 changed files with 15 additions and 3 deletions
|
@ -2,7 +2,7 @@ module.exports = {
|
|||
name: "blacklist",
|
||||
category: "Owner",
|
||||
usage: "(User) (Toggle) (Reason)",
|
||||
description: "Manage the User Blacklist of the bot",
|
||||
description: "Manage Blacklisted Users",
|
||||
Owner: true,
|
||||
options: [
|
||||
{
|
||||
|
@ -13,7 +13,7 @@ module.exports = {
|
|||
},
|
||||
{
|
||||
type: 5,
|
||||
name: "yesno",
|
||||
name: "blacklist",
|
||||
description: "Whether to blacklist or whitelist",
|
||||
required: true,
|
||||
},
|
||||
|
@ -26,7 +26,7 @@ module.exports = {
|
|||
],
|
||||
run: async (client, interaction) => {
|
||||
const user = interaction.options.getUser("user");
|
||||
const toggle = interaction.options.getBoolean("yesno");
|
||||
const toggle = interaction.options.getBoolean("blacklist");
|
||||
const reason = interaction.options.getString("reason");
|
||||
if (toggle === true) {
|
||||
await client.data.BK(user.id, toggle, reason);
|
||||
|
|
|
@ -18,6 +18,18 @@ module.exports = {
|
|||
const embed = new MessageEmbed()
|
||||
.setTitle("Guilds")
|
||||
.setDescription(description)
|
||||
.addFields(
|
||||
{
|
||||
name: `Total Guilds`,
|
||||
value: client.guilds.cache.size,
|
||||
inline: true
|
||||
},
|
||||
{
|
||||
name: `Total Members`,
|
||||
value: client.users.cache.size,
|
||||
inline: true
|
||||
}
|
||||
)
|
||||
.setColor(client.color)
|
||||
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
|
||||
.setTimestamp();
|
||||
|
|
Loading…
Reference in a new issue