Answers for "discord.py bot presence"

7

discord.py presence

# Setting `Playing ` status
await bot.change_presence(activity=discord.Game(name="a game"))

# Setting `Streaming ` status
await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))

# Setting `Listening ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))

# Setting `Watching ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="a movie"))
Posted by: Guest on April-05-2021
2

how to make rich presence discord,py

await bot.change_presence(activity=discord.Game(name="Anything You Want"))
Posted by: Guest on June-04-2020

Python Answers by Framework

Browse Popular Code Answers by Language