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",
|
name: "blacklist",
|
||||||
category: "Owner",
|
category: "Owner",
|
||||||
usage: "(User) (Toggle) (Reason)",
|
usage: "(User) (Toggle) (Reason)",
|
||||||
description: "Manage the User Blacklist of the bot",
|
description: "Manage Blacklisted Users",
|
||||||
Owner: true,
|
Owner: true,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 5,
|
type: 5,
|
||||||
name: "yesno",
|
name: "blacklist",
|
||||||
description: "Whether to blacklist or whitelist",
|
description: "Whether to blacklist or whitelist",
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
@ -26,7 +26,7 @@ module.exports = {
|
||||||
],
|
],
|
||||||
run: async (client, interaction) => {
|
run: async (client, interaction) => {
|
||||||
const user = interaction.options.getUser("user");
|
const user = interaction.options.getUser("user");
|
||||||
const toggle = interaction.options.getBoolean("yesno");
|
const toggle = interaction.options.getBoolean("blacklist");
|
||||||
const reason = interaction.options.getString("reason");
|
const reason = interaction.options.getString("reason");
|
||||||
if (toggle === true) {
|
if (toggle === true) {
|
||||||
await client.data.BK(user.id, toggle, reason);
|
await client.data.BK(user.id, toggle, reason);
|
||||||
|
|
|
@ -18,6 +18,18 @@ module.exports = {
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setTitle("Guilds")
|
.setTitle("Guilds")
|
||||||
.setDescription(description)
|
.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)
|
.setColor(client.color)
|
||||||
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
|
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
Loading…
Reference in a new issue