Skip to content

Instantly share code, notes, and snippets.

@archeruwu
Last active August 21, 2018 10:24
Show Gist options
  • Save archeruwu/afa46f72532ab6a9e635592013fb8f27 to your computer and use it in GitHub Desktop.
Save archeruwu/afa46f72532ab6a9e635592013fb8f27 to your computer and use it in GitHub Desktop.
new discord statuses

if you want to add more examples, leave them in the comments like:

  • Lib: "Lib Name"
  • Lang "Lib Lang"
    • Code
# Code by Martmists#1003
# `status` is one value of the enum: disco.types.user.Status (see https://github.com/b1naryth1ef/disco/blob/master/disco/types/user.py#L63-L69)
# Types:
# 0 = normal
# 1 = streaming
# 2 = listening
# 3 = watching
<disco.Client>.update_presence(status, disco.types.user.Game(name='name', type=0))
//Needs latest Master file from discord.js github
//Code by archer#9341
<Client>.user.setActivity("name", {type: "<WATCHING, PLAYING, STREAMING, LISTENING>"});
# Code by Martmists#1003
# NOTE: use `yield from` instead of `await` when using Python 3.4 or below!
# Types:
# 0 = normal
# 1 = streaming
# 2 = listening
# 3 = watching
# Discord.py <1.0.0
await <discord.Client>.change_status(game=discord.Game(name='name', type=0))
# Discord.py >=1.0.0
await <discord.Client>.change_presence(game=discord.Game(name='name', type=0))
//code by Cynthia💚#0501
<Client>.editStatus("<online, idle, dnd, invisible>",{name:"name",type:0}); //0 = normal, 1 = streaming, 2 = listening, 3 = watching
@Martmists-GH
Copy link

Disco

# `status` is one value of the enum: disco.types.user.Status (see https://github.com/b1naryth1ef/disco/blob/master/disco/types/user.py#L63-L69)

# Types:
# 0 = normal
# 1 = streaming
# 2 = listening
# 3 = watching

<disco.Client>.update_presence(status, disco.types.user.Game(name='name', type=0))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment