且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Discord.py-服务器静音用户

更新时间:2023-11-30 12:20:58

使用 Member.edit 通过 mute = True

await user_obj.edit(mute=True)

您还应该使用 await asyncio.sleep 进行睡眠,以避免阻塞事件循环

You should also be using await asyncio.sleep to sleep, to avoid blocking the event loop