Discord Python Bot,如何通过命令使用户静音

时间:2020-10-10 17:21:02

标签: python discord bots

我的代码如下:

@client.command()
async def oli(ctx):
    @client.event
    async def on_message(message):
        if message.author.id == (id of the person who we want to mute):
            await message.delete()
    async def mute():

“删除消息”部分工作正常,但是我也希望服务器使用户静音

0 个答案:

没有答案