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(validate, http)!: add regex_patterns and allow_list #2189

Merged
merged 13 commits into from
Jul 16, 2023

Conversation

JohannesIBK
Copy link
Contributor

This PR adds regex_patterns and allow_list when creating a auto moderation rule, as well as validation for most fields.

I'm pretty new to rust and this crate, so please provide lots of feedback, thanks :D

@github-actions github-actions bot added c-http Affects the http crate c-model Affects the model crate c-validate Affects the validate crate m-breaking change Breaks the public API. t-feature Addition of a new feature labels Apr 2, 2023
Copy link
Contributor

@HTGAzureX1212 HTGAzureX1212 left a comment

Choose a reason for hiding this comment

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

Looks good to me. Will approve this PR when the conflicts are resolved.

…ation

# Conflicts:
#	twilight-http/src/request/guild/auto_moderation/create_auto_moderation_rule.rs
#	twilight-validate/src/request.rs
@github-actions github-actions bot removed the c-model Affects the model crate label Jun 17, 2023
@HTGAzureX1212 HTGAzureX1212 changed the title feat(model, validate, http)!: add regex_patterns and allow_list feat(validate, http)!: add regex_patterns and allow_list Jun 18, 2023
Copy link
Contributor

@HTGAzureX1212 HTGAzureX1212 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for working on this!

Copy link
Member

@laralove143 laralove143 left a comment

Choose a reason for hiding this comment

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

thank you for the pr! we should discuss whether we should move the requests to another pr or solve them here

@JohannesIBK
Copy link
Contributor Author

In my opinion it is a bit too much for this pr. Also rewriting all this would probably take me a lot of time because I'm not that familiar with this crate.

@laralove143
Copy link
Member

thats ok, we can merge this and create another pr for those changes

@HTGAzureX1212 HTGAzureX1212 merged commit 6bd6e96 into twilight-rs:next Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-http Affects the http crate c-validate Affects the validate crate m-breaking change Breaks the public API. t-feature Addition of a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants