Skip to content

Commit

Permalink
feat(ApplicationFlags): add application_auto_moderation_rule_create_b…
Browse files Browse the repository at this point in the history
…adge (#1992)



Signed-off-by: JustaSqu1d <overenchanted.gaming@gmail.com>
Signed-off-by: plun1331 <49261529+plun1331@users.noreply.github.com>
Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 29, 2023
1 parent 2e9ab61 commit 93c28aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
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

0 comments on commit 93c28aa

Please sign in to comment.