message.channel.guild > message.guild
This commit is contained in:
parent
9d0fd0ee01
commit
06c8aa1cc8
13 changed files with 34 additions and 34 deletions
|
@ -32,7 +32,7 @@ module.exports = class {
|
|||
if (!args[0]) {
|
||||
const embed = new client.RichEmbed();
|
||||
embed.setTitle('Help & Commands');
|
||||
embed.setColour(client.functions.displayHexColour(message.channel.guild));
|
||||
embed.setColour(client.functions.displayHexColour(message.guild));
|
||||
embed.setDescription(
|
||||
`
|
||||
» Use \`${message.prefix}help [category]\` to get basic information on all commands in the category.
|
||||
|
@ -66,7 +66,7 @@ module.exports = class {
|
|||
|
||||
const embed = new client.RichEmbed()
|
||||
.setTitle(prettified[cat].emoji + ' ' + cat)
|
||||
.setColour(client.functions.displayHexColour(message.channel.guild))
|
||||
.setColour(client.functions.displayHexColour(message.guild))
|
||||
.setDescription(cmds)
|
||||
.setFooter('<> = required, / = either/or, [] = optional');
|
||||
|
||||
|
@ -77,7 +77,7 @@ module.exports = class {
|
|||
const command = client.commands.get(cmd) || client.commands.get(client.aliases.get(cmd));
|
||||
const embed = new client.RichEmbed()
|
||||
.setTitle(prettified[command.category].emoji + ' ' + command.category + ' -> ' + command.name.toProperCase())
|
||||
.setColour(client.functions.displayHexColour(message.channel.guild))
|
||||
.setColour(client.functions.displayHexColour(message.guild))
|
||||
.setDescription(command.help.description)
|
||||
.addField('Format:', `\`${message.prefix + command.name} ${command.help.arguments}`.trim() + '`');
|
||||
if (command.help.details.length > 0) embed.addField('Parameters:', command.help.details);
|
||||
|
|
|
@ -21,7 +21,7 @@ module.exports = class {
|
|||
run (client, message, args, data) { //eslint-disable-line no-unused-vars
|
||||
message.channel.send(replies.ping.random())
|
||||
.then(m => {
|
||||
m.edit(`${m.content} \`roundtrip: ${m.timestamp - message.timestamp}ms | websocket: ${message.channel.guild.shard.latency}ms\``);
|
||||
m.edit(`${m.content} \`roundtrip: ${m.timestamp - message.timestamp}ms | websocket: ${message.guild.shard.latency}ms\``);
|
||||
});
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue