Skip to content

Commit

Permalink
fix: add missing delete_after parameter (#2156)
Browse files Browse the repository at this point in the history
* fix: add missing  delete_after parameter

* added changelog entry

* style(pre-commit): auto fixes from pre-commit.com hooks

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Seltsamsel and pre-commit-ci[bot] committed Jun 30, 2023
1 parent 411a4db commit 0e2a0d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -151,6 +151,8 @@ These changes are available on the `master` branch, but have not yet been releas
- Fixed type-hinting of `author` property of `ApplicationContext` to include typehinting
of `User` or `Member`.
([#2148](https://github.com/Pycord-Development/pycord/pull/2148))
- Fixed missing `delete_after` parameter in overload type-hinting for `send` method in
`Webhook` class. ([#2156](https://github.com/Pycord-Development/pycord/pull/2156))

## [2.4.1] - 2023-03-20

Expand Down
2 changes: 2 additions & 0 deletions discord/webhook/async_.py
Expand Up @@ -1567,6 +1567,7 @@ async def send(
thread: Snowflake = MISSING,
thread_name: str | None = None,
wait: Literal[True],
delete_after: float = None,
) -> WebhookMessage:
...

Expand All @@ -1588,6 +1589,7 @@ async def send(
thread: Snowflake = MISSING,
thread_name: str | None = None,
wait: Literal[False] = ...,
delete_after: float = None,
) -> None:
...

Expand Down

0 comments on commit 0e2a0d8

Please sign in to comment.