Skip to content

Commit f4efba4

Browse files
committed
Updated docs
1 parent 086e1c3 commit f4efba4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

discord_slash/client.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def slash(self,
124124
description: str = None,
125125
auto_convert: dict = None,
126126
guild_id: int = None,
127-
guild_ids: list = None,
128-
options: list = None):
127+
guild_ids: typing.List[int] = None,
128+
options: typing.List[dict] = None):
129129
"""
130130
Decorator that registers coroutine as a slash command.\n
131131
All decorator args must be passed as keyword-only args.\n
@@ -162,11 +162,17 @@ async def _pick(ctx, choice1, choice2): # Command with 1 or more args.
162162
"option_channel": "CHANNEL"} # and all upper case.
163163
164164
:param name: Name of the slash command. Default name of the coroutine.
165+
:type name: str
165166
:param description: Description of the slash command. Default ``None``.
167+
:type description: str
166168
:param auto_convert: Dictionary of how to convert option values. Default ``None``.
169+
:type auto_convert: dict
167170
:param guild_id: Deprecated. Use ``guild_ids`` instead.
171+
:type guild_id: int
168172
:param guild_ids: List of Guild ID of where the command will be used. Default ``None``, which will be global command.
173+
:type guild_ids: List[int]
169174
:param options: Options of the slash command. This will affect ``auto_convert`` and command data at Discord API. Default ``None``.
175+
:type options: List[dict]
170176
"""
171177

172178
if guild_id:

0 commit comments

Comments
 (0)