我有一个用 discord.py 编写的不和谐机器人,想重命名一个语音频道.它有时有效,但有时无效.而且我没有收到任何错误.
I have a discord bot written in discord.py and wanna rename a voice channel. It sometimes works but sometimes it doesn't. And I get no error.
代码如下:
@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")
频道最近受到了不和谐的限速,以防止向 API 发送垃圾邮件并降低服务器性能.
Channels have recently been rate-limited in discord to prevent spamming the API and degrading server performance.
这篇关于Discord.py Bot 重命名 VoiceChannel 有时只能工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
如何制作一个在 Python 中提供角色的不和谐机器人How to make a discord bot that gives roles in Python?(如何制作一个在 Python 中提供角色的不和谐机器人?)
Discord 机器人没有响应命令Discord bot isn#39;t responding to commands(Discord 机器人没有响应命令)
你能得到“关于我"吗?Discord 机器人的功能?Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“关于我吗?Discord 机器人的功能?(不和谐.py))
message.channel.id Discord PYmessage.channel.id Discord PY(message.channel.id Discord PY)
如何在 heroku 上托管我的 discord.py 机器人?How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 机器人?)
discord.py - 自动更改角色颜色discord.py - Automaticaly Change an Role Color(discord.py - 自动更改角色颜色)