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

Rename audit log event variant GuildCreate to GuildUpdate #966

Merged
merged 1 commit into from
Jun 29, 2021
Merged

Rename audit log event variant GuildCreate to GuildUpdate #966

merged 1 commit into from
Jun 29, 2021

Conversation

zeylahellyer
Copy link
Member

Rename the AuditLogEntry variant GuildCreate to GuildUpdate due to GuildUpdate being the correct name.

Docs: https://github.com/discord/discord-api-docs/blob/101c24dc80460e2e168ffd66551ea22eab72e796/docs/resources/Audit_Log.md#audit-log-events

Closes #616.

Rename the `AuditLogEntry` variant `GuildCreate` to `GuildUpdate` due to
`GuildUpdate` being the correct name.

Docs:
<https://github.com/discord/discord-api-docs/blob/101c24dc80460e2e168ffd66551ea22eab72e796/docs/resources/Audit_Log.md#audit-log-events>

Closes #616.

BREAKING CHANGES: `twilight_model::guild::audit_log::AuditLogEvent`'s
`GuildCreate` variant has been renamed to `GuildUpdate`.

Signed-off-by: Vivian Hellyer <vivian@hellyer.dev>
@zeylahellyer zeylahellyer added c-model Affects the model crate m-breaking change Breaks the public API. t-fix Fixes a bug in the library labels Jun 27, 2021
@zeylahellyer zeylahellyer linked an issue Jun 27, 2021 that may be closed by this pull request
3 tasks
@zeylahellyer zeylahellyer merged commit d592e46 into twilight-rs:next Jun 29, 2021
@zeylahellyer zeylahellyer deleted the fix/model/audit-log-event-guild-update branch June 29, 2021 12:11
@zeylahellyer zeylahellyer mentioned this pull request Jun 29, 2021
3 tasks
7596ff pushed a commit to 7596ff/twilight that referenced this pull request Jul 25, 2021
…wilight-rs#966)

Rename the `AuditLogEntry` variant `GuildCreate` to `GuildUpdate` due to
`GuildUpdate` being the correct name.

Docs:
<https://github.com/discord/discord-api-docs/blob/101c24dc80460e2e168ffd66551ea22eab72e796/docs/resources/Audit_Log.md#audit-log-events>

Closes twilight-rs#616.

BREAKING CHANGES: `twilight_model::guild::audit_log::AuditLogEvent`'s
`GuildCreate` variant has been renamed to `GuildUpdate`.
7596ff pushed a commit to 7596ff/twilight that referenced this pull request Jul 31, 2021
…wilight-rs#966)

Rename the `AuditLogEntry` variant `GuildCreate` to `GuildUpdate` due to
`GuildUpdate` being the correct name.

Docs:
<https://github.com/discord/discord-api-docs/blob/101c24dc80460e2e168ffd66551ea22eab72e796/docs/resources/Audit_Log.md#audit-log-events>

Closes twilight-rs#616.

BREAKING CHANGES: `twilight_model::guild::audit_log::AuditLogEvent`'s
`GuildCreate` variant has been renamed to `GuildUpdate`.
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
…wilight-rs#966)

Rename the `AuditLogEntry` variant `GuildCreate` to `GuildUpdate` due to
`GuildUpdate` being the correct name.

Docs:
<https://github.com/discord/discord-api-docs/blob/101c24dc80460e2e168ffd66551ea22eab72e796/docs/resources/Audit_Log.md#audit-log-events>

Closes twilight-rs#616.

BREAKING CHANGES: `twilight_model::guild::audit_log::AuditLogEvent`'s
`GuildCreate` variant has been renamed to `GuildUpdate`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-model Affects the model crate m-breaking change Breaks the public API. t-fix Fixes a bug in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor Audit Logs
3 participants