Skip to content

Commit f48e292

Browse files
committed
Added some docstring
1 parent 1237599 commit f48e292

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

discord_slash/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ def add_slash_command(self,
327327
"""
328328
Registers slash command to SlashCommand.
329329
330+
.. warning::
331+
Just using this won't register slash command to Discord API.
332+
To register it, check :meth:`.utils.manage_commands.add_slash_command` or simply enable `sync_commands`.
333+
330334
:param cmd: Command Coroutine.
331335
:type cmd: Coroutine
332336
:param name: Name of the slash command. Default name of the coroutine.

discord_slash/context.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ def send_hidden(self, content: str = ""):
196196
Sends hidden response.\n
197197
This is automatically used if you pass ``hidden=True`` at :meth:`.send`.
198198
199+
.. note::
200+
This is not intended to be manually called. Please use :meth:`.send` instead.
201+
199202
:param content: Message content.
200203
:return: Coroutine
201204
"""

0 commit comments

Comments
 (0)