Status

Hello Everyone. I am currently having trouble on setting my bots status. Would anyone have a basic script to change it? Thanks in advance.
6 Replies
d.js toolkit
d.js toolkit14mo 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
Nerf
NerfOP14mo ago
(Already looked at guide)
d.js docs
d.js docs14mo ago
guide Popular Topics: Frequently asked Questions - Bot Configuration and Utility > How do I set my playing status? read more
Nerf
NerfOP14mo ago
Do I need to import anything? And would it be in index.js or a separate file.
Nightro-Fx
Nightro-Fx14mo ago
@Qjuh
const {ActivityType} = require('discord.js')
bot.once('ready', async (bot) => {
bot.user.setPresence({ activities: [{
name: `Fortnite`,
type: ActivityType.Playing
}],
status: `online` });
})
const {ActivityType} = require('discord.js')
bot.once('ready', async (bot) => {
bot.user.setPresence({ activities: [{
name: `Fortnite`,
type: ActivityType.Playing
}],
status: `online` });
})
(you can change from bot to client depending on how you define your bot)
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server