Activity doesn't change

module.exports = (client) => {
console.log(
`Ready to serve in ${client.channels.cache.size} channels on ${client.guilds.cache.size} servers, for a total of ${client.users.cache.size} users.`
);

const activity = "Bot made by rafacs-";
client.user.setActivity(activity, { type: "WATCHING" });
client.user.setStatus('dnd');
};
module.exports = (client) => {
console.log(
`Ready to serve in ${client.channels.cache.size} channels on ${client.guilds.cache.size} servers, for a total of ${client.users.cache.size} users.`
);

const activity = "Bot made by rafacs-";
client.user.setActivity(activity, { type: "WATCHING" });
client.user.setStatus('dnd');
};
20 Replies
d.js toolkit
d.js toolkit•4mo 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!
uceve
uceve•4mo ago
the status is dnd but the activity isnt bot made by rafacs- its just empty
axiprime2.0
axiprime2.0•4mo ago
The activity type is wrong.
uceve
uceve•4mo ago
can you tell me how is the good one?
axiprime2.0
axiprime2.0•4mo ago
I was looking for the list 2sec
axiprime2.0
axiprime2.0•4mo ago
discord-api-types documentation
discord-api-types - Imagine typings
discord-api-types is a simple Node/Deno module that brings up to date typings for Discord's API
uceve
uceve•4mo ago
12.3.1 the version
axiprime2.0
axiprime2.0•4mo ago
🥲 V12 is no longer supported.
uceve
uceve•4mo ago
oh no? damn well how do i update it
axiprime2.0
axiprime2.0•4mo ago
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
uceve
uceve•4mo ago
ok done installed it
axiprime2.0
axiprime2.0•4mo ago
There is more than just do the update. Is it a new bot ?
uceve
uceve•4mo ago
nah its an old one found on my pc and it works except the activity part `-- discord.js@14.14.1 i updated it well, i only want the rich presence thing, cuz everything else works why tho?
axiprime2.0
axiprime2.0•4mo ago
There was massive change between 12>13 and 13>14
uceve
uceve•4mo ago
oh
axiprime2.0
axiprime2.0•4mo ago
The link above is not only about how to update, but everything that changed that you need to amend
uceve
uceve•4mo ago
but why does everything work except the rpc xd
axiprime2.0
axiprime2.0•4mo ago
It work, but is not supported.
uceve
uceve•4mo ago
well as long as it works im happy :)
axiprime2.0
axiprime2.0•4mo ago
You can either downgrade then or put you to work 😛