discordjs / discord.js

A powerful JavaScript library for interacting with the Discord API
https://discord.js.org
Apache License 2.0
25.23k stars 3.96k forks source link

Bot presence: no custom app #5404

Closed gXLg closed 3 years ago

gXLg commented 3 years ago

In discord.js, neither normal bots nor selfbots are able to set custom picture for the game they are playing. I know it's possible, because it works with discord.py.

The code I am trying to use for node:

  bot.user.setPresence ( { activity : {
    name : "GGame",
    type : "PLAYING",
    applicationID : [app_id here],
    details : "Some details",
    state : "In the lobby",
    assets : {
      largeImage : [id of picture here]
    }
  }, status : "dnd" })

For a normal bot it only sets PLAYING GGame (details, state and assets are completely ignored)

For a selfbot it sets everything except the assets.

Also on both the applicationID field is null when checking.

Versions:

Also, for all those who would want to warn me about selfbots: I am totally aware of the ToS and using selfbot only for testing the API.

vaporoxx commented 3 years ago

"Bots are only able to send name, type, and optionally url." (Source)

gXLg commented 3 years ago

@vaporox Well, does that mean, that discord.py has a better coverage of the API?

vaporoxx commented 3 years ago

No, this means that it is not even possible for discord.py to add assets to bot activities.

gXLg commented 3 years ago

@vaporox okey, I see, did not try to setup a bot with discord.py, only selfbot. @almostSouji yeah, I also wanted to close it right now.

almostSouji commented 3 years ago

You might want to look into https://discord.com/guidelines then. Selfbots are not permitted and we do not support their use in discord.js.