重命名VoiceChannel的Discord.py Bot有时只能使用

时间:2020-06-19 12:14:57

标签: python discord discord.py

我有一个用discord.py编写的discord机器人,想重命名语音通道。它有时有效,但有时却无效。而且我没有错误。

这是代码:

@client.event
async def on_message(message):
    if "s!close" in message.content:
        voice_channel = client.get_channel(711953093335449632)
        await voice_channel.edit(name="support-closed")

1 个答案:

答案 0 :(得分:2)

通道最近受到速率限制,以防止滥发API和降低服务器性能。

enter image description here