Skip to content

Commit

Permalink
fix(wraps): context pls
Browse files Browse the repository at this point in the history
  • Loading branch information
ooliver1 committed Jun 17, 2022
1 parent bd9abee commit d9aff84
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion botbase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
)
from .models import CogBase

__version__ = "1.17.6"
__version__ = "1.17.7"


getLogger(__name__).addHandler(NullHandler())
5 changes: 3 additions & 2 deletions botbase/wraps/wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async def send_embed(
if isinstance(target.channel, channels):
return await target.channel.send(embed=embed, **kwargs)
else:
return await target.send(embed=embed, **kwargs)
return await target.send(embed=embed, **kwargs) # type: ignore
elif isinstance(
target,
(
Expand All @@ -149,8 +149,9 @@ async def send_embed(
WrappedChannel,
WrappedThread,
MyInter,
MyContext,
),
):
return await target.send(embed=embed, **kwargs)
return await target.send(embed=embed, **kwargs) # type: ignore
else:
raise TypeError(f"{type(self).__name__} cannot send embeds")
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ooliver-botbase"
version = "1.17.6"
version = "1.17.7"
description = "A personal nextcord bot base package for bots."
authors = ["ooliver1 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit d9aff84

Please sign in to comment.