Browse Source

Add overload for audit_log_entry_create

pull/9186/head
Rapptz 2 years ago
parent
commit
ef7d740524
  1. 12
      discord/client.py

12
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

Loading…
Cancel
Save