Skip to content

Add trash option to all bot responses #1136

@gustavwilliam

Description

@gustavwilliam

Issue

When using a command like !rule [rules...] or !pep <pep_number>, there is no way for the user to delete the response sent by the bot.

This is would be relevant when entering the wrong argument (for example !rule 4 instead of !rule 5), you just want to check something real quick or you get the output wasn't what you expected.

Proposed solution

Add a "trash can" reaction to let the user delete the response from the bot. This would be the default for all commands, with the option to disable it for specific commands.

A possible way of specifying that a command should not have the trash option would be using a decorator. Something like @not_deletable or @no_trash would be used for the commands.

We already have the trash functionality implemented in many commands, so this is just a matter of making it more general.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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