Skip to content

Commit 3451d22

Browse files
authored
Merge pull request #159 from eunwoo1104/AnotherCat-document-app-id
Document application_id
2 parents b2baa12 + d580dd0 commit 3451d22

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

discord_slash/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class SlashCommand:
2626
:type sync_on_cog_reload: bool
2727
:param override_type: Whether to override checking type of the client and try register event.
2828
:type override_type: bool
29+
:param application_id: The application id of the bot, required only when the application id and bot id are different. (old bots)
30+
:type application_id: int
2931
3032
.. note::
3133
If ``sync_on_cog_reload`` is enabled, command syncing will be triggered when :meth:`discord.ext.commands.Bot.reload_extension`

discord_slash/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class CommandData:
7272
:ivar description: Description of the command.
7373
:ivar options: List of :class:`OptionData`.
7474
:ivar id: Command id, this is received from discord so may not be present
75+
:ivar application_id: The application id of the bot, required only when the application id and bot id are different. (old bots)
7576
"""
7677

7778
def __init__(

0 commit comments

Comments
 (0)