Discord AuditLogAction.channel\u更新和定位出现问题

Discord AuditLogAction.channel\u更新和定位出现问题,discord,discord.py,discord.py-rewrite,Discord,Discord.py,Discord.py Rewrite,我对AuditLogAction有问题。当有人改变位置时(只是为了它),机器人会给我错误的用户ID。我追溯什么是ID,发现了这个:这是ID,他在通道中改变了一些东西,除了位置。 代码: 我尝试了AuditLogDiff,但我不知道如何使用它。文档已经读过了,但是我想,我不能理解它。有人能帮我吗 async for author in before.guild.audit_logs(limit = 1, oldest_first = False, action = discord.AuditLog

我对AuditLogAction有问题。当有人改变位置时(只是为了它),机器人会给我错误的用户ID。我追溯什么是ID,发现了这个:这是ID,他在通道中改变了一些东西,除了位置。 代码:

我尝试了AuditLogDiff,但我不知道如何使用它。文档已经读过了,但是我想,我不能理解它。有人能帮我吗

async for author in before.guild.audit_logs(limit = 1, oldest_first = False, action = discord.AuditLogAction.channel_update):
        print('{0.target}'.format(author)) #printed me: ghtbfcvnjy, when channel have change position
        member = '{0.user.id}'.format(author) 
        user = await client.fetch_user(member)