Skip to content

Commit

Permalink
fix: rename response to .require_premium(), which fits better with …
Browse files Browse the repository at this point in the history
…the other types
  • Loading branch information
shiftinv committed Oct 23, 2023
1 parent 786cc78 commit 3e6c80c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog/1113.feature.rst
@@ -1,5 +1,5 @@
Support application subscriptions (see the :ddocs:`official docs <monetization/overview>` for more info).
- New types: :class:`SKU`, :class:`Entitlement`
- New :attr:`Interaction.entitlements` attribute, and :meth:`InteractionResponse.send_premium_required` response type.
- New :attr:`Interaction.entitlements` attribute, and :meth:`InteractionResponse.require_premium` response type.
- New events: :func:`on_entitlement_create`, :func:`on_entitlement_update`, :func:`on_entitlement_delete`.
- New :class:`Client` methods: :meth:`~Client.skus`, :meth:`~Client.entitlements`, :meth:`~Client.create_entitlement`.
2 changes: 1 addition & 1 deletion disnake/interactions/base.py
Expand Up @@ -1410,7 +1410,7 @@ async def send_modal(
if modal is not None:
parent._state.store_modal(parent.author.id, modal)

async def send_premium_required(self) -> None:
async def require_premium(self) -> None:
"""|coro|
Responds to this interaction with a message containing an upgrade button.
Expand Down
2 changes: 1 addition & 1 deletion docs/api/interactions.rst
Expand Up @@ -252,7 +252,7 @@ InteractionResponseType
Responds to the interaction with a message containing an upgrade button.
Only available for applications with monetization enabled.

See also :meth:`InteractionResponse.send_premium_required`
See also :meth:`InteractionResponse.require_premium`

.. versionadded:: 2.10

Expand Down

0 comments on commit 3e6c80c

Please sign in to comment.