Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(permissions): add command permissions #169

Closed
wants to merge 7 commits into from

Conversation

mezotv
Copy link
Contributor

@mezotv mezotv commented Oct 5, 2024

Closes #155

@mezotv mezotv requested a review from a team as a code owner October 5, 2024 18:55
Copy link

changeset-bot bot commented Oct 5, 2024

🦋 Changeset detected

Latest commit: c660412

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@buape/carbon Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mezotv mezotv marked this pull request as draft October 5, 2024 18:55
@github-actions github-actions bot added the p:carbon The carbon package label Oct 5, 2024

This comment was marked as outdated.

@mezotv mezotv marked this pull request as ready for review October 5, 2024 18:59
Copy link
Member

@thewilloftheshadow thewilloftheshadow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this does technically work and will deploy, I'd like to add a bit more DX for it. Maybe passing an array from an enum of permissions?

Additionally, the subcommand and subcommand groups currently won't work. They don't error because they're still abstract within Carbon, but if you check the test command for them, you'll see the errors there.

@mezotv mezotv marked this pull request as draft October 5, 2024 21:58
@mezotv mezotv changed the title Feat(permissions): add command permissions feat(permissions): add command permissions Oct 6, 2024
@mezotv mezotv marked this pull request as ready for review October 6, 2024 19:20
Copy link
Member

@thewilloftheshadow thewilloftheshadow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code does not seem tested, and the commands do not work

CleanShot 2024-10-19 at 10 12 46@2x

@mezotv mezotv closed this Oct 19, 2024
@mezotv mezotv deleted the command-permissions branch October 19, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p:carbon The carbon package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command Permissions
2 participants