You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/commands/utility/server.js

25 lines
759 B
JavaScript

const { Command } = require('discord.js-commando');
const Discord = require('discord.js');
module.exports = class ServerCommand extends Command {
constructor(client) {
super(client, {
name: 'server',
group: 'utility',
memberName: 'server',
description: 'very yes',
});
}
async run(message) {
const serverStatsEmbed = new Discord.RichEmbed()
.setColor('#0099ff')
.setTitle('Stats of the server')
.setDescription('Some description here')
.setThumbnail(message.guild.iconURL)
.addField(`Member: **${message.guild.memberCount}** \n Channel: **${message.guild.channels}**`)
.addBlankField()
.setTimestamp()
message.say(serverStatsEmbed);
}
};