Until now, builders for auto moderation actions used the data classes used when parsing data received from the API to contain the data instead of using a dedicated builder type. This causes issues as ActionMetadata now requires a manager, while it didn't in the past.
This PR adds dedicated builder types for auto moderation actions and action metadata.
Type of change
[x] New feature (non-breaking change which adds functionality)
Checklist:
[x] Ran dart analyze or make analyze and fixed all issues
[x] Ran dart format --set-exit-if-changed -l 160 ./lib or make format and fixed all issues
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
Description
Until now, builders for auto moderation actions used the data classes used when parsing data received from the API to contain the data instead of using a dedicated builder type. This causes issues as ActionMetadata now requires a manager, while it didn't in the past.
This PR adds dedicated builder types for auto moderation actions and action metadata.
Type of change
Checklist:
dart analyze
ormake analyze
and fixed all issuesdart format --set-exit-if-changed -l 160 ./lib
ormake format
and fixed all issues