Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust original_message deprecation warning #1681

Merged
merged 13 commits into from
Oct 17, 2022
6 changes: 3 additions & 3 deletions discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ async def original_response(self) -> InteractionMessage:
self._original_response = message
return message

@utils.deprecated("Interaction.original_response", "2.1")
@utils.deprecated("Interaction.original_response", "2.2")
async def original_message(self):
"""An alias for :meth:`original_response`.

Expand Down Expand Up @@ -447,7 +447,7 @@ async def edit_original_response(

return message

@utils.deprecated("Interaction.edit_original_response", "2.1")
@utils.deprecated("Interaction.edit_original_response", "2.2")
async def edit_original_message(self, **kwargs):
"""An alias for :meth:`edit_original_response`.

Expand Down Expand Up @@ -505,7 +505,7 @@ async def delete_original_response(self, *, delay: float | None = None) -> None:
else:
await func

@utils.deprecated("Interaction.delete_original_response", "2.1")
@utils.deprecated("Interaction.delete_original_response", "2.2")
async def delete_original_message(self, **kwargs):
"""An alias for :meth:`delete_original_response`.

Expand Down