Skip to content

Commit a8be72a

Browse files
authored
Merge pull request #296 from goverfl0w/pr-2
Remove context check.
2 parents d0679c6 + a22ffaf commit a8be72a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

discord_slash/model.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,6 @@ async def invoke(self, *args, **kwargs):
206206
# to preventing needing different functions per object,
207207
# this function simply handles cogs
208208
if hasattr(self, "cog"):
209-
# print(self.func)
210-
if (
211-
str(self.func.__annotations__["ctx"])
212-
== "<class 'discord_slash.context.MenuContext'>"
213-
):
214-
# The idea is, since every command uses context, check the type of it.
215-
return await self.func(*args, **kwargs)
216209
return await self.func(self.cog, *args, **kwargs)
217210
return await self.func(*args, **kwargs)
218211

0 commit comments

Comments
 (0)