Skip to content

Commit 9db5566

Browse files
committed
Update docs
1 parent 0b61301 commit 9db5566

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

discord_slash/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ async def _pick(ctx, choice1, choice2): # Command with 1 or more args.
7878
"option_channel": "CHANNEL"} # and all upper case.
7979
8080
:param name: Name of the slash command. Default name of the coroutine.
81-
:param description: Description of the slash command. Default `None`.
82-
:param auto_convert: Dictionary of how to convert option values. Default `None`.
83-
:param guild_id: Guild ID of where the command will be used. Default `None`, which will be global command.
84-
:param options: Options of
81+
:param description: Description of the slash command. Default ``None``.
82+
:param auto_convert: Dictionary of how to convert option values. Default ``None``.
83+
:param guild_id: Guild ID of where the command will be used. Default ``None``, which will be global command.
84+
:param options: Options of the slash command. This will affect ``auto_convert`` and command data at Discord API. Default ``None``.
8585
"""
8686
def wrapper(cmd):
8787
self.commands[cmd.__name__ if not name else name] = [cmd, auto_convert]

discord_slash/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ async def send(self,
3838
"""
3939
Sends response of the slash command.
4040
41-
:param send_type: Type of the response. Refer Discord API DOCS for more info about types. Default `4`.
41+
:param send_type: Type of the response. Refer Discord API DOCS for more info about types. Default ``4``.
4242
:type send_type: int
43-
:param text: Text of the response. Can be `None`.
43+
:param text: Text of the response. Can be ``None``.
4444
:type text: str
4545
:param embeds: Embeds of the response. Maximum 10, can be empty.
4646
:type embeds: List[discord.Embed]
47-
:param tts: Whether to speak message using tts. Default `False`.
47+
:param tts: Whether to speak message using tts. Default ``False``.
4848
:type tts: bool
4949
:return: `None`
5050
"""

0 commit comments

Comments
 (0)