【问题标题】:See if a user is talking in a voice channel with discord.py使用 discord.py 查看用户是否在语音频道中交谈
【发布时间】:2021-09-08 06:51:30
【问题描述】:

我想通过 discord.py 库查看用户是否在说话。是否有我可以使用的功能或代码来做到这一点?也许是这样的:

@bot.event
async def on_talking_update(user, prev, cur):
    if cur.is_talking and prev.is_not_talking:
        print("the person is now talking")
    elif prev.is_talking and cur.is_not_talking:
        print("the person is done talking")

【问题讨论】:

  • 我猜没有实现通话。

标签: python discord discord.py bots


【解决方案1】:

您无法检测到是否有人在语音频道中讲话。您只能查看他们是否在语音频道中。

【讨论】:

    猜你喜欢
    • 2021-03-30
    • 2022-01-15
    • 2021-07-05
    • 2021-05-03
    • 2021-04-13
    • 2018-04-04
    • 1970-01-01
    • 2021-01-31
    • 2021-06-05
    相关资源
    最近更新 更多