From c4248aceeb5b06775b47c0c16b6cc35fe489d8ea Mon Sep 17 00:00:00 2001 From: Zhongning Li <60045212+tomli380576@users.noreply.github.com> Date: Sat, 8 Oct 2022 15:52:39 -0700 Subject: [PATCH] update: always enable leave button --- src/attending-server/base-attending-server.ts | 2 +- src/help-queue/queue-display.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/attending-server/base-attending-server.ts b/src/attending-server/base-attending-server.ts index 59dc46c3..eef51b9e 100644 --- a/src/attending-server/base-attending-server.ts +++ b/src/attending-server/base-attending-server.ts @@ -561,7 +561,7 @@ class AttendingServerV2 { } helper.helpEnd = new Date(); this._activeHelpers.delete(helperMember.id); - console.log(`- Help time of ${helper.member.displayName} is ` + + console.log(` - Help time of ${helper.member.displayName} is ` + `${convertMsToTime(helper.helpEnd.getTime() - helper.helpStart.getTime())}`); const closableQueues = this._queues.filter( queue => helperMember.roles.cache diff --git a/src/help-queue/queue-display.ts b/src/help-queue/queue-display.ts index 78de518f..22ada56b 100644 --- a/src/help-queue/queue-display.ts +++ b/src/help-queue/queue-display.ts @@ -68,7 +68,6 @@ class QueueDisplayV2 { new ButtonBuilder() .setCustomId('leave ' + queue.queueName) .setEmoji('❎') - .setDisabled(!queue.isOpen) .setLabel('Leave') .setStyle(ButtonStyle.Danger) );