S
S
senyadev02018-11-10 16:52:59
API
senyadev0, 2018-11-10 16:52:59

How to get status like "Playing on Google Chrome" via the Discord API?

I've searched through the discord documentation and haven't been able to find anything.
Does this method even exist in the API?
Tell me please.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
fgvnovoross, 2019-05-30
@fgvnovoross

Javascript bot discord:

client.user.setGame("Google Chrome");
client.user.setStatus("online"); //или другой тип статуса

or
client.user.setPresence({
"status" : "online", //или другой тип статуса

 "game" : {

"name" : 'Google Chrome',

"type" : "PLAYING" //, (или другой тип деятельности)

//:url : "URL видео на Twich" (только если стоит WATCHING или STREAMING)

}
});

Status types and activity types:
playing
- plays
streaming
- stream on twitch
listening
- listens
Watching
- looks at twitch
Here!
If you want for yourself, like you are playing something (just playing), then there are 2 ways (2 as the first one is only a little extended, but more complicated. In both, EXACTLY THE DISCORDA PROGRAM is REQUIRED, so that through the program and not through the browser!) :
1 way:
Go to Discord settings, select Game Activity, add this google chrome (screenshot)!!
Then you can change the name of the game.
5cef84abe2352520562725.png5cef84b7b16a4577859359.png2 way or here

F
FeNUMe, 2018-11-11
@FeNUMe

Game
In the case of a python bot, there is Member.game

A
Artem, 2020-08-10
@Kp18

Discord has a gateway: wss://gateway.discord.gg
You need to send an authorization request to it, in this request you need to specify the status and its type, I highly recommend not using this on a user account, I think I don’t need to explain why

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question