Skip to content

chore: Merge upstream #62

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

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open

chore: Merge upstream #62

wants to merge 25 commits into from

Conversation

Paillat-dev
Copy link
Member

Summary

Merge Pycord-developement/pycord by cherry picking stuff. Also updates deps in uv.lock

Information

  • 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, typehinting,
    examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.

Paillat-dev and others added 24 commits August 18, 2025 22:36
…2824)

* 📝 update license format in pyproject.toml

* chore: reference license file

Signed-off-by: Lala Sabathil <[email protected]>

* fix: classifer is invalid now

Signed-off-by: Lala Sabathil <[email protected]>

---------

Signed-off-by: Lala Sabathil <[email protected]>
Co-authored-by: Lala Sabathil <[email protected]>

(cherry picked from commit 1c65fc8)
…lopment#2806)

* 📝 Fix hyperlink in CHANGELOG.md

* Update CHANGELOG.md

Signed-off-by: Lala Sabathil <[email protected]>

* style(pre-commit): auto fixes from pre-commit.com hooks

---------

Signed-off-by: Lala Sabathil <[email protected]>
Co-authored-by: Lala Sabathil <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dorukyum <[email protected]>
(cherry picked from commit 1214a70)
Signed-off-by: UK <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
Signed-off-by: plun1331 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Lala Sabathil <[email protected]>
Co-authored-by: Dorukyum <[email protected]>
Co-authored-by: Paillat <[email protected]>
Co-authored-by: Ice Wolfy <[email protected]>
Co-authored-by: plun1331 <[email protected]>
Co-authored-by: JustaSqu1d <[email protected]>

(cherry picked from commit a5aa21f)
)

Signed-off-by: Lala Sabathil <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Lala Sabathil <[email protected]>
(cherry picked from commit 2ae01b7)
…pment#2843)

* 🐛 Fix missing self. attribution in File

* 📝 CHANGELOG.md

(cherry picked from commit 0102b7d)
🐛 Fix error in on_timeout, should use .parent not .message

(cherry picked from commit 9bef192)
… hash return values (Pycord-Development#2832)

📝 update docstrings for Asset and Attachment classes to clarify hash return values

(cherry picked from commit 35c7dc1)
…ong with `channel_types` (Pycord-Development#2835)

* 🐛 Option: Always set `input_type` to `SlashCommandOptionType.channel` when `channel_types` is set

* 📝 CHANGELOG.md

* style(pre-commit): auto fixes from pre-commit.com hooks

---------

Signed-off-by: Paillat <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Lala Sabathil <[email protected]>
(cherry picked from commit 213b639)
…lopment#2775)

* Update CHANGELOG.md

Signed-off-by: Lumouille <[email protected]>

* fix member not being converted

Signed-off-by: Lumouille <[email protected]>

* fix member not being converted

Signed-off-by: Lumouille <[email protected]>

* style(pre-commit): auto fixes from pre-commit.com hooks

* Update CHANGELOG.md

Signed-off-by: Lumouille <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Lumouille <[email protected]>

* Update CHANGELOG.md

Co-authored-by: plun1331 <[email protected]>
Signed-off-by: Lumouille <[email protected]>

* refactor(bridge): remove redundant constructor in BridgeOption

* feat(bridge): enhance BridgeOption initialization with converter support

* Update discord/ext/bridge/core.py

Co-authored-by: Dorukyum <[email protected]>
Signed-off-by: Lumouille <[email protected]>

* improved code quality

---------

Signed-off-by: Lumouille <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: plun1331 <[email protected]>
Co-authored-by: Dorukyum <[email protected]>
(cherry picked from commit a82f562)
…#2672)

* ✨ Add missing `Guild` feature flags

* ✨ Add `Guild.activity_feed_enabled` to know whether the activity feed is enabled for the guild.

* 📝 Docs

* 📝 CHANGELOG.md

* chore: 👽 Update base max filesize to `10` Mb (Pycord-Development#2671)

* 👽 Update base max filesize to `10` Mb

* 📝 CHANGELOG.md

* 📝 Requested changes

* ⚡ Compute `features` only once

* Remove variable

* ♻️ change `raid_alerts` to `enable_raid_alerts`

* 🚑 Forgot to rename `enable_raid_alerts`

* ♻️ change `enable_raid_alerts` to `disable_raid_alerts`

Signed-off-by: Dorukyum <[email protected]>

* fix docstring

Signed-off-by: Dorukyum <[email protected]>

---------

Signed-off-by: Paillat <[email protected]>
Signed-off-by: Dorukyum <[email protected]>
Co-authored-by: Dorukyum <[email protected]>
(cherry picked from commit 3bb7163)

# Conflicts:
#	discord/guild.py
#	discord/types/guild.py
Signed-off-by: Lala Sabathil <[email protected]>
(cherry picked from commit a990e74)
Pycord-Development#2782)

* fix: add support for Literal type in typing annotations for Discord choices

* Update CHANGELOG.md

* Update CHANGELOG.md

Signed-off-by: Lumouille <[email protected]>

* Update CHANGELOG.md

Co-authored-by: JustaSqu1d <[email protected]>
Signed-off-by: Lumouille <[email protected]>

* refactor: move condition to method

* docs: update changelog

* fix: ensure all literal values are of the same type in SlashCommand options

* Update discord/commands/core.py

Co-authored-by: Paillat <[email protected]>
Signed-off-by: Lumouille <[email protected]>

* Update discord/commands/core.py

Co-authored-by: Paillat <[email protected]>
Signed-off-by: Lumouille <[email protected]>

* style(pre-commit): auto fixes from pre-commit.com hooks

---------

Signed-off-by: Lumouille <[email protected]>
Co-authored-by: JustaSqu1d <[email protected]>
Co-authored-by: Dorukyum <[email protected]>
Co-authored-by: Paillat <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit 4392105)
)

* fix file component patching

* style(pre-commit): auto fixes from pre-commit.com hooks

* component typing

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit bda1dfe)
…ent#2818)

* ✨ Add support for enhanced role colors in `Role`

* ✨ add RoleColours support to `Role.edit`

* ✨ add RoleColours support to role creation in `Guild` and define default colors in `RoleColours`

* ✨ add support for RoleColours in role creation and editing

* ✨ update role attributes to use RoleColours and enhance color properties

* 📝 CHANGELOG.md

* 📝 add documentation for RoleColours and its attributes

* ✏️ fix version annotation for primary color method in role.py

* ✨ add holographic role support in RoleColours

* 📝 update tertiary color documentation to specify allowed value

* ✨ Finish implementing holographic support

* 🗑️ Add deprecation warnings for singular colour properties in Role and Guild

(cherry picked from commit 975a0d9)
* ✨ add Nameplate class and integration in user model

* 🏷️ feat: add nameplate attribute to User class

* ✨ add NameplatePalette enum and enhance Nameplate class with asset retrieval

* 📝 add nameplate attribute to User class documentation

* 📝 CHANGELOG.md

* 📝 add versionadded directive for Nameplate class and NameplatePalette enum

* 📝 update Nameplate class documentation to include undocumented members

* ✏️ Fix typo in NameplatePalette

* 📝 standardize nameplate color attributes to lowercase and document each color in enums

* 📝 refine Nameplate class docstring for clarity

* Update discord/collectibles.py

Signed-off-by: Paillat <[email protected]>

* ♻️ remove NameplatePalette enum and change palette type to str

---------

