Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feat: Docstring changes + moving limit to constants #3343

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

Merged
merged 3 commits into from
Nov 9, 2022

Conversation

Poolitzer
Copy link
Member

This adds the two docstring changes, I took the opportunity to move the changed limit to constants. At least description can be added to the limit (e.g. in #3336), maybe even more, so I kept the Class name broad.

@@ -901,3 +901,18 @@ class WebhookLimit(IntEnum):
""":obj:`int`: Minimum length of the secret token."""
MAX_SECRET_TOKEN_LENGTH = 256
""":obj:`int`: Maximum length of the secret token."""


class ChatLimits(IntEnum):
Copy link
Member

Choose a reason for hiding this comment

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

IIRC we named verything else in singular, i.e. class <…>Limit(enum)

Copy link
Member Author

Choose a reason for hiding this comment

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

You appear to be right

Also add it to the all variable
lemontree210 added a commit that referenced this pull request Nov 8, 2022
as suggested in review for PR #3336,
but in singular (rather than `...Limits`)
to conform with review for #3343
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

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

LGTM, can be merged IMO

@Poolitzer Poolitzer merged commit d48499f into api_6.3_update Nov 9, 2022
@Poolitzer Poolitzer deleted the 6.3_docstring branch November 9, 2022 21:36
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants