Skip to content

Commit

Permalink
Update docs and add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
EQUENOS committed Sep 18, 2023
1 parent ea1ad65 commit 424ed03
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/260.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| Allow registering 2 commands with the same type and name in different guilds.
1 change: 1 addition & 0 deletions changelog/260.deprecate.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| :attr:`InteractionBotBase.all_slash_commands` is deprecated.
1 change: 1 addition & 0 deletions changelog/260.deprecate.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| :attr:`InteractionBotBase.all_user_commands` is deprecated.
1 change: 1 addition & 0 deletions changelog/260.deprecate.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| :attr:`InteractionBotBase.all_message_commands` is deprecated.
1 change: 1 addition & 0 deletions changelog/260.deprecate.3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| :meth:`InteractionBotBase.add_slash_command` is deprecated.
1 change: 1 addition & 0 deletions changelog/260.deprecate.4.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| :meth:`InteractionBotBase.add_user_command` is deprecated.
1 change: 1 addition & 0 deletions changelog/260.deprecate.5.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| :meth:`InteractionBotBase.add_message_command` is deprecated.
1 change: 1 addition & 0 deletions changelog/260.deprecate.6.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| :meth:`InteractionBotBase.remove_slash_command` is deprecated.
1 change: 1 addition & 0 deletions changelog/260.deprecate.7.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| :meth:`InteractionBotBase.remove_user_command` is deprecated.
1 change: 1 addition & 0 deletions changelog/260.deprecate.8.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| :meth:`InteractionBotBase.remove_message_command` is deprecated.
1 change: 1 addition & 0 deletions changelog/260.feature.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| Add :meth:`InteractionBotBase.add_app_command`.
1 change: 1 addition & 0 deletions changelog/260.feature.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| Add :meth:`InteractionBotBase.remove_app_command`.
1 change: 1 addition & 0 deletions changelog/260.feature.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| Add ``guild_id`` parameter to :meth:`InteractionBotBase.get_slash_command`.
1 change: 1 addition & 0 deletions changelog/260.feature.3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| Add ``guild_id`` parameter to :meth:`InteractionBotBase.get_user_command`.
1 change: 1 addition & 0 deletions changelog/260.feature.4.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| Add ``guild_id`` parameter to :meth:`InteractionBotBase.get_message_command`.
1 change: 1 addition & 0 deletions changelog/260.feature.5.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
|commands| Add :class:`AppCommandRegistrationError`.
1 change: 1 addition & 0 deletions disnake/ext/commands/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@ def __init__(self, name: str, *, alias_conflict: bool = False) -> None:
type_ = "alias" if alias_conflict else "command"
super().__init__(f"The {type_} {name} is already an existing command or alias.")


# we inherit CommandRegistrationError for backwards compatibility,
# because this error replaced CommandRegistrationError in several places
class AppCommandRegistrationError(CommandRegistrationError):
Expand Down
3 changes: 3 additions & 0 deletions docs/ext/commands/api/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ Exceptions
.. autoexception:: CommandRegistrationError
:members:

.. autoexception:: AppCommandRegistrationError
:members:


Exception Hierarchy
~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 424ed03

Please sign in to comment.