change createMessage to send (eris to d.js)

This commit is contained in:
Emily 2021-07-15 12:39:19 +10:00
parent abc21ac158
commit 9d0fd0ee01
23 changed files with 71 additions and 71 deletions

View file

@ -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}`);
}
}
};