@TanderOFF

Как проверить, выключил ли участник микрофон?

Как определить, выключил ли участник микрофон или нет?

@client.event
async def on_voice_state_update(member, before, after):
    if before.channel is None and after.channel is not None:
    #Вот тут проверить микрофон
  • Вопрос задан
  • 134 просмотра
Решения вопроса 1
SoreMix
@SoreMix
yellow
after.self_deaf / after.self_mute

https://discordpy.readthedocs.io/en/stable/api.htm...
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
Vindicar
@Vindicar
RTFM!
Почитать документацию.
class discord.VoiceState
Represents a Discord user’s voice state.
deaf
bool – Indicates if the user is currently deafened by the guild.
mute
bool – Indicates if the user is currently muted by the guild.
self_mute
bool – Indicates if the user is currently muted by their own accord.
self_deaf
bool – Indicates if the user is currently deafened by their own accord.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы