Add overload for audit_log_entry_create

This commit is contained in:
Rapptz 2023-01-16 20:38:53 -05:00
parent 375a001da8
commit ef7d740524

View File

@ -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