mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 01:42:30 -05:00
Privatize APIs by renaming or removing them from __all__ (#6021)
This commit is contained in:
@@ -25,10 +25,11 @@ if TYPE_CHECKING:
|
||||
|
||||
log = logging.getLogger("red.core.modlog")
|
||||
|
||||
__all__ = [
|
||||
__all__ = (
|
||||
"Case",
|
||||
"CaseType",
|
||||
"get_case",
|
||||
"get_latest_case",
|
||||
"get_all_cases",
|
||||
"get_cases_for_member",
|
||||
"create_case",
|
||||
@@ -39,7 +40,7 @@ __all__ = [
|
||||
"get_modlog_channel",
|
||||
"set_modlog_channel",
|
||||
"reset_cases",
|
||||
]
|
||||
)
|
||||
|
||||
_config: Optional[Config] = None
|
||||
_bot_ref: Optional[Red] = None
|
||||
@@ -243,6 +244,8 @@ class Case:
|
||||
|
||||
A single mod log case
|
||||
|
||||
This class should ONLY be instantiated by the modlog itself.
|
||||
|
||||
Attributes
|
||||
----------
|
||||
bot: Red
|
||||
@@ -730,6 +733,8 @@ class CaseType:
|
||||
"""
|
||||
A single case type
|
||||
|
||||
This class should ONLY be instantiated by the modlog itself.
|
||||
|
||||
Attributes
|
||||
----------
|
||||
name: str
|
||||
|
||||
Reference in New Issue
Block a user