diff --git a/discord/client.py b/discord/client.py index b7333ff02..2df4adf52 100644 --- a/discord/client.py +++ b/discord/client.py @@ -112,6 +112,7 @@ if TYPE_CHECKING: from .threads import ThreadMember from .types.guild import Guild as GuildPayload from .voice_client import VoiceProtocol + from .audit_logs import AuditLogEntry # fmt: off @@ -1381,6 +1382,17 @@ class Client: ) -> Invite: ... + @overload + async def wait_for( + self, + event: Literal['audit_log_entry_create'], + /, + *, + check: Optional[Callable[[AuditLogEntry], bool]], + timeout: Optional[float] = None, + ) -> AuditLogEntry: + ... + # Integrations @overload