T
T
TanderOFF2021-07-03 17:43:09
Python
TanderOFF, 2021-07-03 17:43:09

How to check category?

Hello, I would like to know when a user connects to a voice channel, how to find out the category id of this voice channel?

@client.event
async def on_voice_state_update(member, before, after):
    if category.id == 77777777777777:
        print(f'Название категории {name}') 
        return

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-07-03
@TanderOFF

after.channel.category_id
https://discordpy.readthedocs.io/en/stable/api.htm...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question