S
S
SNVMK2020-11-15 09:58:15
Python
SNVMK, 2020-11-15 09:58:15

discord.py bot activity with app?

Of course, I can make the simplest bot activity - just "plays a game" there, without pictures, state, details, etc. But how to make such an activity, as when a real person starts the game, and it appears in his status? Like this should be done somehow in discord.Activity, something like this:

await bot.change_presence(activity=discord.Activity(application_id=777410499004203040, type=discord.ActivityType.playing, name=f'{bot.user.name}', state='Programmed by SNVMK#8973', details=f'Type {prefix}help to view commands', assets={'large_image': 'avatar', 'large_image_text': 'Robo-hamster'}))

(I have a prefix variable, id is correct, but only the name of the game is displayed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Nevzorov, 2020-11-15
@SNVMK

Bot accounts do not support Rich Presence
ea4f4cf6eec4252ff509e1eca078da94.png
As for simple "games" and custom statuses, they can be put on a bot, but:
The client does not try to pick up an application icon for bots under any circumstances:
7rB4vgE.png
6pzR8rg.png
Regarding custom statuses, the client ignores them for bots:
6SodCaT.png
4GTT1he.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question