【问题标题】:How would I make a bot self deafen itself?我如何让机器人自聋?
【发布时间】:2020-08-11 01:21:08
【问题描述】:

我目前正在尝试让机器人在加入语音频道后立即聋。 我试过了

client.ws.voice.setSelfDeaf(true)

我也被告知要使用

client.ws.send()

但我不知道如何使用它。 有什么办法可以吗?

【问题讨论】:

    标签: discord.js


    【解决方案1】:

    client.ws.voiceclient.ws.send() 不是一个东西。

    你需要做的是在机器人加入语音频道时使用voice.setSelfDeaf(true)

    voiceChannel.join()
      .then(connection => {
          connection.voice.setSelfDeaf(true);
      });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-07-29
      • 2021-07-05
      • 1970-01-01
      • 2021-04-15
      • 2019-11-23
      • 2021-05-11
      • 2019-06-29
      相关资源
      最近更新 更多