Skip to content

Show purgebanned in the feedback message of pban  #1412

@Akarys42

Description

@Akarys42

Current when a user is banned or purgebanned this feedback message will be sent:

📨 👌 applied ban to USER permanently.

It would be nice to have purgeban instead of ban in the message.

To achieve that, we can add a purge: True entry to the infraction dictionary in

await self.apply_infraction(ctx, infraction, user, action)

And append purge at the beginning of infr_type if infraction.get('purge') is True

log.info(f"Applied {infr_type} infraction #{id_} to {user}.")

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: backendRelated to internal functionality and utilities (error_handler, logging, security, utils and core)a: moderationRelated to community moderation functionality: (moderation, defcon, verification)p: 3 - lowLow Priorityt: enhancementChanges or improvements to existing features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions