Sitelet https://github.com/Java-Discord/JavaBot/pull/475
Skip to content

use correct componentId element on delete button - #475

Merged
jasonlessenich merged 2 commits into
Java-Discord:mainfrom
danthe1st:fix-delete-button
Mar 31, 2024
Merged

jasonlessenich merged 2 commits into
Java-Discord:mainfrom
danthe1st:fix-delete-button

Conversation

@danthe1st

@danthe1st danthe1st commented Jan 9, 2024 •

Copy link
Copy Markdown
Member

Currently, the delete button does yields a permission error for non-moderators.

This is because the check for the requester ID (the user who is allowed to delete it) is using the wrong component ID.

It seems I didn't properly test #446 (well actually the account I tested it with probably had the registered mod role)

The issue was discovered by @DeveloperCallum.

@danthe1st
danthe1st requested a review from a team as a code owner January 9, 2024 18:34
@danthe1st danthe1st added the bug Addresses a bug. label Jan 9, 2024
@jasonlessenich
jasonlessenich merged commit ca3aeed into Java-Discord:main Mar 31, 2024
@danthe1st
danthe1st deleted the fix-delete-button branch March 31, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Addresses a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants