2024-04-19 01:57:36 发布
网友
我正在用Python编写一个discord BOT,我正在编写一个kick-and-ban命令。我试图让BOT更改服务器的审核日志,添加一个“With reason:”来添加负责的审阅者。有人知道我怎么做吗。在
在discord.py rewrite中,可以使用the ban coroutine
discord.py rewrite
ban(user, *, reason=None, delete_message_days=1)
原因是:
reason (Optional[str]) – The reason the user got banned.
在
discord.py rewrite
中,可以使用the ban coroutineban(user, *, reason=None, delete_message_days=1)
原因是:
reason (Optional[str]) – The reason the user got banned.
相关问题 更多 >
编程相关推荐