Close Ticket
This commit is contained in:
1 parent
ff7ed49905
commit
cf99209887
3 files changed
+33
-5
No files matched your search
+17
-5
@@ -13,13 +13,25 @@ module.exports = {
|
||||
|
||||
execute(message, args) {
|
||||
console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.CloseTicket}!`);
|
||||
|
||||
if (supportbot.Close === "staff") {
|
||||
member.roles.cache.has(``)
|
||||
}
|
||||
|
||||
if (supportbot.Close === "user") {
|
||||
if (!message.channel.name.startsWith( `${TicketChannel}-` )) {
|
||||
const Exists = new Discord.MessageEmbed()
|
||||
.setTitle("Incorrect Channel")
|
||||
.setDescription(`:warning: You cannot execute this command here. This command is used when closing a ticket.`)
|
||||
.setColor(supportbot.WarningColour);
|
||||
message.channel.send({ embed: Exists });
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
if (supportbot.CloseConfirmation === "true") {
|
||||
const CloseTicketRequest = new Discord.MessageEmbed()
|
||||
.setDescription(`**${supportbot.ClosingTicket}**`)
|
||||
.addField("Please confirm by repeating the following word..", `**${supportbot.ClosingConfirmation_Word}**`)
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user