#Let's talk
1 messages · Page 1 of 1 (latest)
there's no need to open a thread, you could have helped him in the channel lol
meh, I also have a question myself
I wanted to try cleaning up a bit
My apologies if I wasn't supposed to
@last leaf you have a life? i see you on here everytime i come check
(this not meant to be offensive or anything lol)
i just think its damn funny
i'm just bored nowadays 
my suspicion is he's defining a nonexistent variable
like, msg.author or something
yup, that's why i also asked for his code
go ahead
ah
yea and i dont get why people are posting those errors
those types of errors.. well
They basically tell you your issue
but, it's always nice to have a 2nd opinion sometimes lool
there are thousands people per day posting cannot read property of undefined
exactly, it also shows the exact line so debugging is damn easy
@jaunty iris got a question
sure
I like how we've turned this chat into our own
Sent you a friend req btw, you seem dope ^^
message.guild.members.fetch().then(members => {
let onlineMembers = members.filter(member => member.presence.status === 'online');
console.log(onlineMembers);
});
```any idea why this returns TypeError: Cannot read properties of null (reading 'status')
because status might not exist
try presence?.status
by that I meant offline
if they're offline they have no status
otherwise, it should work
yea, but there are online users on the server, its returning Collection(0) [Map] {}
member.presence?.status
yea did that
cuz afaik members is a collection of guildmembers
very dumb question
but are you sure you enabled special intents
and enabled them in your index.js?
lets see
well i'd say i did
but that would be a lie
thanks, will try it now
yea works fine, thanks mate
hahaha

