mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-09 12:48:54 -05:00
[Core] Fixes reload, and prompted reload on cog update (#2226)
Fix something missed when QAing #2207
This commit is contained in:
parent
a64db76b4d
commit
4357fe1ba9
@ -197,14 +197,14 @@ class CoreLogic:
|
|||||||
|
|
||||||
async def _reload(
|
async def _reload(
|
||||||
self, cog_names: Sequence[str]
|
self, cog_names: Sequence[str]
|
||||||
) -> Tuple[List[str], List[str], List[str], List[str]]:
|
) -> Tuple[List[str], List[str], List[str], List[str], List[Tuple[str, str]]]:
|
||||||
await self._unload(cog_names)
|
await self._unload(cog_names)
|
||||||
|
|
||||||
loaded, load_failed, not_found, already_loaded, load_failed_with_reason = await self._load(
|
loaded, load_failed, not_found, already_loaded, load_failed_with_reason = await self._load(
|
||||||
cog_names
|
cog_names
|
||||||
)
|
)
|
||||||
|
|
||||||
return loaded, load_failed, not_found, already_loaded
|
return loaded, load_failed, not_found, already_loaded, load_failed_with_reason
|
||||||
|
|
||||||
async def _name(self, name: Optional[str] = None) -> str:
|
async def _name(self, name: Optional[str] = None) -> str:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user