commit 8eb82eb93f0b3a1d35be8f9e3726bbea5c9b9c86
parent 46ad9012a4dd73ccda4b3bb305142a87534885f9
Author: ThunderE75 <[email protected]>
Date: Fri, 24 Dec 2021 13:15:42 +0530
Minor Addition
Diffstat:
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/command/Owner/blacklist.js b/command/Owner/blacklist.js
@@ -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);
diff --git a/command/Owner/guilds.js b/command/Owner/guilds.js
@@ -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();