#What is APIInteractionGuildMember?
18 messages · Page 1 of 1 (latest)
it should return true
if false guild is not cached
Oh yeah sorry I meant false then I got the not operator and it's hard to process in my head 😅
there is a risk
Because I have this type guard at the top of my command implementation and worried it would not run
Ah
Is there a better way to go about ensuring the member is a guild member using the proper GuildMember object?
Without this risky typeguard
have Guilds intent
and u can create Member class
but just better to do it in raw object
Ah yes that intent is present. I guess the proper question is when will this return true? Under what circumstances will it NOT be cached?
Thanks a lot for the help by the way!
its true when guild and member arent null
Oh right, and that's pretty much always the case when dealing with command interactions right?
yeah
Whenever I try to get a property from interaction.member I get this error from ts.
use <Interaction>.inCachedGuild() typeguard
ok that worked thanks