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

fix: add missing delete_after parameter #2156

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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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