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

Use min_value and max_value to check message count #502

Merged
merged 2 commits into from
Jul 18, 2022
Merged

Use min_value and max_value to check message count #502

merged 2 commits into from
Jul 18, 2022

Conversation

AlmostSuspense
Copy link
Contributor

@AlmostSuspense AlmostSuspense commented Jul 18, 2022

Please describe all changes made by this Pull Request and why you feel like it should be merged:

This pull requests replaces the manual check for message count with the API's fields that allows the client to validate the number with the provided range.

Checklists

Please tick the following checklists (by placing an x) as appropriate.

  • I have read and agreed to both the Code of Conduct and Contributing Guidelines (required)
  • Code changes have been tested with a bot account on Discord, or there are none. (required)
  • Any code changes have been checked against ESLint (npx eslint .) and the TypeScript compiler (npx tsc) and there are no errors, or there are no code changes. (required)
  • The contributor has been bullied by Prettier.

Signed-off-by: Suspense <64612795+AlmostSuspense@users.noreply.github.com>
src/commands/prune.ts Outdated Show resolved Hide resolved
Signed-off-by: Suspense <64612795+AlmostSuspense@users.noreply.github.com>
@Costpap Costpap merged commit f797e6b into Costpap:main Jul 18, 2022
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.

None yet

2 participants