mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 09:23:07 +02:00
fix: use channel
not message.channel
This commit is contained in:
parent
68e3ba69a9
commit
36b9fd3502
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user