Skip to content

feat(emoji)!: implement app emojis#1224

Merged
onerandomusername merged 34 commits intoDisnakeDev:masterfrom
Snipy7374:feat/app_emojis
Sep 16, 2025
Merged

feat(emoji)!: implement app emojis#1224
onerandomusername merged 34 commits intoDisnakeDev:masterfrom
Snipy7374:feat/app_emojis

Conversation

@Snipy7374
Copy link
Collaborator

@Snipy7374 Snipy7374 commented Aug 10, 2024

Summary

Checklist

  • If code changes were made, then they have been tested
    • I have updated the documentation to reflect the changes
    • I have formatted the code properly by running pdm lint
    • I have type-checked the code by running pdm pyright
  • 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, ...)

@shiftinv shiftinv added t: enhancement New feature t: api support Support of Discord API features s: in progress Issue/PR is being worked on labels Aug 11, 2024
@Snipy7374 Snipy7374 marked this pull request as ready for review August 21, 2024 09:56
@Snipy7374
Copy link
Collaborator Author

I marked this ready for review even though i still don't know if we should provide the ability to cache app emojis at startup, as you can see i did put a boolean argument but didn't implement any logic for it so far.

Copy link
Member

@Victorsitou Victorsitou left a comment

Choose a reason for hiding this comment

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

In the documentation, referring the emojis as "application emojis" instead of "app emojis" would be more consistent

@shiftinv shiftinv self-requested a review November 14, 2024 14:33
Snipy7374 and others added 8 commits November 26, 2024 17:47
Co-authored-by: Victor <67214928+Victorsitou@users.noreply.github.com>
Signed-off-by: Snipy7374 <100313469+Snipy7374@users.noreply.github.com>
Co-authored-by: Victor <67214928+Victorsitou@users.noreply.github.com>
Signed-off-by: Snipy7374 <100313469+Snipy7374@users.noreply.github.com>
Co-authored-by: Victor <67214928+Victorsitou@users.noreply.github.com>
Signed-off-by: Snipy7374 <100313469+Snipy7374@users.noreply.github.com>
Co-authored-by: Victor <67214928+Victorsitou@users.noreply.github.com>
Signed-off-by: Snipy7374 <100313469+Snipy7374@users.noreply.github.com>
Co-authored-by: Victor <67214928+Victorsitou@users.noreply.github.com>
Signed-off-by: Snipy7374 <100313469+Snipy7374@users.noreply.github.com>
Co-authored-by: Victor <67214928+Victorsitou@users.noreply.github.com>
Signed-off-by: Snipy7374 <100313469+Snipy7374@users.noreply.github.com>
Co-authored-by: Victor <67214928+Victorsitou@users.noreply.github.com>
Signed-off-by: Snipy7374 <100313469+Snipy7374@users.noreply.github.com>
Copy link
Contributor

@Enegg Enegg left a comment

Choose a reason for hiding this comment

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

Since .guild/.guild_id is changed to possibly return None, this is a breaking change. (Rename PR title to feat!(emoji): ...?)

Personally I'd rather see a separate class for app emojis.

@Snipy7374 Snipy7374 changed the title feat(emoji): implement app emojis feat!(emoji): implement app emojis Apr 14, 2025
@Snipy7374 Snipy7374 changed the title feat!(emoji): implement app emojis feat(emoji)!: implement app emojis Apr 14, 2025
@Snipy7374 Snipy7374 requested review from Enegg and Victorsitou April 14, 2025 15:37
Copy link
Contributor

@Enegg Enegg left a comment

Choose a reason for hiding this comment

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

I'm strongly in favor of splitting the models into a GuildEmoji and AppEmoji. The current approach is pretty much saying "an Emoji can have both .guild_id and .application_id, one of, or neither!"

Anyhow, minor nitpicks below.

@Snipy7374
Copy link
Collaborator Author

Snipy7374 commented Apr 14, 2025

