fix: declare public exports (#75)

This commit is contained in:
Slipstream 2025-06-12 21:27:37 -06:00 committed by GitHub
parent c87bcefd41
commit c146b01cec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,6 +38,35 @@ from .logging_config import setup_logging
import logging import logging
__all__ = [
"Client",
"AutoShardedClient",
"Message",
"User",
"Reaction",
"AuditLogEntry",
"VoiceClient",
"AudioSource",
"FFmpegAudioSource",
"Typing",
"DisagreementException",
"HTTPException",
"GatewayException",
"AuthenticationError",
"Forbidden",
"NotFound",
"Color",
"utcnow",
"message_pager",
"GatewayIntent",
"GatewayOpcode",
"setup_global_error_handler",
"HybridContext",
"tasks",
"setup_logging",
]
# Configure a default logger if none has been configured yet # Configure a default logger if none has been configured yet
if not logging.getLogger().hasHandlers(): if not logging.getLogger().hasHandlers():
setup_logging(logging.INFO) setup_logging(logging.INFO)