M
M
Mem13882021-02-14 06:18:57
Python
Mem1388, 2021-02-14 06:18:57

What needs to be imported for the Watching attribute to work?

I wanted to make the status "Watching", the error AttributeError: module 'discord' has no attribute 'Watching'
There is a Game import, it works, other statuses do not.

@Bot.event
async def on_ready():
    while True:
        activity = discord.Watching('Статус')
        await Bot.change_presence(status=discord.Status.idle, activity=activity)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-02-14
@Mem1388

await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=". . ."))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question