Adding claim button

This commit is contained in:
ItsNyoty authored and GitHub committed 2022-11-12 12:58:02 +01:00
1 parent 96a50743ac
commit fb97532bf5
1 file changed
+6 -1
+6 -1
View File
@@ -213,8 +213,13 @@ module.exports = new Command({
.setLabel("Lock")
.setStyle(supportbot.TicketLockColour)
.setEmoji(supportbot.TicketLockEmoji);
const ClaimButton = new MessageButton()
.setCustomId("ticketclaim")
.setLabel("Claim")
.setStyle(supportbot.TicketClaimColour)
.setEmoji(supportbot.TicketClaimEmoji);
const row2 = new MessageActionRow().addComponents(CloseButton, LockButton);
const row2 = new MessageActionRow().addComponents(CloseButton, LockButton, ClaimButton);
if (!department) {
try {
let buttons = await supportbot.Departments.map((x) =>