mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
Update delete.js
This commit is contained in:
parent
af11904359
commit
2a041b29ce
@ -62,7 +62,8 @@ module.exports = {
|
|||||||
return message.channel.send(notTicket);
|
return message.channel.send(notTicket);
|
||||||
}
|
}
|
||||||
|
|
||||||
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 channel.send(
|
||||||
new MessageEmbed()
|
new MessageEmbed()
|
||||||
.setColor(config.err_colour)
|
.setColor(config.err_colour)
|
||||||
@ -73,8 +74,6 @@ module.exports = {
|
|||||||
.addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`)
|
.addField('Help', `Type \`${config.prefix}help ${this.name}\` for more information`)
|
||||||
.setFooter(guild.name, guild.iconURL())
|
.setFooter(guild.name, guild.iconURL())
|
||||||
);
|
);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let success;
|
let success;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user