mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Add overload for audit_log_entry_create
This commit is contained in:
parent
375a001da8
commit
ef7d740524
@ -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…
x
Reference in New Issue
Block a user