Signed-off-by: Paillat <[email protected]>
Signed-off-by: Paillat <[email protected]>
(cherry picked from commit 58c0dfc)
…from_str (redo) (Pycord-Development#2815)

* Revert "Revert "fix: support emoji aliases like `:smile:` in PartialEmoji.fro…"

This reverts commit 8619b69.

* Update discord/partial_emoji.py

Co-authored-by: Paillat <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Lala Sabathil <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Lala Sabathil <[email protected]>

* Update MANIFEST.in

Signed-off-by: Lala Sabathil <[email protected]>

* feat: allow usage of unicode emoji in PartialEmojiConverter (Pycord-Development#2819)

* Update converter.py

* fix: enhance PartialEmojiConverter to support direct emoji names

* update doc

* Revert 2814 revert 2774 emoji (Pycord-Development#2820)

* Add Unicode emoji support to PartialEmojiConverter

PartialEmojiConverter now recognizes standard Unicode emojis using a new UNICODE_EMOJIS set loaded from emojis.json. The emoji mapping and set are moved to discord.utils for reuse, and references in partial_emoji.py are updated accordingly.

* style(pre-commit): auto fixes from pre-commit.com hooks

* Update converter.py

Signed-off-by: Lumouille <[email protected]>

* Update converter.py

* fix(utils): update UNICODE_EMOJIS to use values from EMOJIS_MAP

---------

Signed-off-by: Lumouille <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* added back support of smile and `:smile:` (Pycord-Development#2822)

* Add Unicode emoji support to PartialEmojiConverter

PartialEmojiConverter now recognizes standard Unicode emojis using a new UNICODE_EMOJIS set loaded from emojis.json. The emoji mapping and set are moved to discord.utils for reuse, and references in partial_emoji.py are updated accordingly.

* style(pre-commit): auto fixes from pre-commit.com hooks

* Update converter.py

Signed-off-by: Lumouille <[email protected]>

* Update converter.py

* fix(utils): update UNICODE_EMOJIS to use values from EMOJIS_MAP

* fix(partial_emoji): simplify emoji name extraction by using removeprefix and removesuffix

* style(pre-commit): auto fixes from pre-commit.com hooks

---------

Signed-off-by: Lumouille <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* Update discord/partial_emoji.py

Signed-off-by: Lala Sabathil <[email protected]>

* style(pre-commit): auto fixes from pre-commit.com hooks

* Update discord/partial_emoji.py

Co-authored-by: Paillat <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Lumouille <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>

* style(pre-commit): auto fixes from pre-commit.com hooks

* Update discord/utils.py

Co-authored-by: Lumouille <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>

---------

Signed-off-by: Lala Sabathil <[email protected]>
Signed-off-by: Lala Sabathil <[email protected]>
Signed-off-by: Lumouille <[email protected]>
Co-authored-by: Paillat <[email protected]>
Co-authored-by: Lumouille <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Paillat <[email protected]>

(cherry picked from commit 4ccb0c0)
Signed-off-by: Lala Sabathil <[email protected]>
(cherry picked from commit bf26465)
Signed-off-by: Lala Sabathil <[email protected]>
(cherry picked from commit 7c598bc)
Signed-off-by: hich4t <[email protected]>
Co-authored-by: Paillat <[email protected]>
Co-authored-by: Lala Sabathil <[email protected]>
(cherry picked from commit b43969a)
… `functools.cached_property` (Pycord-Development#2769)

* feat: Replaced useless `cached_property` with `property` and moved to `functools.cached_property`

* style(pre-commit): auto fixes from pre-commit.com hooks

* chore: switch to `functools.cached_property` for intensive code

* style(pre-commit): auto fixes from pre-commit.com hooks

* Update context.py

Signed-off-by: Paillat <[email protected]>

---------

Signed-off-by: Paillat <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Paillat <[email protected]>

(cherry picked from commit 7ab3af9)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ice Wolfy <[email protected]>
Co-authored-by: Paillat <[email protected]>

(cherry picked from commit 8e2185c)
@Paillat-dev Paillat-dev requested review from a team and Lulalaby as code owners August 18, 2025 21:15
@Paillat-dev Paillat-dev removed the request for review from Lulalaby August 18, 2025 21:16
@Paillat-dev Paillat-dev added the don't-merge DO NOT MERGE label Aug 18, 2025
@Paillat-dev Paillat-dev removed the don't-merge DO NOT MERGE label Aug 18, 2025
@Lulalaby
Copy link
Member

Brother in christ 💀 what is that diff size

@Paillat-dev
Copy link
Member Author

It's the autogenerated translations stuff

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.

8 participants