Skip to content

Commit 6ccfd7f

Browse files
feat: add creator monetization-related audit log action types (#2171)
* feat: add audit log action types * docs: add audit log action types * docs: add a changelog entry * style(pre-commit): auto fixes from pre-commit.com hooks * docs: add changelog PR value --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent cada37a commit 6ccfd7f

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ These changes are available on the `master` branch, but have not yet been releas
4444
[Raw Event payloads](https://docs.pycord.dev/en/master/api/models.html#events).
4545
([#2023](https://github.com/Pycord-Development/pycord/pull/2023))
4646
- Added and documented missing `AuditLogAction` enums.
47-
([#2030](https://github.com/Pycord-Development/pycord/pull/2030))
47+
([#2030](https://github.com/Pycord-Development/pycord/pull/2030),
48+
[#2171](https://github.com/Pycord-Development/pycord/pull/2171))
4849
- `AuditLogDiff` now supports AutoMod related models.
4950
([#2030](https://github.com/Pycord-Development/pycord/pull/2030))
5051
- Added `Interaction.respond` and `Interaction.edit` as shortcut responses.

discord/enums.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ class AuditLogAction(Enum):
425425
auto_moderation_block_message = 143
426426
auto_moderation_flag_to_channel = 144
427427
auto_moderation_user_communication_disabled = 145
428+
creator_monetization_request_created = 150
429+
creator_monetization_terms_accepted = 151
428430

429431
@property
430432
def category(self) -> AuditLogActionCategory | None:
@@ -485,6 +487,8 @@ def category(self) -> AuditLogActionCategory | None:
485487
AuditLogAction.auto_moderation_block_message: None,
486488
AuditLogAction.auto_moderation_flag_to_channel: None,
487489
AuditLogAction.auto_moderation_user_communication_disabled: None,
490+
AuditLogAction.creator_monetization_request_created: None,
491+
AuditLogAction.creator_monetization_terms_accepted: None,
488492
}
489493
return lookup[self]
490494

docs/api/enums.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,6 +1580,18 @@ of :class:`enum.Enum`.
15801580

15811581
.. versionadded:: 2.5
15821582

1583+
.. attribute:: creator_monetization_request_created
1584+
1585+
A creator monetization request was created.
1586+
1587+
.. versionadded:: 2.5
1588+
1589+
.. attribute:: creator_monetization_terms_accepted
1590+
1591+
The creator monetization terms were accepted.
1592+
1593+
.. versionadded:: 2.5
1594+
15831595

15841596
.. class:: AuditLogActionCategory
15851597

0 commit comments

Comments
 (0)