- Lib: "Lib Name"
- Lang "Lib Lang"
- Code
Last active
August 21, 2018 10:24
-
-
Save archeruwu/afa46f72532ab6a9e635592013fb8f27 to your computer and use it in GitHub Desktop.
new discord statuses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Needs latest Master file from discord.js github | |
//Code by archer#9341 | |
<Client>.user.setActivity("name", {type: "<WATCHING, PLAYING, STREAMING, LISTENING>"}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//code by Cynthia💚#0501 | |
<Client>.editStatus("<online, idle, dnd, invisible>",{name:"name",type:0}); //0 = normal, 1 = streaming, 2 = listening, 3 = watching |
done
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
Eris