Rich presence
I'm trying to use the rich presence of my bot, however, when I use client.user.setActivity and pass the activity parameter, the images don't work, the texts work, however, when I change the name parameter to the name of my bot and I use "512x512pngimages" in the large_image parameter. I can use my bot's icon in rich presence, but I cannot use custom images that I uploaded to the art assets page on the developer portal
33 Replies
- 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 OPBot's can't have rich presence
but this is precisely the point, it is possible
this bot belongs to my friend
But it isnt, your friend is doing something dodgy
Rich presence is not done via setActivity, its a local protocol
How can it be doubtful if it is a function of discord.js itself?
It is not a function of discord.js
If your friend has achieved it why not ask them how?
He also wants to know how to place custom images, we can only place the icon of the bot or a server
Discord Developer Portal
Discord Developer Portal β API Docs for Bots and Developers
Integrate your service with Discord β whether it's a bot or a game or whatever your wildest imagination can come up with.
Its simply not discord.js functionality
When I opened the ticket I was wrong, we used the .setPresence function
Details are here from Discord
Its the same thing, it still doesnt support it over the gateway
I swear to you that I'm using discord.js, at the moment I'm not on my computer but as soon as I log in I'll show you
Can I send you a friend request to remember you when I log on to the computer?
Ok
Sorry if I say something wrong, I'm Brazilian and my English isn't good
Actually you can set a "custom image" for the presence of your bot
But isn't rich presence
I made a lot of tests using the gateway connection, isn't the way that she thought, because you can't set other properties that isn't for bot presence
The way that this works is using the name and image from the application that owns the bot. You just need to set the name of the activity to the name of the application
And the picture of the application will display as the large image from the presence, but you can't set the text for that image
Isn't something "dodgy", it's something from Discord itself
did you see? I was right and you are accusing me of doing something suspicious
Well I can reporoduce, but again all this is undocumented, and we do not support undocumented stuff.
Isn't related to discord.js
Also by the looks of it, this behavior is only reproducible when you put the application name as
name
so initial point still stands, bot's can't have rich presence, well except in this scenario igAlso, the other properties from presence don't work for bots, like
timestamps
, assets
, etcAlso not exactly rich presence if you ask me tbh, it just adding the Image part of the application, rest don't work anyway
I meant discord's documentation, not discord.js's
Unknown Userβ’3mo ago
Message Not Public
Sign In & Join Server To View
I already explain, no need to say that
In fact, you are not friendly at all, I just wanted to know if it was possible to put a personalized image and you already said that I use a fork of discord.js or that we were doing something suspicious