I'm strongly in favor of splitting the models into a GuildEmoji and AppEmoji. The current approach is pretty much saying "an Emoji can have both .guild_id and .application_id, one of, or neither!"

Anyhow, minor nitpicks below.

If we want to split them into different classes (I had this talk with @shiftinv in the past, but at the time they said it was fine to go with this approach) we would most likely split them into Emoji and AppEmoji to minimize breaking changes

Snipy7374 and others added 2 commits August 22, 2025 11:27
Co-authored-by: Eneg <42005170+Enegg@users.noreply.github.com>
Signed-off-by: Snipy7374 <100313469+Snipy7374@users.noreply.github.com>
Co-authored-by: Eneg <42005170+Enegg@users.noreply.github.com>
Signed-off-by: Snipy7374 <100313469+Snipy7374@users.noreply.github.com>
@Snipy7374
Copy link
Collaborator Author

I'm strongly in favor of splitting the models into a GuildEmoji and AppEmoji. The current approach is pretty much saying "an Emoji can have both .guild_id and .application_id, one of, or neither!"
Anyhow, minor nitpicks below.

If we want to split them into different classes (I had this talk with @shiftinv in the past, but at the time they said it was fine to go with this approach) we would most likely split them into Emoji and AppEmoji to minimize breaking changes

@shiftinv did your opinion change on this?

@read-the-docs-community
Copy link

read-the-docs-community bot commented Sep 16, 2025

Documentation build overview

📚 disnake | 🛠️ Build #29602396 | 📁 Comparing ffb7bde against latest (dca108c)


🔍 Preview build

Show files changed (49 files in total): 📝 49 modified | ➕ 0 added | ➖ 0 deleted
File Status
genindex.html 📝 modified
index.html 📝 modified
whats_new.html 📝 modified
api/abc.html 📝 modified
api/activities.html 📝 modified
api/app_commands.html 📝 modified
api/app_info.html 📝 modified
api/audit_logs.html 📝 modified
api/automod.html 📝 modified
api/channels.html 📝 modified
api/clients.html 📝 modified
api/components.html 📝 modified
api/emoji.html 📝 modified
api/entitlements.html 📝 modified
api/events.html 📝 modified
api/exceptions.html 📝 modified
api/guild_scheduled_events.html 📝 modified
api/guilds.html 📝 modified
api/integrations.html 📝 modified
api/interactions.html 📝 modified
api/invites.html 📝 modified
api/localization.html 📝 modified
api/members.html 📝 modified
api/messages.html 📝 modified
api/misc.html 📝 modified
api/permissions.html 📝 modified
api/roles.html 📝 modified
api/skus.html 📝 modified
api/soundboard.html 📝 modified
api/stage_instances.html 📝 modified
api/stickers.html 📝 modified
api/subscriptions.html 📝 modified
api/ui.html 📝 modified
api/users.html 📝 modified
api/utilities.html 📝 modified
api/voice.html 📝 modified
api/webhooks.html 📝 modified
api/widgets.html 📝 modified
ext/tasks/index.html 📝 modified
ext/commands/api/app_commands.html 📝 modified
ext/commands/api/bots.html 📝 modified
ext/commands/api/checks.html 📝 modified
ext/commands/api/cogs.html 📝 modified
ext/commands/api/context.html 📝 modified
ext/commands/api/converters.html 📝 modified
ext/commands/api/exceptions.html 📝 modified
ext/commands/api/help_commands.html 📝 modified
ext/commands/api/misc.html 📝 modified
ext/commands/api/prefix_commands.html 📝 modified

@github-project-automation github-project-automation bot moved this from Todo to Needs Merge in disnake Sep 16, 2025
@onerandomusername onerandomusername merged commit 8728759 into DisnakeDev:master Sep 16, 2025
35 checks passed
@github-project-automation github-project-automation bot moved this from Needs Merge to Done in disnake Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

s: in progress Issue/PR is being worked on t: api support Support of Discord API features t: enhancement New feature

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

implement app emojis

5 participants