change createMessage to send (eris to d.js)
This commit is contained in:
parent
abc21ac158
commit
9d0fd0ee01
23 changed files with 71 additions and 71 deletions
|
@ -48,7 +48,7 @@ module.exports = class {
|
|||
});
|
||||
embed.setFooter('<> = required, / = either/or, [] = optional');
|
||||
|
||||
return message.channel.createMessage({ embed: embed });
|
||||
return message.channel.send({ embed: embed });
|
||||
}
|
||||
|
||||
const cat = args[0].toProperCase();
|
||||
|
@ -70,7 +70,7 @@ module.exports = class {
|
|||
.setDescription(cmds)
|
||||
.setFooter('<> = required, / = either/or, [] = optional');
|
||||
|
||||
return message.channel.createMessage({ embed: embed });
|
||||
return message.channel.send({ embed: embed });
|
||||
}
|
||||
|
||||
if (client.commands.has(cmd) || client.aliases.has(cmd)) {
|
||||
|
@ -87,9 +87,9 @@ module.exports = class {
|
|||
if (command.botPerms.length > 0) embed.addField('Bot permissions:', command.botPerms.join(', '), true);
|
||||
embed.addField('Cooldown:', `${command.cooldown / 1000} seconds`, true);
|
||||
embed.setFooter('<> = required, / = either/or, [] = optional');
|
||||
return message.channel.createMessage({ embed: embed });
|
||||
return message.channel.send({ embed: embed });
|
||||
}
|
||||
|
||||
return message.channel.createMessage(`${client.config.emojis.userError} ${cmd} doesn't appear to be a command, alias, or category. Are you sure you spelt it right?`);
|
||||
return message.channel.send(`${client.config.emojis.userError} ${cmd} doesn't appear to be a command, alias, or category. Are you sure you spelt it right?`);
|
||||
}
|
||||
};
|
|
@ -19,7 +19,7 @@ module.exports = class {
|
|||
}
|
||||
|
||||
run (client, message, args, data) { //eslint-disable-line no-unused-vars
|
||||
message.channel.createMessage(replies.ping.random())
|
||||
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\``);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue