AS a user, I want to be able to delete posts I made with the /bunny command #321

Open
opened 2023-07-27 11:56:42 +01:00 by Vylpes · 2 comments
Owner

Epic:
Story Points: Story Points: 2


AS a user, I want to be able to delete posts I made with the /bunny command
SO THAT I can remove posts I might not want/like

Acceptance Criteria

AS a user
GIVEN I used the /bunny command
AND I want to remove the output
WHEN I click on the Delete button
THEN the bot should delete this embed

AS a user
GIVEN I wasn't the one who ran the /bunny command
WHEN I click on the Delete button
THEN the bot should give me an error

Subtasks

  • Add delete button
  • Update tests
  • Fix "Event not found"

Notes

No notes

Epic: \ Story Points: Story Points: 2 --- AS a user, I want to be able to delete posts I made with the /bunny command SO THAT I can remove posts I might not want/like ## Acceptance Criteria AS a user GIVEN I used the `/bunny` command AND I want to remove the output WHEN I click on the `Delete` button THEN the bot should delete this embed AS a user GIVEN I wasn't the one who ran the `/bunny` command WHEN I click on the `Delete` button THEN the bot should give me an error ## Subtasks - [x] Add delete button - [x] Update tests - [x] Fix "Event not found" ## Notes *No notes*
Vylpes added this to the 3.4.0 milestone 2023-07-27 11:56:55 +01:00
Vylpes changed title from Allow original poster to delete posts made with the /bunny command via a button to AS a user, I want to be able to delete posts I made with the /bunny command 2024-03-10 15:25:36 +00:00
Vylpes self-assigned this 2025-11-20 18:43:38 +00:00
Vylpes added this to the 3.3 Sprint 9 project 2025-11-20 18:43:40 +00:00
Vylpes stopped working 2025-11-21 17:53:16 +00:00
13 minutes 58 seconds
Author
Owner

This is failing - Event not found
image

This is failing - `Event not found` ![image](/attachments/8efd5d07-dceb-4638-9b25-6119588d8fd7)
Vylpes stopped working 2025-12-08 21:44:32 +00:00
3 minutes 25 seconds
Member

QA results — #321 (step/testing → step/uat)

Branch: release/3.4.0 @ e2eda43
Landed via: PR #526 (Delete button) + PR #539 (register bunny button event; fixes “Event not found”).

Acceptance criteria

Criterion Result
/bunny reply includes a Delete button PASS — customId bunny delete <userId>, label Delete (command suite)
Original user clicks Delete → embed deleted PASS — buttonEvents/bunny suite
Non-original user (no Manage Messages) clicks Delete → error, not deleted PASS — permission error path
Bunny button event registered (no “Event not found”) PASS — Registry.RegisterButtonEvents() registers bunny

Verification

Check Result
yarn build (tsc) PASS
yarn test PASS — 4 suites / 47 tests / 2 snapshots
yarn lint N/A — no lint script/eslint config on release/3.4.0
tests/commands/bunny.test.ts PASS
tests/buttonEvents/bunny.test.ts PASS

Notes

  • Mods with Manage Messages can also delete (extra to AC; covered by tests).
  • Live Discord smoke (/bunny → Delete as author / as other user) left for human UAT.

Assigning to @Vylpes for UAT.

## QA results — #321 (step/testing → step/uat) **Branch:** `release/3.4.0` @ `e2eda43` **Landed via:** PR #526 (Delete button) + PR #539 (register bunny button event; fixes “Event not found”). ### Acceptance criteria | Criterion | Result | | --- | --- | | `/bunny` reply includes a Delete button | PASS — `customId` `bunny delete <userId>`, label Delete (command suite) | | Original user clicks Delete → embed deleted | PASS — buttonEvents/bunny suite | | Non-original user (no Manage Messages) clicks Delete → error, not deleted | PASS — permission error path | | Bunny button event registered (no “Event not found”) | PASS — `Registry.RegisterButtonEvents()` registers `bunny` | ### Verification | Check | Result | | --- | --- | | `yarn build` (`tsc`) | PASS | | `yarn test` | PASS — 4 suites / 47 tests / 2 snapshots | | `yarn lint` | N/A — no lint script/eslint config on `release/3.4.0` | | `tests/commands/bunny.test.ts` | PASS | | `tests/buttonEvents/bunny.test.ts` | PASS | ### Notes - Mods with Manage Messages can also delete (extra to AC; covered by tests). - Live Discord smoke (`/bunny` → Delete as author / as other user) left for human UAT. Assigning to @Vylpes for UAT.
Smithy-bot removed their assignment 2026-09-23 12:06:13 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 17 minutes 23 seconds
Vylpes
17 minutes 23 seconds
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
RabbitLabs/vylbot-app#321
No description provided.