question about a function

In one of my bots, i have a function named LowerRole (basically detects the lowest of the roles of a user) but when github copilet suggests stuff, i see "Locale" is that a location? cause i dont want my bot giving out others locations :SkullSanta:
7 Replies
d.js toolkit
d.js toolkit2d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
duck
duck2d ago
it likely refers to a language, but without any info on what's being suggested for what method or object, it's hard to say for sure whether it's even giving a valid suggestion
Bolty
BoltyOP2d ago
No description
duck
duck2d ago
that's actually coming from intellisense, not copilot, and it's just an enum for the documented locales (languages) in discord
duck
duck2d ago
which is to say, it's not even in reference to a specific user like <Interaction>.locale for example
Bolty
BoltyOP2d ago
ahhhh ok

Did you find this page helpful?