Split commands into subdirectories
* Move command files into directories * Edit relative paths * Update gitignore * Finish support for commands in subdir * Split up getCommandFiles into own function * Add support for subdirs on help command
This commit is contained in:
parent
8993eeaf7a
commit
e7cdd425d1
21 changed files with 55 additions and 35 deletions
23
commands/info/serverinfo.js
Normal file
23
commands/info/serverinfo.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
const Discord = require('discord.js')
|
||||
|
||||
module.exports = {
|
||||
name: 'serverinfo',
|
||||
description: 'Displays information about the server',
|
||||
execute({message}) {
|
||||
console.log(message.guild.emojis.cache)
|
||||
const embed = new Discord.MessageEmbed()
|
||||
|
||||
.setThumbnail(message.guild.iconURL({ format: 'png', dynamic: true, size: 4096 }))
|
||||
.setColor("#ee7939")
|
||||
.setTimestamp()
|
||||
.addField("Server Owner: ", `<@${message.guild.ownerID}>`)
|
||||
.addField("Server Name: ", message.guild.name)
|
||||
.addField("Created", message.guild.createdAt.toUTCString())
|
||||
.addField("Members: ", message.guild.memberCount)
|
||||
//.addField("Emojis: ", message.guild.emojis.cache.array().length)
|
||||
|
||||
message.channel.send(embed);
|
||||
|
||||
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue