We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AuditLogAction.member_move and .member_disconnect have no target, when I would expect an abc.User-based object.
AuditLogAction.member_move
.member_disconnect
target
abc.User
async for entry in guild.audit_logs(action=discord.AuditLogAction.member_move): print(type(entry.target)) # will print <class 'NoneType'> async for entry in guild.audit_logs(action=discord.AuditLogAction.member_disconnect): print(type(entry.target)) # will print <class 'NoneType'>
entry.target is a User or Member.
entry.target
User
Member
entry.target is None
None
The text was updated successfully, but these errors were encountered:
Not a Discord.py bug.
Discord simply does not provide this information. This is what Discord returns for disconnect, the same applies to move:
{ "audit_log_entries": [ { "id": "724117578582065223", "user_id": "182226567043219456", "target_id": null, "action_type": 27, "options": { "count": "1" } } ], "users": [ { "id": "182226567043219456", "username": "Tarek", "avatar": "cc97d72d834660ab1b1dcd62945b3da0", "discriminator": "1337", "public_flags": 780 } ], "integrations": [], "webhooks": [] }
Sorry, something went wrong.
Ok, thank you
No branches or pull requests
Summary
AuditLogAction.member_move
and.member_disconnect
have notarget
, when I would expect anabc.User
-based object.Reproduction Steps
Expected Results
entry.target
is aUser
orMember
.Actual Results
entry.target
isNone
Checklist
System Information
The text was updated successfully, but these errors were encountered: