message.channel.guild > message.guild

This commit is contained in:
Emily 2021-07-15 12:53:57 +10:00
parent 9d0fd0ee01
commit 06c8aa1cc8
13 changed files with 34 additions and 34 deletions

View file

@ -27,7 +27,7 @@ module.exports = class {
.then(json => {
const embed = new client.RichEmbed()
.setTitle(`${json.data.name} (No. ${json.data.number})`)
.setColour(client.functions.displayHexColour(message.channel.guild))
.setColour(client.functions.displayHexColour(message.guild))
.setURL('https://www.mezzacotta.net/garfield/?comic=' + json.data.number)
.setImage(json.data.image.src);
message.channel.send({ embed: embed });