startup options for API stuff
why not to add some startup options to be used by 3rd-party software? when discord is started up with one of these options, it outputs selected data into stdout and then exits with exit code 0. Example:
discord --get-unread-ping-count
returns
5
if user had 5 unread pings
other startup options that could be useful:
--get-status - returns one of: "online", "offline", "invisible", "away" or "dnd", depending on user online status
--get-user-info - returns JSON with user info (username, tag, UUID, avatar URL)
--get-unread-messages-count - returns total number of unread messages
--get-unread-channel-count - same as above, but with channels
--get-unread-server-count - same as above, but with servers
--is-in-vc - "true", if user is in any voice chat, "false" otherwise
--is-streaming - "true", if user is doing go-live stream, "false" otherwise. (can't be true when "--is-in-vc" is false)
--is-watching-stream - "true" if user is watching go-live strea, "false" otherwise
when multiple options is present, it outputs an JSON like that:
{
"is-in-vc":"true",
"user-info":{
"username":"/home/cavej376",
"tag":"3328"
},
"is-streaming":"false",
"is-watching-stream":"true"
}
why do i need that? well, i couldn't find a workaround for my custom statusbar discord status readout, so i decided to post this suggestion...
0
-
why not to add some startup options to be used by 3rd-party software? when discord is started up with one of these options.
0
Please sign in to leave a comment.
Comments
1 comment