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

Provide the same functions of Permissions to MessageFlags #203

Merged
merged 3 commits into from
Mar 10, 2021

Conversation

HopeBaron
Copy link
Member

No description provided.

@HopeBaron HopeBaron requested a review from BartArys March 5, 2021 13:41
Copy link
Contributor

@BartArys BartArys left a comment

Choose a reason for hiding this comment

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

I missed this during the initial review, but why is MessageFlags a data class? We hide the constructor behind an internal keyword but we still expose the autogenerated copy method.

Additionally, the autogenerated tostring isn't really useful here either. Returning a tostring with the flags would be of more use to those trying to debug.

@HopeBaron
Copy link
Member Author

I missed this during the initial review, but why is MessageFlags a data class? We hide the constructor behind an internal keyword but we still expose the autogenerated copy method.

Additionally, the autogenerated tostring isn't really useful here either. Returning a tostring with the flags would be of more use to those trying to debug.

Good catch, will work on it

@HopeBaron HopeBaron merged commit cae8b41 into 0.7.x Mar 10, 2021
@HopeBaron HopeBaron deleted the message-flags-functions branch March 11, 2021 07:30
@HopeBaron HopeBaron mentioned this pull request Apr 19, 2021
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