mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fix [p]diagnoseissues edge case for commands without a cog (#6237)
This commit is contained in:
parent
5069f464cc
commit
1132498f6c
@ -485,9 +485,7 @@ class DetailedCommandChecksMixin(IssueDiagnoserBase):
|
|||||||
return await self._check_requires(_("Permissions verification"), self.ctx.command)
|
return await self._check_requires(_("Permissions verification"), self.ctx.command)
|
||||||
|
|
||||||
async def _check_requires_cog(self) -> CheckResult:
|
async def _check_requires_cog(self) -> CheckResult:
|
||||||
label = _("Permissions verification for {cog} cog").format(
|
label = _("Cog permissions verification")
|
||||||
cog=inline(self.ctx.cog.qualified_name)
|
|
||||||
)
|
|
||||||
if self.ctx.cog is None:
|
if self.ctx.cog is None:
|
||||||
return CheckResult(True, label)
|
return CheckResult(True, label)
|
||||||
return await self._check_requires(label, self.ctx.cog)
|
return await self._check_requires(label, self.ctx.cog)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user