#What is APIInteractionGuildMember?

18 messages · Page 1 of 1 (latest)

blissful nimbus
#

@lilac trench are you able to elaborate on this? So I add that type guard but would there be any risk of it returning true?

unborn forge
blissful nimbus
#

Oh yeah sorry I meant false then I got the not operator and it's hard to process in my head 😅

unborn forge
#

there is a risk

blissful nimbus
#

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

unborn forge
#

have Guilds intent

#

and u can create Member class
but just better to do it in raw object

blissful nimbus
#

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!

unborn forge
blissful nimbus
#

Oh right, and that's pretty much always the case when dealing with command interactions right?

unborn forge
#

yeah

finite light
#

Whenever I try to get a property from interaction.member I get this error from ts.

lilac trench
finite light
#

ok that worked thanks