【问题标题】:How can I delete any voice channel on Discord after 3 minutes if the channel is not full?如果频道未满,如何在 3 分钟后删除 Discord 上的任何语音频道?
【发布时间】:2021-01-11 13:09:57
【问题描述】:

我正在使用 Python 编写一个不和谐机器人,我只想知道如何在创建后 3 分钟后删除任何语音通道,如果语音通道未满 (user_limit =10),则在特定类别下。

感谢任何帮助,在此先感谢!

【问题讨论】:

    标签: python timer discord bots channel


    【解决方案1】:

    Get the members in a voice channel
    Get the user limit of a voice channel
    Delete the channel

    在提出问题之前,请尝试进行一些研究。 在这种情况下,将您的代码拆分为您想要执行的操作并搜索它们

    • 等待 3 分钟
    • 获取频道中的成员
    • 检查该频道的会员数量是否等于频道用户限制
    • 如果没有,删除频道

    如果您仍然找不到解决方案,请寻求帮助,但您可能已经自己解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-04-18
      • 1970-01-01
      • 2022-07-10
      • 2022-01-23
      • 2021-01-05
      • 1970-01-01
      • 2021-01-12
      相关资源
      最近更新 更多