Skip to content

Bulk Guild Ban omits user_id in Audit Log entries #8188

@NickantX

Description

@NickantX

Description

Audit Log entries created from Bulk Guild Ban do not include a user_id to attribute the action to the account.

Steps to Reproduce

Ban any set of users with this endpoint. Example:

{
	"user_ids": [
		"905658191659040808"
	]
}

The created audit log entry does not include a user_id:

Image
{
    "id": "1478531976024686734",
    "action_type": 22,
    "user_id": null,
    "target_id": "905658191659040808"
}

Expected Behavior

All bans created by this endpoint should have a user_id.

Current Behavior

Most bans created by this endpoint do not have a user_id in their audit log entries. I first noticed this from one of these actions performed by a user account, where one of the bans did have a user_id, but the rest did not.

Screenshots/Videos

No response

Client and System Information

ptb 503231 (b04be92) Host 0.0.211 arm64 Build Override: N/A macOS 26 (25.3.0)

API calls made through a test bot directly to the API endpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions