[Downloader] Better user facing feedback on cog update (#2165)

This commit is contained in:
Michael H
2018-10-05 18:24:55 -04:00
committed by Toby Harradine
parent fb839084fe
commit d79996aeea
3 changed files with 67 additions and 29 deletions

View File

@@ -3,8 +3,9 @@ from redbot.core import commands
from .installable import Installable
class InstalledCog(commands.Converter):
async def convert(self, ctx: commands.Context, arg: str) -> Installable:
class InstalledCog(Installable):
@classmethod
async def convert(cls, ctx: commands.Context, arg: str) -> Installable:
downloader = ctx.bot.get_cog("Downloader")
if downloader is None:
raise commands.CommandError("Downloader not loaded.")