Property 'getUser' does not exist
Am I doing something wrong here?
https://pastebin.com/qV3dD31T
Pastebin
import { Command } from "@sapphire/framework";import { ApplicationC...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Solution:Jump to solution
I ended up restaing VSC and the error just went away. Don't know how that makes any sense.
9 Replies
can i see how you register options in your application command
it seems like you dont have a user option
i sent the code
can you restart the tsserver or sum?
you should not get that error
@Jonny i see an error there
you're doing this
which should be this
FTFY @UndiedGFX
ah yes
Please review how JavaScript arrow functions work: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
Currently your
registerChatInputCommand
method isn't returning anythingMDN Web Docs
Arrow function expressions - JavaScript | MDN
An arrow function expression is a compact alternative to a traditional function expression, with some semantic differences and deliberate limitations in usage:
that isnt the issue either, they included their whole logic in the "parameter"
It's a problem though
Solution
I ended up restaing VSC and the error just went away. Don't know how that makes any sense.