Skip to content

Commit

Permalink
Update client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eunwoo1104 committed Dec 16, 2020
1 parent b8bde7c commit db80d94
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions discord_slash/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ def subcommand(self,
auto_convert: dict = None,
guild_ids: int = None):
"""
Decorator that registers subcommand.
Unlike discord.py, you don't need base command.
Decorator that registers subcommand.\n
Unlike discord.py, you don't need base command.\n
Not implemented.
Example:
Expand All @@ -217,6 +218,7 @@ async def _group_say(ctx, _str):
:param guild_ids: List of guild ID of where the command will be used. Default ``None``, which will be global command.
:return:
"""
raise NotImplementedError
def wrapper(cmd):
return cmd
return wrapper
Expand Down Expand Up @@ -291,6 +293,7 @@ async def on_socket_response(self, msg):
async def handle_subcommand(self, ctx: model.SlashContext, data: dict):
"""
Coroutine for handling subcommand.
Not implemented.
:param ctx:
:param data:
Expand Down

0 comments on commit db80d94

Please sign in to comment.