O
O
OxyRazor2020-11-21 11:08:59
Bots
OxyRazor, 2020-11-21 11:08:59

I want to make a function for the bot so that when a person leaves the voice channel, the bot would clear a certain channel, how to do this?

I want to clear the chat through on_voice_state_update

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavlosik, 2021-10-17
@Pavlosik

add to the event on_voice_update:
member.disconnect:
add or connect the clear command and the clear command will be cleared;
now add to the play command:
member.get_channel("id")
after when you connected the clear command in the event, insert get.id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question