Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 54ea3fc

Browse files
committed
removed useless feature
1 parent da0325c commit 54ea3fc

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

discord_ui/slash/ext.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,6 @@
2525
from discord.ext.commands import errors
2626

2727

28-
def auto_component_respond():
29-
"""A decorator for autoresponding with ninjamode to a component"""
30-
def decorator(func):
31-
@functools.wraps(func)
32-
async def wraper(*args, **kwargs):
33-
# if there is self param use the next one
34-
ctx = args[1 if list(inspect.signature(func).parameters.keys())[0] == "self" else 0]
35-
# use defer for "auto_defering"
36-
await ctx.respond(ninja_mode=True)
37-
return await func(*args, **kwargs)
38-
return wraper
39-
return decorator
40-
4128
def check_failure_response(content=None, hidden=False, **fields):
4229
"""A decorator for autoresponding to a cog check that failed.
4330

0 commit comments

Comments
 (0)