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

feat(ApplicationFlags): add application_auto_moderation_rule_create_badge #1992

Merged
merged 8 commits into from
Mar 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ These changes are available on the `master` branch, but have not yet been releas
([#1936](https://github.com/Pycord-Development/pycord/pull/1936))
- Added support for one-time event listeners in `@client.listen()`.
([#1957](https://github.com/Pycord-Development/pycord/pull/1957))
- Added `current_page` argument to Paginator.update()
- Added `current_page` argument to Paginator.update().
([#1983](https://github.com/Pycord-Development/pycord/pull/1983)
- Added new `application_auto_moderation_rule_create_badge` to `ApplicationFlags`.
([#1992](https://github.com/Pycord-Development/pycord/pull/1992))

### Removed

- Removed `@client.once()` in favour of `@client.listen(once=True)`
- Removed `@client.once()` in favour of `@client.listen(once=True)`.
([#1957](https://github.com/Pycord-Development/pycord/pull/1957))

## [2.4.1] - 2023-03-20
Expand Down
8 changes: 8 additions & 0 deletions discord/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,14 @@ def group_dm_create(self):
""":class:`bool`: Returns ``True`` if the application can create group DMs."""
return 1 << 5

@flag_value
def application_auto_moderation_rule_create_badge(self):
""":class:`bool`: Returns ``True`` if the application uses the Auto Moderation API.

.. versionadded:: 2.5
"""
return 1 << 6

@flag_value
def rpc_has_connected(self):
""":class:`bool`: Returns ``True`` if the application has connected to RPC."""
Expand Down