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

Small changes to Kord's annotations #659

Merged
merged 4 commits into from
Aug 7, 2022

Conversation

lukellmann
Copy link
Member

This PR's main goal was to add @MustBeDocumented to PrivilegedIntent.

While I was at this, I also did some other small changes:

  • explicit @Target for PrivilegedIntent
  • explicit RUNTIME retention for KordDsl, DeprecatedSinceKord and PrivilegedIntent - this is the default retention if no retention is specified, but I think it's better to be explicit here
  • change retention from BINARY to RUNTIME for KordPreview, KordExperimental, KordVoice and KordUnsafe - if somebody wants to use reflection for these, why shouldn't we allow it? Please tell me when there is a reason why this shouldn't be changed, maybe I'm missing something.
  • small documentation and code style adjustments

@lukellmann lukellmann requested a review from HopeBaron July 24, 2022 23:22
@HopeBaron HopeBaron merged commit 8b87519 into kordlib:0.8.x Aug 7, 2022
@lukellmann lukellmann deleted the changes/annotations branch August 7, 2022 10:42
@lukellmann lukellmann mentioned this pull request Apr 5, 2023
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.

2 participants