fix: use channel not message.channel

This commit is contained in:
Isaac 2023-03-28 23:08:58 +01:00
parent 68e3ba69a9
commit 36b9fd3502
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -728,8 +728,8 @@ module.exports = class TicketManager {
if (working) { if (working) {
let online = 0; let online = 0;
for (const [, member] of message.channel.members) { for (const [, member] of channel.members) {
if (!await isStaff(message.channel.guild, member.id)) continue; if (!await isStaff(channel.guild, member.id)) continue;
if (member.presence && member.presence !== 'offline') online++; if (member.presence && member.presence !== 'offline') online++;
} }
if (online === 0) { if (online === 0) {