Skip to content

request: On .ban user, send a message to admin logs channel showing current roles #2755

@themrrobert

Description

@themrrobert

Is there an existing issue or pull request for this?

  • I have searched the existing issues and pull requests

Feature description

When banning a user, all roles are lost. (Discord fact)

Rarely, a user can be banned by mistake, either by discord replacing the user at the last moment, or user error.

We want to be able to see the roles a user has when they leave; mostly to give a complete picture of the user leaving the server, but also to make it easier to restore roles in the case of an accidental, incorrect, or misidentified ban.

Desired solution

Skyra can help by: when banning a user (or anytime a user leaves), the 'user left' message should include a list of all roles that the user had at the time; not only for restoring roles after an accidental ban, but also to give a complete picture of who is leaving the server.

This doesn't have to be a list of role mentions, just the names would be sufficient, however that's up to you.

Alternatives considered

Alternatively, this could be displayed only when a user is banned; however, I think it also makes sense for all users who leave.

Caching/storing previous roles to restore on rejoin seems like an unnecessary use of resources, when a log is more than sufficient.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions