Minor Addition

This commit is contained in:
ThunderE75 2021-12-24 13:15:42 +05:30
parent 46ad9012a4
commit 8eb82eb93f
2 changed files with 15 additions and 3 deletions

View file

@ -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);

View file

@ -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();