From 7c01fedb7109a0f506ec940861491661a7d3e128 Mon Sep 17 00:00:00 2001 From: "Isaac (eartharoid)" Date: Mon, 5 Oct 2020 22:55:41 +0100 Subject: [PATCH] Minor fix --- src/commands/close.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/close.js b/src/commands/close.js index 6b5a19e..8e1116b 100644 --- a/src/commands/close.js +++ b/src/commands/close.js @@ -45,7 +45,7 @@ module.exports = { channel: channel.id } }); - if (!ticket) return channel.send(notTicket); + if (!ticket) return message.channel.send(notTicket); } else { ticket = await Ticket.findOne({ where: { @@ -60,7 +60,7 @@ module.exports = { } if (message.author.id !== ticket.creator && !message.member.roles.cache.has(config.staff_role)) - return channel.send( + return message.channel.send( new MessageEmbed() .setColor(config.err_colour) .setAuthor(message.author.username, message.author.displayAvatarURL())