mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-23 11:26:51 +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 .threads import ThreadMember
|
||||||
from .types.guild import Guild as GuildPayload
|
from .types.guild import Guild as GuildPayload
|
||||||
from .voice_client import VoiceProtocol
|
from .voice_client import VoiceProtocol
|
||||||
|
from .audit_logs import AuditLogEntry
|
||||||
|
|
||||||
|
|
||||||
# fmt: off
|
# fmt: off
|
||||||
@ -1381,6 +1382,17 @@ class Client:
|
|||||||
) -> Invite:
|
) -> Invite:
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@overload
|
||||||
|
async def wait_for(
|
||||||
|
self,
|
||||||
|
event: Literal['audit_log_entry_create'],
|
||||||
|
/,
|
||||||
|
*,
|
||||||
|
check: Optional[Callable[[AuditLogEntry], bool]],
|
||||||
|
timeout: Optional[float] = None,
|
||||||
|
) -> AuditLogEntry:
|
||||||
|
...
|
||||||
|
|
||||||
# Integrations
|
# Integrations
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
|
Loading…
x
Reference in New Issue
Block a user