From 3024509484338135cbfbd813df1ac824644f2977 Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Wed, 31 Aug 2022 10:36:59 +0530 Subject: [PATCH 01/15] Rename `original_message` to `original_response` --- discord/commands/context.py | 8 ++++---- discord/ext/pages/pagination.py | 2 +- discord/interactions.py | 30 +++++++++++++++--------------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/discord/commands/context.py b/discord/commands/context.py index ec2991a75c..fde9bdcb25 100644 --- a/discord/commands/context.py +++ b/discord/commands/context.py @@ -314,7 +314,7 @@ async def delete(self, *, delay: Optional[float] = None) -> None: Deletes the original interaction response message. - This is a higher level interface to :meth:`Interaction.delete_original_message`. + This is a higher level interface to :meth:`Interaction.delete_original_response`. Parameters ----------- @@ -331,12 +331,12 @@ async def delete(self, *, delay: Optional[float] = None) -> None: if not self.interaction.response.is_done(): await self.defer() - return await self.interaction.delete_original_message(delay=delay) + return await self.interaction.delete_original_response(delay=delay) @property - @discord.utils.copy_doc(Interaction.edit_original_message) + @discord.utils.copy_doc(Interaction.edit_original_response) def edit(self) -> Callable[..., Awaitable[InteractionMessage]]: - return self.interaction.edit_original_message + return self.interaction.edit_original_response @property def cog(self) -> Optional[Cog]: diff --git a/discord/ext/pages/pagination.py b/discord/ext/pages/pagination.py index 4c5f631088..26da3107f5 100644 --- a/discord/ext/pages/pagination.py +++ b/discord/ext/pages/pagination.py @@ -1109,7 +1109,7 @@ async def respond( if isinstance(msg, (discord.Message, discord.WebhookMessage)): self.message = msg elif isinstance(msg, discord.Interaction): - self.message = await msg.original_message() + self.message = await msg.original_response() return self.message diff --git a/discord/interactions.py b/discord/interactions.py index 1b83725a65..4f811a44a8 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -139,7 +139,7 @@ class Interaction: "_app_permissions", "_state", "_session", - "_original_message", + "_original_response", "_cs_app_permissions", "_cs_response", "_cs_followup", @@ -149,7 +149,7 @@ class Interaction: def __init__(self, *, data: InteractionPayload, state: ConnectionState): self._state: ConnectionState = state self._session: ClientSession = state.http._HTTPClient__session - self._original_message: Optional[InteractionMessage] = None + self._original_response: Optional[InteractionMessage] = None self._from_data(data) def _from_data(self, data: InteractionPayload): @@ -263,7 +263,7 @@ def followup(self) -> Webhook: } return Webhook.from_state(data=payload, state=self._state) - async def original_message(self) -> InteractionMessage: + async def original_response(self) -> InteractionMessage: """|coro| Fetches the original interaction response message associated with the interaction. @@ -287,8 +287,8 @@ async def original_message(self) -> InteractionMessage: The original interaction response message. """ - if self._original_message is not None: - return self._original_message + if self._original_response is not None: + return self._original_response # TODO: fix later to not raise? channel = self.channel @@ -303,10 +303,10 @@ async def original_message(self) -> InteractionMessage: ) state = _InteractionMessageState(self, self._state) message = InteractionMessage(state=state, channel=channel, data=data) # type: ignore - self._original_message = message + self._original_response = message return message - async def edit_original_message( + async def edit_original_response( self, *, content: Optional[str] = MISSING, @@ -403,11 +403,11 @@ async def edit_original_message( self._state.store_view(view, message.id) if delete_after is not None: - await self.delete_original_message(delay=delete_after) + await self.delete_original_response(delay=delete_after) return message - async def delete_original_message(self, *, delay: Optional[float] = None) -> None: + async def delete_original_response(self, *, delay: Optional[float] = None) -> None: """|coro| Deletes the original interaction response message. @@ -743,12 +743,12 @@ async def send_message( if ephemeral and view.timeout is None: view.timeout = 15 * 60.0 - view.message = await self._parent.original_message() + view.message = await self._parent.original_response() self._parent._state.store_view(view) self._responded = True if delete_after is not None: - await self._parent.delete_original_message(delay=delete_after) + await self._parent.delete_original_response(delay=delete_after) return self._parent async def edit_message( @@ -873,7 +873,7 @@ async def edit_message( self._responded = True if delete_after is not None: - await self._parent.delete_original_message(delay=delete_after) + await self._parent.delete_original_response(delay=delete_after) async def send_autocomplete_result( self, @@ -1003,7 +1003,7 @@ class InteractionMessage(Message): """Represents the original interaction response message. This allows you to edit or delete the message associated with - the interaction response. To retrieve this object see :meth:`Interaction.original_message`. + the interaction response. To retrieve this object see :meth:`Interaction.original_response`. This inherits from :class:`discord.Message` with changes to :meth:`edit` and :meth:`delete` to work. @@ -1076,7 +1076,7 @@ async def edit( """ if attachments is MISSING: attachments = self.attachments or MISSING - return await self._state._interaction.edit_original_message( + return await self._state._interaction.edit_original_response( content=content, embeds=embeds, embed=embed, @@ -1108,7 +1108,7 @@ async def delete(self, *, delay: Optional[float] = None) -> None: HTTPException Deleting the message failed. """ - await self._state._interaction.delete_original_message(delay=delay) + await self._state._interaction.delete_original_response(delay=delay) class MessageInteraction: From d8b9eaa0e278e8434d91ac466f0d4e165611739b Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Wed, 31 Aug 2022 11:14:27 +0530 Subject: [PATCH 02/15] Add Aliases --- discord/interactions.py | 53 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/discord/interactions.py b/discord/interactions.py index 4f811a44a8..e0b726ff60 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -306,6 +306,24 @@ async def original_response(self) -> InteractionMessage: self._original_response = message return message + async def original_message(self, **kwargs): + """An alias for :meth:`original_response`. + .. versionadded:: 2.0 + + Raises + ------- + HTTPException + Fetching the original response message failed. + ClientException + The channel for the message could not be resolved. + + Returns + -------- + InteractionMessage + The original interaction response message. + """ + return self.original_response(**kwargs) + async def edit_original_response( self, *, @@ -407,6 +425,28 @@ async def edit_original_response( return message + async def edit_original_message(self, **kwargs): + """An alias for :meth:`edit_original_response`. + .. versionadded:: 2.0 + + Raises + ------- + HTTPException + Editing the message failed. + Forbidden + Edited a message that is not yours. + TypeError + You specified both ``embed`` and ``embeds`` or ``file`` and ``files`` + ValueError + The length of ``embeds`` was invalid. + + Returns + -------- + :class:`InteractionMessage` + The newly edited message. + """ + return self.edit_original_response(**kwargs) + async def delete_original_response(self, *, delay: Optional[float] = None) -> None: """|coro| @@ -440,6 +480,19 @@ async def delete_original_response(self, *, delay: Optional[float] = None) -> No else: await func + async def delete_original_message(self, **kwargs): + """An alias for :meth:`delete_original_response`. + .. versionadded:: 2.0 + + Raises + ------- + HTTPException + Deleting the message failed. + Forbidden + Deleted a message that is not yours. + """ + return self.delete_original_response(**kwargs) + def to_dict(self) -> Dict[str, Any]: """ Converts this interaction object into a dict. From 193a1d066b3a0ac27214bbe42c6e4e1677cb2efe Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Wed, 31 Aug 2022 11:23:22 +0530 Subject: [PATCH 03/15] Fix Errors --- discord/interactions.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/discord/interactions.py b/discord/interactions.py index e0b726ff60..09e5a2f20b 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -306,9 +306,8 @@ async def original_response(self) -> InteractionMessage: self._original_response = message return message - async def original_message(self, **kwargs): + async def original_message(self): """An alias for :meth:`original_response`. - .. versionadded:: 2.0 Raises ------- @@ -427,7 +426,6 @@ async def edit_original_response( async def edit_original_message(self, **kwargs): """An alias for :meth:`edit_original_response`. - .. versionadded:: 2.0 Raises ------- @@ -482,7 +480,6 @@ async def delete_original_response(self, *, delay: Optional[float] = None) -> No async def delete_original_message(self, **kwargs): """An alias for :meth:`delete_original_response`. - .. versionadded:: 2.0 Raises ------- From e575c2c8a1bc9ba70f2a1d467c77d4cb57d1e5ae Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Wed, 31 Aug 2022 11:25:04 +0530 Subject: [PATCH 04/15] Remove Unnecessary `kwargs` --- discord/interactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/interactions.py b/discord/interactions.py index 09e5a2f20b..4d0a35fc91 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -321,7 +321,7 @@ async def original_message(self): InteractionMessage The original interaction response message. """ - return self.original_response(**kwargs) + return self.original_response() async def edit_original_response( self, From 4955e19931fe4582083e72b9ffa9cbb6e623bcaf Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Thu, 8 Sep 2022 09:34:26 +0530 Subject: [PATCH 05/15] Add Warnings --- discord/interactions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/interactions.py b/discord/interactions.py index 4d0a35fc91..71e283fe14 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -26,6 +26,7 @@ from __future__ import annotations import asyncio +import warnings from typing import TYPE_CHECKING, Any, Coroutine, Dict, List, Optional, Tuple, Union from . import utils @@ -321,6 +322,7 @@ async def original_message(self): InteractionMessage The original interaction response message. """ + warnings.warn("Use 'Interaction.original_response()' instead.", DeprecationWarning) return self.original_response() async def edit_original_response( @@ -443,6 +445,7 @@ async def edit_original_message(self, **kwargs): :class:`InteractionMessage` The newly edited message. """ + warnings.warn("Use 'Interaction.edit_original_response()' instead.", DeprecationWarning) return self.edit_original_response(**kwargs) async def delete_original_response(self, *, delay: Optional[float] = None) -> None: @@ -488,6 +491,7 @@ async def delete_original_message(self, **kwargs): Forbidden Deleted a message that is not yours. """ + warnings.warn("Use 'Interaction.delete_original_response()' instead.", DeprecationWarning) return self.delete_original_response(**kwargs) def to_dict(self) -> Dict[str, Any]: From 03333178dce3e573b9e3e0e7647b494ce22f2ff7 Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Thu, 8 Sep 2022 09:39:39 +0530 Subject: [PATCH 06/15] Improve Warnings --- discord/interactions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/interactions.py b/discord/interactions.py index 71e283fe14..d4d457499d 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -322,7 +322,7 @@ async def original_message(self): InteractionMessage The original interaction response message. """ - warnings.warn("Use 'Interaction.original_response()' instead.", DeprecationWarning) + warnings.warn("'Interaction.original_message()' is deprecated, use 'Interaction.original_response()' instead.", DeprecationWarning) return self.original_response() async def edit_original_response( @@ -445,7 +445,7 @@ async def edit_original_message(self, **kwargs): :class:`InteractionMessage` The newly edited message. """ - warnings.warn("Use 'Interaction.edit_original_response()' instead.", DeprecationWarning) + warnings.warn("'Interaction.edit_original_message()' is deprecated, use 'Interaction.edit_original_response()' instead.", DeprecationWarning) return self.edit_original_response(**kwargs) async def delete_original_response(self, *, delay: Optional[float] = None) -> None: @@ -491,7 +491,7 @@ async def delete_original_message(self, **kwargs): Forbidden Deleted a message that is not yours. """ - warnings.warn("Use 'Interaction.delete_original_response()' instead.", DeprecationWarning) + warnings.warn("'Interaction.delete_original_message()' is deprecated, use 'Interaction.delete_original_response()' instead.", DeprecationWarning) return self.delete_original_response(**kwargs) def to_dict(self) -> Dict[str, Any]: From 94318c38580990095a0a75e13cfba77d6bde544d Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Thu, 8 Sep 2022 09:58:26 +0530 Subject: [PATCH 07/15] Use `utils.deprecated` --- discord/interactions.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/discord/interactions.py b/discord/interactions.py index d4d457499d..d8d68c5705 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -26,7 +26,6 @@ from __future__ import annotations import asyncio -import warnings from typing import TYPE_CHECKING, Any, Coroutine, Dict, List, Optional, Tuple, Union from . import utils @@ -307,6 +306,7 @@ async def original_response(self) -> InteractionMessage: self._original_response = message return message + @utils.deprecated(self.original_response()) async def original_message(self): """An alias for :meth:`original_response`. @@ -322,7 +322,6 @@ async def original_message(self): InteractionMessage The original interaction response message. """ - warnings.warn("'Interaction.original_message()' is deprecated, use 'Interaction.original_response()' instead.", DeprecationWarning) return self.original_response() async def edit_original_response( @@ -426,6 +425,7 @@ async def edit_original_response( return message + @utils.deprecated(self.edit_original_response()) async def edit_original_message(self, **kwargs): """An alias for :meth:`edit_original_response`. @@ -445,7 +445,6 @@ async def edit_original_message(self, **kwargs): :class:`InteractionMessage` The newly edited message. """ - warnings.warn("'Interaction.edit_original_message()' is deprecated, use 'Interaction.edit_original_response()' instead.", DeprecationWarning) return self.edit_original_response(**kwargs) async def delete_original_response(self, *, delay: Optional[float] = None) -> None: @@ -481,6 +480,7 @@ async def delete_original_response(self, *, delay: Optional[float] = None) -> No else: await func + @utils.deprecated(self.delete_original_response()) async def delete_original_message(self, **kwargs): """An alias for :meth:`delete_original_response`. @@ -491,7 +491,6 @@ async def delete_original_message(self, **kwargs): Forbidden Deleted a message that is not yours. """ - warnings.warn("'Interaction.delete_original_message()' is deprecated, use 'Interaction.delete_original_response()' instead.", DeprecationWarning) return self.delete_original_response(**kwargs) def to_dict(self) -> Dict[str, Any]: From eaa51c17a6832b15ae787d4da257b19c532c8e83 Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Thu, 8 Sep 2022 10:02:30 +0530 Subject: [PATCH 08/15] Fix Errors --- discord/interactions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/interactions.py b/discord/interactions.py index d8d68c5705..94059c63de 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -306,7 +306,7 @@ async def original_response(self) -> InteractionMessage: self._original_response = message return message - @utils.deprecated(self.original_response()) + @utils.deprecated("Interaction.original_response") async def original_message(self): """An alias for :meth:`original_response`. @@ -425,7 +425,7 @@ async def edit_original_response( return message - @utils.deprecated(self.edit_original_response()) + @utils.deprecated("Interaction.edit_original_response") async def edit_original_message(self, **kwargs): """An alias for :meth:`edit_original_response`. @@ -480,7 +480,7 @@ async def delete_original_response(self, *, delay: Optional[float] = None) -> No else: await func - @utils.deprecated(self.delete_original_response()) + @utils.deprecated("Interaction.delete_original_response") async def delete_original_message(self, **kwargs): """An alias for :meth:`delete_original_response`. From d50023c56821061889faa89138dcc98d4cb1ab01 Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Sat, 1 Oct 2022 09:19:25 +0530 Subject: [PATCH 09/15] Update Decorators --- discord/interactions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/interactions.py b/discord/interactions.py index 0d168e5a37..01c7853bda 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -309,7 +309,7 @@ async def original_response(self) -> InteractionMessage: self._original_response = message return message - @utils.deprecated("Interaction.original_response") + @utils.warn_deprecated("Interaction.original_response") async def original_message(self): """An alias for :meth:`original_response`. @@ -431,7 +431,7 @@ async def edit_original_response( return message - @utils.deprecated("Interaction.edit_original_response") + @utils.warn_deprecated("Interaction.edit_original_response") async def edit_original_message(self, **kwargs): """An alias for :meth:`edit_original_response`. @@ -489,7 +489,7 @@ async def delete_original_response(self, *, delay: Optional[float] = None) -> No else: await func - @utils.deprecated("Interaction.delete_original_response") + @utils.warn_deprecated("Interaction.delete_original_response") async def delete_original_message(self, **kwargs): """An alias for :meth:`delete_original_response`. From 3d06502cfb5843e1bf1b69731db1fc1eaf5d5b2a Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Sat, 1 Oct 2022 09:24:32 +0530 Subject: [PATCH 10/15] Fix Errors --- discord/interactions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/interactions.py b/discord/interactions.py index 01c7853bda..352b63caec 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -309,7 +309,7 @@ async def original_response(self) -> InteractionMessage: self._original_response = message return message - @utils.warn_deprecated("Interaction.original_response") + @utils.warn_deprecated("Interaction.original_message", "Interaction.original_response", "2.1") async def original_message(self): """An alias for :meth:`original_response`. @@ -431,7 +431,7 @@ async def edit_original_response( return message - @utils.warn_deprecated("Interaction.edit_original_response") + @utils.warn_deprecated("Interaction.edit_original_message", "Interaction.edit_original_response", "2.1") async def edit_original_message(self, **kwargs): """An alias for :meth:`edit_original_response`. @@ -489,7 +489,7 @@ async def delete_original_response(self, *, delay: Optional[float] = None) -> No else: await func - @utils.warn_deprecated("Interaction.delete_original_response") + @utils.warn_deprecated("Interaction.delete_original_message", "Interaction.delete_original_response", "2.1") async def delete_original_message(self, **kwargs): """An alias for :meth:`delete_original_response`. From c9f0d7401f0ea71b94176f950a625ca49ab50f00 Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Sat, 1 Oct 2022 11:53:55 +0530 Subject: [PATCH 11/15] Fix Workflow Errors --- discord/interactions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/interactions.py b/discord/interactions.py index 352b63caec..7d78cc683d 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -309,7 +309,7 @@ async def original_response(self) -> InteractionMessage: self._original_response = message return message - @utils.warn_deprecated("Interaction.original_message", "Interaction.original_response", "2.1") + @utils.deprecated("Interaction.original_response", "2.1") async def original_message(self): """An alias for :meth:`original_response`. @@ -431,7 +431,7 @@ async def edit_original_response( return message - @utils.warn_deprecated("Interaction.edit_original_message", "Interaction.edit_original_response", "2.1") + @utils.deprecated("Interaction.edit_original_response", "2.1") async def edit_original_message(self, **kwargs): """An alias for :meth:`edit_original_response`. @@ -489,7 +489,7 @@ async def delete_original_response(self, *, delay: Optional[float] = None) -> No else: await func - @utils.warn_deprecated("Interaction.delete_original_message", "Interaction.delete_original_response", "2.1") + @utils.deprecated("Interaction.delete_original_response", "2.1") async def delete_original_message(self, **kwargs): """An alias for :meth:`delete_original_response`. From abd3446197e326bd6654d4eadd5a2ff58c580f71 Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Sat, 1 Oct 2022 20:50:51 +0530 Subject: [PATCH 12/15] Create a Changelog Entry --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c65dab2ca..bc0e987ba8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Interaction responses are now passed the respective `proxy` and `proxy_auth` params as defined in `Client`. ([#1655](https://github.com/Pycord-Development/pycord/pull/1655)) +### Changed +- Rename `original_message` to `original_response` ([#1609](https://github.com/Pycord-Development/pycord/pull/1609) + ## [2.1.3] - 2022-09-06 ### Fixed - Fix TypeError in `process_application_commands`. ([#1622](https://github.com/Pycord-Development/pycord/pull/1622)) From 78cdd7b5a32c8f5f1f301c6470960e3bec4dd92f Mon Sep 17 00:00:00 2001 From: Omkaar <79257339+Infiniticity@users.noreply.github.com> Date: Sun, 2 Oct 2022 08:46:08 +0530 Subject: [PATCH 13/15] Update the Changelog --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 922299cb94..693c7072b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,10 +12,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `proxy` and `proxy_auth` params to many Webhook related methods. ([#1655](https://github.com/Pycord-Development/pycord/pull/1655)) - `delete_message_seconds` parameter in ban methods. ([#1557](https://github.com/Pycord-Development/pycord/pull/1557)) +- New methods `Interaction.original_response`, `Interaction.edit_original_response` & `Interaction.delete_original_response` ([#1609](https://github.com/Pycord-Development/pycord/pull/1609) ### Deprecated - The `delete_message_days` parameter in ban methods is now deprecated. Please use `delete_message_seconds` instead. ([#1557](https://github.com/Pycord-Development/pycord/pull/1557)) +- The `Interaction.original_message`, `Interaction.edit_original_message` & `Interaction.delete_original_message` methods are now deprecated. Please use `Interaction.original_response`, `Interaction.edit_original_response` & `Interaction.delete_original_response` respectively instead. + ([#1557](https://github.com/Pycord-Development/pycord/pull/1557)) ### Fixed - Various fixes to ext.bridge groups ([#1633](https://github.com/Pycord-Development/pycord/pull/1633) & @@ -25,9 +28,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Interaction responses are now passed the respective `proxy` and `proxy_auth` params as defined in `Client`. ([#1655](https://github.com/Pycord-Development/pycord/pull/1655)) -### Changed -- Rename `original_message` to `original_response` ([#1609](https://github.com/Pycord-Development/pycord/pull/1609) - ## [2.1.3] - 2022-09-06 ### Fixed - Fix TypeError in `process_application_commands`. ([#1622](https://github.com/Pycord-Development/pycord/pull/1622)) From 0d6141e2b9552061a2dafaf4fe466151086177d5 Mon Sep 17 00:00:00 2001 From: BobDotCom <71356958+BobDotCom@users.noreply.github.com> Date: Sun, 2 Oct 2022 15:28:23 -0500 Subject: [PATCH 14/15] Update CHANGELOG.md --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 693c7072b0..5cf8953cd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `proxy` and `proxy_auth` params to many Webhook related methods. ([#1655](https://github.com/Pycord-Development/pycord/pull/1655)) - `delete_message_seconds` parameter in ban methods. ([#1557](https://github.com/Pycord-Development/pycord/pull/1557)) -- New methods `Interaction.original_response`, `Interaction.edit_original_response` & `Interaction.delete_original_response` ([#1609](https://github.com/Pycord-Development/pycord/pull/1609) +- New methods `original_response`, `edit_original_response` & `delete_original_response` for `Interaction` objects. + ([#1609](https://github.com/Pycord-Development/pycord/pull/1609) ### Deprecated - The `delete_message_days` parameter in ban methods is now deprecated. Please use `delete_message_seconds` instead. From 955ee9ab89edf7cd9afb0092a55dbfbdeebab4fd Mon Sep 17 00:00:00 2001 From: BobDotCom <71356958+BobDotCom@users.noreply.github.com> Date: Sun, 2 Oct 2022 15:28:40 -0500 Subject: [PATCH 15/15] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cf8953cd8..64220f5a40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Deprecated - The `delete_message_days` parameter in ban methods is now deprecated. Please use `delete_message_seconds` instead. ([#1557](https://github.com/Pycord-Development/pycord/pull/1557)) -- The `Interaction.original_message`, `Interaction.edit_original_message` & `Interaction.delete_original_message` methods are now deprecated. Please use `Interaction.original_response`, `Interaction.edit_original_response` & `Interaction.delete_original_response` respectively instead. +- The `original_message`, `edit_original_message` & `delete_original_message` methods for `Interaction` are now deprecated. Please use the respective `original_response`, `edit_original_response` & `delete_original_response` methods instead. ([#1557](https://github.com/Pycord-Development/pycord/pull/1557)) ### Fixed