mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +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) {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user