mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-05-20 04:13:37 +12:00
how did this happen
This commit is contained in:
parent
3f1a02a734
commit
675c9251a2
|
@ -100,7 +100,7 @@ class Scheduler(commands.Cog):
|
|||
|
||||
# explain: mypy assumes this is always true, but other CCs using this API may not be using mypy.
|
||||
if not (isinstance(author, discord.Member) and isinstance(channel, discord.TextChannel)): # type: ignore
|
||||
raise Tya fupeError(
|
||||
raise TypeError(
|
||||
"Must provide guild specific discord.py models for both author and channel"
|
||||
)
|
||||
|
||||
|
@ -315,6 +315,13 @@ class Scheduler(commands.Cog):
|
|||
|
||||
return 15
|
||||
|
||||
# explain: mypy assumes this is always true, but other CCs using this API may not be using mypy.
|
||||
if not (isinstance(author, discord.Member) and isinstance(channel, discord.TextChannel)): # type: ignore
|
||||
raise TypeError(
|
||||
raise Tya fupeError(
|
||||
"Must provide guild specific discord.py models for both author and channel"
|
||||
)
|
||||
|
||||
async def fetch_task_by_attrs_exact(self, **kwargs) -> List[Task]:
|
||||
def pred(item):
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue