Skip to content

refactor: switch reactions with buttons - #59

Merged
RedStar071 merged 2 commits into
mainfrom
refactor/switch-reactions-confirm-to-button
Dec 19, 2024
Merged

RedStar071 merged 2 commits into
mainfrom
refactor/switch-reactions-confirm-to-button

Conversation

@RedStar071

Copy link
Copy Markdown
Member

This pull request includes significant changes to the src/lib/util/functions/messages.ts file to replace reaction-based confirmation prompts with button-based ones. The most important changes include the removal of reaction handling code, the addition of button handling code, and the update of the promptConfirmation function to use buttons exclusively.

Transition from Reactions to Buttons:

Refactor of Confirmation Prompt Functions:

  • src/lib/util/functions/messages.ts: Replaced the PromptConfirmationReactions enum and the promptConfirmationReaction function with a new promptConfirmationButton function that creates and handles button interactions.
  • src/lib/util/functions/messages.ts: Updated the promptConfirmation function to use the new promptConfirmationButton function instead of the old reaction-based methods.…reactions

@RedStar071
RedStar071 force-pushed the refactor/switch-reactions-confirm-to-button branch from d08f307 to e1a65af Compare October 21, 2024 13:57
@codecov

codecov Bot commented Oct 21, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 7.14286% with 13 lines in your changes missing coverage. Please review.

Project coverage is 71.98%. Comparing base (0b3c8e3) to head (e1a65af).

Files with missing lines Patch % Lines
src/lib/util/functions/messages.ts 7.14% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
+ Coverage   71.94%   71.98%   +0.03%     
==========================================
  Files          91       91              
  Lines        2841     2834       -7     
  Branches      209      292      +83     
==========================================
- Hits         2044     2040       -4     
+ Misses        792      789       -3     
  Partials        5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@RedStar071
RedStar071 force-pushed the refactor/switch-reactions-confirm-to-button branch from e1a65af to f9bb2fe Compare October 27, 2024 15:20
@RedStar071
RedStar071 marked this pull request as ready for review December 19, 2024 21:25
@RedStar071
RedStar071 merged commit 980545f into main Dec 19, 2024
@RedStar071
RedStar071 deleted the refactor/switch-reactions-confirm-to-button branch December 19, 2024 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant