mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 12:23:09 +02:00
Minor fix
This commit is contained in:
parent
964747d43b
commit
7c01fedb71
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user