mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[V3] permissions canrun fix (#1787)
* permissions canrun fix * Missing await * async gen
This commit is contained in:
parent
4aaef9558a
commit
8916f55d52
@ -195,7 +195,9 @@ class Permissions:
|
|||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
testcontext = await self.bot.get_context(message, cls=commands.Context)
|
testcontext = await self.bot.get_context(message, cls=commands.Context)
|
||||||
can = await com.can_run(testcontext)
|
can = await com.can_run(testcontext) and all(
|
||||||
|
[await p.can_run(testcontext) for p in com.parents]
|
||||||
|
)
|
||||||
except commands.CheckFailure:
|
except commands.CheckFailure:
|
||||||
can = False
|
can = False
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user