Privatize APIs by renaming or removing them from __all__ (#6021)

This commit is contained in:
Jakub Kuczys
2023-04-17 23:44:33 +02:00
committed by GitHub
parent eafbb06756
commit f051eae92d
126 changed files with 508 additions and 157 deletions

View File

@@ -59,3 +59,57 @@ from discord.app_commands import (
locale_str as locale_str,
rename as rename,
)
__all__ = (
"AllChannels",
"AppCommand",
"AppCommandChannel",
"AppCommandError",
"AppCommandGroup",
"AppCommandPermissions",
"AppCommandThread",
"Argument",
"BotMissingPermissions",
"Command",
"CommandAlreadyRegistered",
"CommandInvokeError",
"CommandLimitReached",
"CommandNotFound",
"CommandOnCooldown",
"CommandSignatureMismatch",
"CommandSyncFailure",
"CommandTree",
"ContextMenu",
"Cooldown",
"Group",
"GuildAppCommandPermissions",
"MissingAnyRole",
"MissingApplicationID",
"MissingPermissions",
"MissingRole",
"Namespace",
"NoPrivateMessage",
"Parameter",
"Range",
"Transform",
"Transformer",
"TransformerError",
"TranslationContext",
"TranslationContextLocation",
"TranslationContextTypes",
"TranslationError",
"Translator",
"autocomplete",
"check",
"CheckFailure",
"Choice",
"choices",
"command",
"context_menu",
"default_permissions",
"describe",
"guild_only",
"guilds",
"locale_str",
"rename",
)