issue with /core
Its my first time trying core since I want to have a lightbuild gateway helper and I think I do something wrong?
This is my current test script
The issue I see is that it dont set the status but I thought thats the way to do it? xD
7 Replies
- 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 OP<Client>.updatePresence()
exists
that being said, GatewayPresenceUpdateData
objects should also have a couple more properties that you appear to be missing
I'd also recommend still using the ActivityType
enum (and the GatewayOpcodes
enum if you really intend to continue manually sending payloads) for readabilityOhh thanks I didnt found that in the docs new dogs is a little bit different
Okay I moved that now in the ready event
the promise gets resolved but still no status ?
just to clarify, when you say status are you referring to a custom status? your activity?
I'm referring to the custom bot activity
then that's also not the expected payload for a
Custom
type activity
the actual text of the status is determined by the state
property
the name is required, but not displayed anywhere
you may be used to discord.js
automatically setting the state
to the name
if not present
/core does not have this functionalityI see that explains it
thanks mate I try that
Now it works, thanks for your help! Working with /core is pretty interesting !