CUSTOM bot activity

Hello there, I am trying to set bot's custom activity, but failing to do so this is the code in my ready.js -- every other activity works such as Playing/Watching...
<...>

client.user.setActivity(
settings.Activities[rand].replace("{count}", client.users.cache.size),
{
type: "CUSTOM"
}
);

<...>
<...>

client.user.setActivity(
settings.Activities[rand].replace("{count}", client.users.cache.size),
{
type: "CUSTOM"
}
);

<...>
Thank you in advance
8 Replies
d.js toolkit
d.js toolkit2w 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 OP
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
Only Cheeini
Only Cheeini2w ago
Hello there. Can you try client.user.setPresence instead of client.user.setActivity Related code client.user.setPresence({ activities: [{ name: discord.js v14, type: ActivityType.Watching }], status: 'dnd', }); Okay
TheJoshua
TheJoshuaOP2w ago
Thank you The problem was my djs version... i didn't know least required for Custom activitytype is 14.11.0+, i updated to 14.13.0
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
TheJoshua
TheJoshuaOP2w ago
ok i'll probably update to it, thank you so much Should i close this?
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
TheJoshua
TheJoshuaOP2w ago
Alright Stay legend, thanks!
Want results from more Discord servers?
Add your server