diff --git a/discord_slash/client.py b/discord_slash/client.py index 97287f056..46d53d3a0 100644 --- a/discord_slash/client.py +++ b/discord_slash/client.py @@ -26,6 +26,8 @@ class SlashCommand: :type sync_on_cog_reload: bool :param override_type: Whether to override checking type of the client and try register event. :type override_type: bool + :param application_id: The application id of the bot, required only when the application id and bot id are different. (old bots) + :type application_id: int .. note:: If ``sync_on_cog_reload`` is enabled, command syncing will be triggered when :meth:`discord.ext.commands.Bot.reload_extension` diff --git a/discord_slash/model.py b/discord_slash/model.py index 6fe252644..2a66e78f3 100644 --- a/discord_slash/model.py +++ b/discord_slash/model.py @@ -72,6 +72,7 @@ class CommandData: :ivar description: Description of the command. :ivar options: List of :class:`OptionData`. :ivar id: Command id, this is received from discord so may not be present + :ivar application_id: The application id of the bot, required only when the application id and bot id are different. (old bots) """ def __init__(