Downloader Cog Reference

class redbot.cogs.downloader.downloader.Downloader(bot:[source]
coroutine 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: object) → str[source]

Determines the cog name that Downloader knows from the cog instance.


Parameters:instance (object) – The cog instance.
Returns:The name of the cog according to Downloader..
Return type:str
format_findcog_info(command_name: str, cog_installable: Union[redbot.cogs.downloader.installable.Installable, object] = None) → str[source]

Format a cog’s info for output to discord.

  • command_name (str) – Name of the command which belongs to the cog.
  • cog_installable (Installable or object) – Can be an Installable instance or a Cog instance.

A formatted message for the user.

Return type:


coroutine installed_cogs() → Tuple[redbot.cogs.downloader.installable.Installable][source]

Get info on installed cogs.

Returns:All installed cogs / shared lib directories.
Return type:tuple of Installable
coroutine is_installed(cog_name: str) → 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)