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
|
@ -23,9 +23,9 @@ module.exports = class {
|
|||
try {
|
||||
fetch('http://inspirobot.me/api?generate=true', { headers: { 'User-Agent': client.config.userAgent }})
|
||||
.then(res => res.text())
|
||||
.then(body => message.channel.createMessage(body));
|
||||
.then(body => message.channel.send(body));
|
||||
} catch (err) {
|
||||
message.channel.createMessage(`${client.config.emojis.botError} An error has occurred: ${err}`);
|
||||
message.channel.send(`${client.config.emojis.botError} An error has occurred: ${err}`);
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue