MeesageEmbed

This commit is contained in:
Daniel Odendahl Jr
2017-07-03 23:49:09 +00:00
parent 7214aea5e8
commit 58807cd222
39 changed files with 79 additions and 79 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
const Command = require('../../structures/Command');
const { RichEmbed } = require('discord.js');
const { MessageEmbed } = require('discord.js');
const { stripIndents } = require('common-tags');
module.exports = class HelpCommand extends Command {
@@ -29,7 +29,7 @@ module.exports = class HelpCommand extends Command {
const showAll = command && command.toLowerCase() === 'all';
if (command && !showAll) {
if (commands.length === 1) {
const embed = new RichEmbed()
const embed = new MessageEmbed()
.setTitle(`Command ${commands[0].name}`)
.setDescription(stripIndents`
${commands[0].description}
@@ -48,7 +48,7 @@ module.exports = class HelpCommand extends Command {
return msg.say(`Could not identify command. Use ${msg.usage(null)} to view a list of commands.`);
}
} else {
const embed = new RichEmbed()
const embed = new MessageEmbed()
.setTitle(!showAll ? `Commands Available in ${msg.guild ? msg.guild.name : 'this DM'}` : 'All Commands')
.setDescription(`Use ${msg.usage('<command>')} to view detailed information about a command.`)
.setColor(0x00AE86);
+2 -2
View File
@@ -1,5 +1,5 @@
const Command = require('../../structures/Command');
const { RichEmbed } = require('discord.js');
const { MessageEmbed } = require('discord.js');
const { version } = require('../../package');
const moment = require('moment');
require('moment-duration-format');
@@ -20,7 +20,7 @@ module.exports = class InfoCommand extends Command {
async run(msg) {
const guilds = await this.client.shard.fetchClientValues('guilds.size');
const memory = await this.client.shard.broadcastEval('process.memoryUsage().heapUsed');
const embed = new RichEmbed()
const embed = new MessageEmbed()
.setColor(0x00AE86)
.setFooter('©2017 dragonfire535#8081')
.addField(' Servers',
+2 -2
View File
@@ -1,5 +1,5 @@
const Command = require('../../structures/Command');
const { RichEmbed } = require('discord.js');
const { MessageEmbed } = require('discord.js');
const moment = require('moment');
require('moment-duration-format');
@@ -32,7 +32,7 @@ module.exports = class ShardInfoCommand extends Command {
const memory = await this.client.shard.broadcastEval('process.memoryUsage().heapUsed');
const uptime = await this.client.shard.fetchClientValues('uptime');
const guilds = await this.client.shard.fetchClientValues('guilds.size');
const embed = new RichEmbed()
const embed = new MessageEmbed()
.setTitle(`Shard ${shard}`)
.setColor(0x00AE86)
.addField(' Servers',