Downloader Cog Reference¶
-
class
redbot.cogs.downloader.downloader.
Downloader
(bot)[source]¶ Bases:
redbot.core.commands.commands.Cog
-
await
cog_install_path
()[source]¶ Get the current cog install path.
Returns: The default cog install path. Return type: pathlib.Path
-
cog_name_from_instance
(instance) → str[source]¶ Determines the cog name that Downloader knows from the cog instance.
Probably.
Parameters: instance (object) – The cog instance. Returns: The name of the cog according to Downloader.. Return type: str
-
format_findcog_info
(command_name, cog_installable = None) → str[source]¶ Format a cog’s info for output to discord.
Parameters: - command_name (str) – Name of the command which belongs to the cog.
- cog_installable (
Installable
orobject
) – Can be anInstallable
instance or a Cog instance.
Returns: A formatted message for the user.
Return type:
-
await
installed_cogs
() → Tuple[redbot.cogs.downloader.installable.Installable][source]¶ Get info on installed cogs.
Returns: All installed cogs / shared lib directories. Return type: tuple
ofInstallable
-
await
is_installed
(cog_name) → Union[Tuple[bool, redbot.cogs.downloader.installable.Installable], Tuple[bool, None]][source]¶ Check to see if a cog has been installed through Downloader.
Parameters: cog_name (str) – The name of the cog to check for. Returns: (True, Installable)
if the cog is installed, else(False, None)
.Return type: tuple
of (bool
,Installable
)
-
await