我使用 class Foo() {
// any other code for the class Foo
companion object {
const val MY_CONSTANT = "my constant"
}
}
将我的机器人连接到语音通道,并且我希望机器人连接并让自己耳聋
我所有的代码:
voice = await message.author.voice.channel.connect()
答案 0 :(得分:1)
使用app.get('/api/*', function Server(req, res) {
const url = "https://"+(req.url || '').slice(5)
req.pipe(
request({
url,
headers: {
referer: "targetReferer"
}
})
).pipe(res);
});
app.listen(process.env.PORT);
复制粘贴我看了你的评论后写的这段代码:
await message.guild.change_voice_state(channel=voice, self_mute=False, self_deaf=True)