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

Fully support guild audit logs #1022

Merged
merged 5 commits into from
Jul 13, 2021
Merged

Fully support guild audit logs #1022

merged 5 commits into from
Jul 13, 2021

Conversation

zeylahellyer
Copy link
Member

Fully support audit logs by creating types for Audit Log Changes and updating Audit Log Change Keys with new variants. Changes were generic serde_value::Values, which provide no typed information. There are now variants with typed new and old values - checked against the API - which may or may not both always be present, or never.

The twilight_model::guild::audit_log module is now entirely documented and tested as well. This has been manually tested by creating as many different audit log changes as could be created in the API and then deserializing the past 100 entries.

Closes #77.

Fully support audit logs by creating types for Audit Log Changes and
updating Audit Log Change Keys with new variants. Changes were generic
`serde_value::Value`s, which provide no typed information. There are now
variants with typed `new` and `old` values - checked against the API -
which may or may not both always be present, or never.

The `twilight_model::guild::audit_log` module is now entirely documented
and tested as well. This has been manually tested by creating as many
different audit log changes as could be created in the API and then
deserializing the past 100 entries.

Closes #77.

Signed-off-by: Zeyla Hellyer <zeyla@hellyer.dev>
@zeylahellyer zeylahellyer added t-feature Addition of a new feature c-http Affects the http crate c-model Affects the model crate m-breaking change Breaks the public API. labels Jul 10, 2021
@zeylahellyer zeylahellyer linked an issue Jul 10, 2021 that may be closed by this pull request
Signed-off-by: Zeyla Hellyer <zeyla@hellyer.dev>
Signed-off-by: Zeyla Hellyer <zeyla@hellyer.dev>
Signed-off-by: Zeyla Hellyer <zeyla@hellyer.dev>
@zeylahellyer zeylahellyer merged commit 5edf059 into twilight-rs:next Jul 13, 2021
@zeylahellyer zeylahellyer deleted the feature/model/audit-log branch July 13, 2021 21:16
7596ff pushed a commit to 7596ff/twilight that referenced this pull request Jul 25, 2021
Fully support audit logs by creating types for Audit Log Changes and
updating Audit Log Change Keys with new variants. Changes were generic
`serde_value::Value`s, which provide no typed information. There are now
variants with typed `new` and `old` values - checked against the API -
which may or may not both always be present, or never.

The `twilight_model::guild::audit_log` module is now entirely documented
and tested as well. This has been manually tested by creating as many
different audit log changes as could be created in the API and then
deserializing the past 100 entries.

Closes twilight-rs#77.

Signed-off-by: Zeyla Hellyer <zeyla@hellyer.dev>
7596ff pushed a commit to 7596ff/twilight that referenced this pull request Jul 31, 2021
Fully support audit logs by creating types for Audit Log Changes and
updating Audit Log Change Keys with new variants. Changes were generic
`serde_value::Value`s, which provide no typed information. There are now
variants with typed `new` and `old` values - checked against the API -
which may or may not both always be present, or never.

The `twilight_model::guild::audit_log` module is now entirely documented
and tested as well. This has been manually tested by creating as many
different audit log changes as could be created in the API and then
deserializing the past 100 entries.

Closes twilight-rs#77.

Signed-off-by: Zeyla Hellyer <zeyla@hellyer.dev>
7596ff added a commit that referenced this pull request Jul 31, 2021
Enhancements

Fully support audit logs by creating types for Audit Log Changes and
updating Audit Log Change Keys with new variants. Changes were generic
`serde_value::Value`s, which provide no typed information. There are now
variants with typed `new` and `old` values - checked against the API -
which may or may not both always be present, or never.

The `twilight_model::guild::audit_log` module is now entirely documented
and tested as well. This has been manually tested by creating as many
different audit log changes as could be created in the API and then
deserializing the past 100 entries.

([#1022] - [@zeylahellyer]).

Changes

Rename the `GuildCreate` audit log event to `GuildUpdate` ([#966] -
[@zeylahellyer]).

A few spelling errors have been fixed by adding the `codespell` Action
([#1041] - [@Gelbpunkt].

Fixes

`PartialApplication` now uses `ApplicationFlags` instead of `UserFlags` ([#1072] - [@A5rocks]).

[#966]: #966
[#1022]: #1022
[#1041]: #1041
[#1072]: #1072

[@A5rocks]: https://github.com/A5rocks
[@Gelbpunkt]: https://github.com/Gelbpunkt
[@zeylahellyer]: https://github.com/zeylahellyer
Erk- pushed a commit to Erk-/twilight that referenced this pull request Aug 9, 2021
Fully support audit logs by creating types for Audit Log Changes and
updating Audit Log Change Keys with new variants. Changes were generic
`serde_value::Value`s, which provide no typed information. There are now
variants with typed `new` and `old` values - checked against the API -
which may or may not both always be present, or never.

The `twilight_model::guild::audit_log` module is now entirely documented
and tested as well. This has been manually tested by creating as many
different audit log changes as could be created in the API and then
deserializing the past 100 entries.

Closes twilight-rs#77.

Signed-off-by: Zeyla Hellyer <zeyla@hellyer.dev>
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-model Affects the model 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.

Add structs for audit log change instead of using value
3 participants