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

Add support for application emojis #9891

Merged
merged 23 commits into from
Aug 28, 2024
Merged

Conversation

Soheab
Copy link
Contributor

@Soheab Soheab commented Jul 18, 2024

Summary

Docs PR: discord/discord-api-docs#7010

Bikeshedding discussion: https://canary.discord.com/channels/336642139381301249/1263586512998764604

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, ...)

discord/appinfo.py Outdated Show resolved Hide resolved
discord/appinfo.py Outdated Show resolved Hide resolved
discord/appinfo.py Outdated Show resolved Hide resolved
discord/client.py Outdated Show resolved Hide resolved
Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com>
discord/types/appinfo.py Outdated Show resolved Hide resolved
Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com>
Copy link
Owner

@Rapptz Rapptz left a comment

Choose a reason for hiding this comment

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

Looks okay.

I think this is still technically a breaking change on the Emoji.guild front because it'll do get_guild(0) which will return None. I suppose it can be okay to change the typing from Guild to Optional[Guild] as it is in the type hints in this extraordinary case.

discord/client.py Outdated Show resolved Hide resolved
discord/client.py Outdated Show resolved Hide resolved
discord/client.py Outdated Show resolved Hide resolved
discord/client.py Outdated Show resolved Hide resolved
Copy link
Owner

@Rapptz Rapptz left a comment

Choose a reason for hiding this comment

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

LGTM.

@Rapptz Rapptz merged commit 463b4bd into Rapptz:master Aug 28, 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

7 participants