-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
zeylahellyer
merged 1 commit into
twilight-rs:next
from
zeylahellyer:fix/model/audit-log-event-guild-update
Jun 29, 2021
Merged
Rename audit log event variant GuildCreate
to GuildUpdate
#966
zeylahellyer
merged 1 commit into
twilight-rs:next
from
zeylahellyer:fix/model/audit-log-event-guild-update
Jun 29, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
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
Closed
3 tasks
7596ff
approved these changes
Jun 27, 2021
BlackHoleFox
approved these changes
Jun 29, 2021
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rename the
AuditLogEntry
variantGuildCreate
toGuildUpdate
due toGuildUpdate
being the correct name.Docs: https://github.com/discord/discord-api-docs/blob/101c24dc80460e2e168ffd66551ea22eab72e796/docs/resources/Audit_Log.md#audit-log-events
Closes #616.