Skip to content

Commit

Permalink
fix: use channel not message.channel
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Mar 28, 2023
1 parent 68e3ba6 commit 36b9fd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/tickets/manager.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 36b9fd3

Please sign in to comment.