Discord Status fetcher with guild?

Hello Ya'll, How can I retrieve and display the current activity status of myself (as guild member) on my website? I am considering creating a JSON API using Node.js, which would utilize a Discord bot to obtain this data and then parse it into the API.
5 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! - āœ… Marked as resolved by OP
chewie šŸŒˆ
chewie šŸŒˆā€¢4mo ago
not djs related, #useful-servers #other-js-ts
Pikachubolk
Pikachubolkā€¢4mo ago
I wanted to ask how to fetch the users activity using discord.js since, i've not been able to find anything within the docs which allows me to exactly what I want to do.
chewie šŸŒˆ
chewie šŸŒˆā€¢4mo ago
you would have to fetch the guildmember object and that also required the GuildPresences intent, you are better off relying on something else than a bot library
Pikachubolk
Pikachubolkā€¢4mo ago
What would you recommend me doing then, since the REST API doesn't really allow me to fetch the activity of the myself, and having a program open 24/7 to send my data over to the webserver doesn't sound ideal either. For music i could maybe use last.fm but for games i'm not sure Figured it out