From 36b9fd3502537f5be0a5b35f5619d38cbe0daedc Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 28 Mar 2023 23:08:58 +0100 Subject: [PATCH] fix: use `channel` not `message.channel` --- src/lib/tickets/manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/tickets/manager.js b/src/lib/tickets/manager.js index cf9ffba..2035027 100644 --- a/src/lib/tickets/manager.js +++ b/src/lib/tickets/manager.js @@ -728,8 +728,8 @@ module.exports = class TicketManager { if (working) { let online = 0; - for (const [, member] of message.channel.members) { - if (!await isStaff(message.channel.guild, member.id)) continue; + for (const [, member] of channel.members) { + if (!await isStaff(channel.guild, member.id)) continue; if (member.presence && member.presence !== 'offline') online++; } if (online === 0) {