#TypeError: (intermediate value).setToken(...) is not a function

11 messages · Page 1 of 1 (latest)

north sail
golden galeBOT
#
  • 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.
  • Issue solved? Press the button!
north sail
#

TypeError: (intermediate value).setToken(...) is not a function

arctic ginkgo
#

Add a semicolon after setToken(...)

north sail
#

;^; Okay

#

Thks

#

But why this error appear ?@arctic ginkgo can you explain me ?

#

In Js we don't need the semicolon ... no ?

clear lichen
#

It's pretty common when working with IIFEs

arctic ginkgo