Merge pull request #144 from ItsNyoty/patch-4

Adding claim button
This commit is contained in:
1tzEmerald authored and GitHub committed 2022-11-12 19:13:55 +00:00
commit 684dc827a3
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) =>