Custom 4 stats

hello, good evening everyone, I was programming my discord bot, and I wanted to know how custom 4 works, which is from {emoji} {state} , I appreciate your attention
18 Replies
d.js toolkit
d.js toolkitā€¢11mo 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!
chewie šŸŒˆ
chewie šŸŒˆā€¢11mo ago
You mean setting a custom status?
TitoJr
TitoJrā€¢11mo ago
yes
chewie šŸŒˆ
chewie šŸŒˆā€¢11mo ago
That is not yet possible, there is still an open pr for it
TitoJr
TitoJrā€¢11mo ago
Is one equal to this, is that what you mean right?
Toast
Toastā€¢11mo ago
its available in latest dev build of djs, also bot's custom status dont support emojis
TitoJr
TitoJrā€¢11mo ago
So let's say you could just put lyrics? Where is that?
chewie šŸŒˆ
chewie šŸŒˆā€¢11mo ago
Actually, its merged, its possible in the dev version, but not on the latest version
d.js docs
d.js docsā€¢11mo ago
method ClientUser#setActivity() Sets the activity the client user is playing.
TitoJr
TitoJrā€¢11mo ago
I understand so it is not yet available for version 14 but it is working?
chewie šŸŒˆ
chewie šŸŒˆā€¢11mo ago
Correct
TitoJr
TitoJrā€¢11mo ago
sorry for the question but how can i do it?
Toast
Toastā€¢11mo ago
#djs-in-dev-version has a pinned message to show how to switch to dev build, also wouldnt recommend switching to it anyways as it can be unstable at times.
TitoJr
TitoJrā€¢11mo ago
I understand, I'll find out, thanks to both of you. Forgive me again, but will there be some example structure to follow?
Toast
Toastā€¢11mo ago
if you want to set a custom status, i believe the "name" property needs to be "Custom Status" and state property would be the message that would display on your bot's status activity message
chewie šŸŒˆ
chewie šŸŒˆā€¢11mo ago
Name is required but the value isnt relevant, the text of the custom status is in state and emojis are not yet possible from what I tried
client.user.setActivity({ name: "activity name", state: "custom status" })
client.user.setActivity({ name: "activity name", state: "custom status" })
TitoJr
TitoJrā€¢11mo ago
oh okay, then I'll take it into account, thanks to both of you again
Toast
Toastā€¢11mo ago
yw