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

Update Premium Buttons #9864

Merged
merged 8 commits into from
Jun 15, 2024
Merged

Update Premium Buttons #9864

merged 8 commits into from
Jun 15, 2024

Conversation

DA-344
Copy link
Contributor

@DA-344 DA-344 commented Jun 14, 2024

Summary

So Discord updated the premium interacion buttons and the current implementation needs some changes (+ some fixes).

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

Comment on lines 277 to 283
.. note::

Buttons with a URL cannot be created with this function.
Buttons with a URL or SKU cannot be created with this function.
Consider creating a :class:`Button` manually instead.
This is because buttons with a URL do not have a callback
associated with them since Discord does not do any processing
with it.
with it, and buttons with a SKU are handled by Discord.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be:

    .. note::

        Buttons with a URL or an SKU cannot be created with this function.
        Consider creating a :class:`Button` manually instead.
        This is because these buttons cannot have a callback
        associated with them since Discord does not do any processing
        with them.

docs/interactions/api.rst Outdated Show resolved Hide resolved
@Rapptz Rapptz merged commit be9edf8 into Rapptz:master Jun 15, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants