【问题标题】:Discord.py bot to move users to a different voice channelDiscord.py 机器人将用户移动到不同的语音频道
【发布时间】:2016-06-23 08:19:07
【问题描述】:

我目前正在使用 discord.py 模块编写一个机器人(参考可以在这里找到:http://rapptz.github.io/discord.py/api.html)。

机器人(脚本)有什么方法可以将用户移动到不同的语音频道?

例如,用户 X 正在播放“星际公民”但在“BF4”频道。该机器人会将用户移动到正确的“星际公民”语音频道。

任何帮助将不胜感激(我是 python 和 SO 的新手)。

【问题讨论】:

    标签: python


    【解决方案1】:

    有一个移动成员的功能: http://discordpy.readthedocs.io/en/latest/api.html#discord.Client.move_member

    以及获得新游戏的功能: http://discordpy.readthedocs.io/en/latest/api.html#discord.on_member_update

    除此之外,在 stackoverflow 上,您应该提供一些您已经尝试过的东西,而不是进来说“嘿,我该怎么做 x”

    【讨论】:

      猜你喜欢
      • 2019-04-08
      • 1970-01-01
      • 2018-06-16
      • 2020-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-30
      • 2022-01-04
      相关资源
      最近更新 更多