Skip to content

Conversation

@Andre601
Copy link
Collaborator

Makes the Deny button open a modal where an optional reason can be set.
Not providing any will instead set *No reason provided*

Also fixes an oversight where EmbedReply would set non-ephemeral messages for button interactions, causing possible spam by people trying to use a button they have no perms for.

Finally, some small improvements regarding username checks for submit modal to ensure the username is actually checked before sending it to the jenkins api (Removes IJ nagging about possibly-null issues)

Closes #17

@Andre601 Andre601 requested a review from gmitch215 November 12, 2024 01:22
@gmitch215
Copy link
Member

I'll see if I can test this tomorrow. So far, looks good.

@gmitch215
Copy link
Member

gmitch215 commented Nov 12, 2024

Seems that JDA makes modal fields required by default.

Everything else works as intended.

@gmitch215 gmitch215 merged commit d02fa78 into master Nov 12, 2024
2 checks passed
@Andre601 Andre601 deleted the feature/deny-reason-modal branch November 28, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Reason Modal for Deny Button

3 participants