#interaction.inGuild() doesn't work as a typeguard

7 messages · Page 1 of 1 (latest)

rigid trail
#

I'm using TypeScript and i need a typeguard for interaction.guild but interaction.inGuild() doesn't seem to work. Am i doing something wrong?

leaden stormBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Explain what exactly your issue is.
  • Not a discord.js issue? Check out #useful-servers.
glacial latch
#

try inCachedGuild()

#

@rigid trail ^

rigid trail
#

it works thanks

#

but