mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
Minor fix
This commit is contained in:
parent
964747d43b
commit
7c01fedb71
@ -45,7 +45,7 @@ module.exports = {
|
|||||||
channel: channel.id
|
channel: channel.id
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (!ticket) return channel.send(notTicket);
|
if (!ticket) return message.channel.send(notTicket);
|
||||||
} else {
|
} else {
|
||||||
ticket = await Ticket.findOne({
|
ticket = await Ticket.findOne({
|
||||||
where: {
|
where: {
|
||||||
@ -60,7 +60,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (message.author.id !== ticket.creator && !message.member.roles.cache.has(config.staff_role))
|
if (message.author.id !== ticket.creator && !message.member.roles.cache.has(config.staff_role))
|
||||||
return channel.send(
|
return message.channel.send(
|
||||||
new MessageEmbed()
|
new MessageEmbed()
|
||||||
.setColor(config.err_colour)
|
.setColor(config.err_colour)
|
||||||
.setAuthor(message.author.username, message.author.displayAvatarURL())
|
.setAuthor(message.author.username, message.author.displayAvatarURL())
|
||||||
|
Loading…
Reference in New Issue
Block a user