-
-
Notifications
You must be signed in to change notification settings - Fork 481
fix: Remove Extra Bytes Added By Discord Before OPUS Decoding #2925
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
Merged
Lulalaby
merged 2 commits into
Pycord-Development:master
from
Icebluewolf:voice-recv-fix
Sep 15, 2025
Merged
fix: Remove Extra Bytes Added By Discord Before OPUS Decoding #2925
Lulalaby
merged 2 commits into
Pycord-Development:master
from
Icebluewolf:voice-recv-fix
Sep 15, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks for opening this pull request! This pull request can be checked-out with: git fetch origin pull/2925/head:pr-2925
git checkout pr-2925 This pull request can be installed with: pip install git+https://github.com/Pycord-Development/pycord@refs/pull/2925/head |
Lulalaby
approved these changes
Sep 14, 2025
DA-344
approved these changes
Sep 15, 2025
baribarton
added a commit
to baribarton/pycord-no-potential-reconnect
that referenced
this pull request
Sep 17, 2025
* :sparkles: Parse data as message in `parse_message_update` instead of using `_update` * :memo: CHANGELOG.md * :bug: Store updated message * fix: support emoji aliases like `:smile:` in PartialEmoji.from_str (#2774) * handle emoji_lib Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * Update CHANGELOG.md Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * usage of dismoji Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update _.txt Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * removal of dismoji Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update _.txt Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * NEED HELP Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * Update partial_emoji.py Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * Add files via upload Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * Update partial_emoji.py Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update discord/partial_emoji.py Co-authored-by: plun1331 <plun1331@gmail.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * feature(partial_emoji): support :name: and name * fix(partial_emoji): remove unnecessary data variable after processing emojis * Update partial_emoji.py Co-authored-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * reduce emoji.json weight * Update emojis.json Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * refactor: replace Path with importlib.resources for loading emojis.json * Update emojis.json Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> --------- Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: plun1331 <plun1331@gmail.com> Co-authored-by: Paillat <jeremiecotti@ik.me> Co-authored-by: Lala Sabathil <lala@pycord.dev> * Revert "fix: support emoji aliases like `:smile:` in PartialEmoji.from_str" (#2814) Revert "fix: support emoji aliases like `:smile:` in PartialEmoji.from_str (#…" This reverts commit 735673b333d639928e54b66f0b2b231c7f55e747. * chore: :memo: update license format in pyproject.toml (#2824) * :memo: update license format in pyproject.toml * chore: reference license file Signed-off-by: Lala Sabathil <aiko@aitsys.dev> * fix: classifer is invalid now Signed-off-by: Lala Sabathil <aiko@aitsys.dev> --------- Signed-off-by: Lala Sabathil <aiko@aitsys.dev> Co-authored-by: Lala Sabathil <aiko@aitsys.dev> * chore(pre-commit): pre-commit autoupdate (#2829) updates: - [github.com/DanielNoord/pydocstringformatter: v0.7.3 → v0.7.5](https://github.com/DanielNoord/pydocstringformatter/compare/v0.7.3...v0.7.5) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * chore(deps-dev): update coverage requirement from ~=7.8 to ~=7.9 (#2811) Updates the requirements on [coverage](https://github.com/nedbat/coveragepy) to permit the latest version. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.8.0...7.9.0) --- updated-dependencies: - dependency-name: coverage dependency-version: 7.9.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * docs: :memo: Fix malformed hyperlink in CHANGELOG.md number 2 (#2806) * :memo: Fix hyperlink in CHANGELOG.md * Update CHANGELOG.md Signed-off-by: Lala Sabathil <aiko@aitsys.dev> * style(pre-commit): auto fixes from pre-commit.com hooks --------- Signed-off-by: Lala Sabathil <aiko@aitsys.dev> Co-authored-by: Lala Sabathil <aiko@aitsys.dev> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> * chore(deps-dev): update pytest requirement from ~=8.3.5 to ~=8.4.0 (#2803) Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.3.5...8.4.0) --- updated-dependencies: - dependency-name: pytest dependency-version: 8.4.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: components v2 & `View` improvements (#2707) Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com> Signed-off-by: Lala Sabathil <lala@pycord.dev> Signed-off-by: plun1331 <plun1331@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: Paillat <jeremiecotti@ik.me> Co-authored-by: Ice Wolfy <44532864+Icebluewolf@users.noreply.github.com> Co-authored-by: plun1331 <plun1331@gmail.com> Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> * fix: 4006 voice crashes and upgrade to voice v8 (#2812) Signed-off-by: Lala Sabathil <aiko@aitsys.dev> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <aiko@aitsys.dev> * ci(deps): bump crowdin/github-action from 2.7.1 to 2.8.0 in the minor-version-bumps group (#2821) ci(deps): bump crowdin/github-action in the minor-version-bumps group Bumps the minor-version-bumps group with 1 update: [crowdin/github-action](https://github.com/crowdin/github-action). Updates `crowdin/github-action` from 2.7.1 to 2.8.0 - [Release notes](https://github.com/crowdin/github-action/releases) - [Commits](https://github.com/crowdin/github-action/compare/v2.7.1...v2.8.0) --- updated-dependencies: - dependency-name: crowdin/github-action dependency-version: 2.8.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-version-bumps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ci(deps): bump ribtoks/tdg-github-action from 0.4.14.pre.beta to 0.4.15.pre.beta in the patch-version-bumps group (#2841) ci(deps): bump ribtoks/tdg-github-action Bumps the patch-version-bumps group with 1 update: [ribtoks/tdg-github-action](https://github.com/ribtoks/tdg-github-action). Updates `ribtoks/tdg-github-action` from 0.4.14.pre.beta to 0.4.15.pre.beta - [Release notes](https://github.com/ribtoks/tdg-github-action/releases) - [Commits](https://github.com/ribtoks/tdg-github-action/compare/v0.4.14-beta...v0.4.15-beta) --- updated-dependencies: - dependency-name: ribtoks/tdg-github-action dependency-version: 0.4.15.pre.beta dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-version-bumps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump bandit from 1.8.3 to 1.8.6 in the patch-version-bumps group (#2839) chore(deps-dev): bump bandit in the patch-version-bumps group Bumps the patch-version-bumps group with 1 update: [bandit](https://github.com/PyCQA/bandit). Updates `bandit` from 1.8.3 to 1.8.6 - [Release notes](https://github.com/PyCQA/bandit/releases) - [Commits](https://github.com/PyCQA/bandit/compare/1.8.3...1.8.6) --- updated-dependencies: - dependency-name: bandit dependency-version: 1.8.6 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: patch-version-bumps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): update coverage requirement from ~=7.9 to ~=7.10 (#2840) Updates the requirements on [coverage](https://github.com/nedbat/coveragepy) to permit the latest version. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.9.0...7.10.1) --- updated-dependencies: - dependency-name: coverage dependency-version: 7.10.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: :bug: Fix missing self. attribution in File component (#2843) * :bug: Fix missing self. attribution in File * :memo: CHANGELOG.md * ci(deps): bump crowdin/github-action from 2.9.0 to 2.9.1 in the patch-version-bumps group (#2844) ci(deps): bump crowdin/github-action in the patch-version-bumps group Bumps the patch-version-bumps group with 1 update: [crowdin/github-action](https://github.com/crowdin/github-action). Updates `crowdin/github-action` from 2.9.0 to 2.9.1 - [Release notes](https://github.com/crowdin/github-action/releases) - [Commits](https://github.com/crowdin/github-action/compare/v2.9.0...v2.9.1) --- updated-dependencies: - dependency-name: crowdin/github-action dependency-version: 2.9.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-version-bumps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: :bug: Fix issue in cv2 example (#2842) :bug: Fix error in on_timeout, should use .parent not .message * chore(deps-dev): update mypy requirement from ~=1.15.0 to ~=1.17.0 (#2837) Updates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.15.0...v1.17.0) --- updated-dependencies: - dependency-name: mypy dependency-version: 1.17.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump the minor-version-bumps group with 2 updates (#2836) * chore(deps): bump the minor-version-bumps group with 2 updates Bumps the minor-version-bumps group with 2 updates: [typing-extensions](https://github.com/python/typing_extensions) and [flake8](https://github.com/pycqa/flake8). Updates `typing-extensions` from 4.13.2 to 4.14.1 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.13.2...4.14.1) Updates `flake8` from 7.1.2 to 7.3.0 - [Commits](https://github.com/pycqa/flake8/compare/7.1.2...7.3.0) --- updated-dependencies: - dependency-name: typing-extensions dependency-version: 4.14.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-version-bumps - dependency-name: flake8 dependency-version: 7.3.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor-version-bumps ... Signed-off-by: dependabot[bot] <support@github.com> * fix: suppress flake8 false-positive Signed-off-by: Lala Sabathil <lala@pycord.dev> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> * docs: :memo: update docstrings for Asset and Attachment classes to clarify hash return values (#2832) :memo: update docstrings for Asset and Attachment classes to clarify hash return values * fix: :bug: Issue in `@option` where some annotations could not be used along with `channel_types` (#2835) * :bug: Option: Always set `input_type` to `SlashCommandOptionType.channel` when `channel_types` is set * :memo: CHANGELOG.md * style(pre-commit): auto fixes from pre-commit.com hooks --------- Signed-off-by: Paillat <me@paillat.dev> Signed-off-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> * chore(deps-dev): update pytest-asyncio requirement from ~=0.24.0 to ~=1.1.0 (#2838) chore(deps-dev): update pytest-asyncio requirement Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases) - [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.24.0...v1.1.0) --- updated-dependencies: - dependency-name: pytest-asyncio dependency-version: 1.1.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: allow conversion to Member in MentionableConverter (#2775) * Update CHANGELOG.md Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * fix member not being converted Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * fix member not being converted Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * Update CHANGELOG.md Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update CHANGELOG.md Co-authored-by: plun1331 <plun1331@gmail.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * 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 <53639936+Dorukyum@users.noreply.github.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * improved code quality --------- Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: plun1331 <plun1331@gmail.com> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> * feat: :sparkles: Add missing feature flags to `Guild.edit` (#2672) * :sparkles: Add missing `Guild` feature flags * :sparkles: Add `Guild.activity_feed_enabled` to know whether the activity feed is enabled for the guild. * :memo: Docs * :memo: CHANGELOG.md * chore: :alien: Update base max filesize to `10` Mb (#2671) * :alien: Update base max filesize to `10` Mb * :memo: CHANGELOG.md * :memo: Requested changes * :zap: Compute `features` only once * Remove variable * :recycle: change `raid_alerts` to `enable_raid_alerts` * :ambulance: Forgot to rename `enable_raid_alerts` * ♻️ change `enable_raid_alerts` to `disable_raid_alerts` Signed-off-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> * fix docstring Signed-off-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> --------- Signed-off-by: Paillat <me@paillat.dev> Signed-off-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> * feat(translations): add turkish Signed-off-by: Lala Sabathil <lala@pycord.dev> * docs: Update localizations from Crowdin (#2846) Co-authored-by: Crowdin Bot <support+bot@crowdin.com> * feat(commands): add support for typing.Literal[...] as command choices (#2782) * fix: add support for Literal type in typing annotations for Discord choices * Update CHANGELOG.md * Update CHANGELOG.md Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update CHANGELOG.md Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * 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 <jeremiecotti@ik.me> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update discord/commands/core.py Co-authored-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks --------- Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: Paillat <jeremiecotti@ik.me> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * fix: retain original File item urls for editing (#2847) * 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> * feat: ✨ Add support for role gradient colors in Role (#2818) * :sparkles: Add support for enhanced role colors in `Role` * :sparkles: add RoleColours support to `Role.edit` * :sparkles: add RoleColours support to role creation in `Guild` and define default colors in `RoleColours` * :sparkles: add support for RoleColours in role creation and editing * :sparkles: update role attributes to use RoleColours and enhance color properties * :memo: CHANGELOG.md * :memo: add documentation for RoleColours and its attributes * :pencil2: fix version annotation for primary color method in role.py * :sparkles: add holographic role support in RoleColours * :memo: update tertiary color documentation to specify allowed value * :sparkles: Finish implementing holographic support * :wastebasket: Add deprecation warnings for singular colour properties in Role and Guild * feat: :sparkles: add Nameplate class and integration (#2817) * :sparkles: add Nameplate class and integration in user model * :label: feat: add nameplate attribute to User class * :sparkles: add NameplatePalette enum and enhance Nameplate class with asset retrieval * :memo: add nameplate attribute to User class documentation * :memo: CHANGELOG.md * :memo: add versionadded directive for Nameplate class and NameplatePalette enum * :memo: update Nameplate class documentation to include undocumented members * :pencil2: Fix typo in NameplatePalette * :memo: standardize nameplate color attributes to lowercase and document each color in enums * :memo: refine Nameplate class docstring for clarity * Update discord/collectibles.py Signed-off-by: Paillat <jeremiecotti@ik.me> * :recycle: remove NameplatePalette enum and change palette type to str --------- Signed-off-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Paillat <paillat@pycord.dev> * feat: Added support for emoji aliases like `:smile:` in PartialEmoji.from_str (redo) (#2815) * Revert "Revert "fix: support emoji aliases like `:smile:` in PartialEmoji.fro…" This reverts commit 8619b6902b79b72438e229b2715e0c7642b70333. * Update discord/partial_emoji.py Co-authored-by: Paillat <paillat@pycord.dev> Signed-off-by: Lala Sabathil <aiko@aitsys.dev> * Update CHANGELOG.md Signed-off-by: Lala Sabathil <aiko@aitsys.dev> * Update CHANGELOG.md Signed-off-by: Lala Sabathil <aiko@aitsys.dev> * Update MANIFEST.in Signed-off-by: Lala Sabathil <lala@pycord.dev> * feat: allow usage of unicode emoji in PartialEmojiConverter (#2819) * Update converter.py * fix: enhance PartialEmojiConverter to support direct emoji names * update doc * Revert 2814 revert 2774 emoji (#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 <144063653+Lumabots@users.noreply.github.com> * Update converter.py * fix(utils): update UNICODE_EMOJIS to use values from EMOJIS_MAP --------- Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * added back support of smile and `:smile:` (#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 <144063653+Lumabots@users.noreply.github.com> * 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 <144063653+Lumabots@users.noreply.github.com> 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 <aiko@aitsys.dev> * style(pre-commit): auto fixes from pre-commit.com hooks * Update discord/partial_emoji.py Co-authored-by: Paillat <me@paillat.dev> Signed-off-by: Lala Sabathil <aiko@aitsys.dev> * Update CHANGELOG.md Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Signed-off-by: Lala Sabathil <aiko@aitsys.dev> * style(pre-commit): auto fixes from pre-commit.com hooks * Update discord/utils.py Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Signed-off-by: Lala Sabathil <aiko@aitsys.dev> --------- Signed-off-by: Lala Sabathil <aiko@aitsys.dev> Signed-off-by: Lala Sabathil <lala@pycord.dev> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: Paillat <paillat@pycord.dev> Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Paillat <me@paillat.dev> * Update readthedocs.yml Signed-off-by: Lala Sabathil <lala@pycord.dev> * chore(ci): update execute-whitelist-action Signed-off-by: Lala Sabathil <lala@pycord.dev> * Update options.py * style(pre-commit): auto fixes from pre-commit.com hooks * Update CHANGELOG.md * style(pre-commit): auto fixes from pre-commit.com hooks * chore(deps): bump sphinx-intl from 2.3.1 to 2.3.2 in the patch-version-bumps group (#2857) chore(deps): bump sphinx-intl in the patch-version-bumps group Bumps the patch-version-bumps group with 1 update: [sphinx-intl](https://github.com/sphinx-doc/sphinx-intl). Updates `sphinx-intl` from 2.3.1 to 2.3.2 - [Release notes](https://github.com/sphinx-doc/sphinx-intl/releases) - [Changelog](https://github.com/sphinx-doc/sphinx-intl/blob/master/CHANGES.rst) - [Commits](https://github.com/sphinx-doc/sphinx-intl/compare/2.3.1...2.3.2) --- updated-dependencies: - dependency-name: sphinx-intl dependency-version: 2.3.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-version-bumps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump sphinxext-opengraph from 0.10.0 to 0.12.0 in the minor-version-bumps group (#2856) chore(deps): bump sphinxext-opengraph in the minor-version-bumps group Bumps the minor-version-bumps group with 1 update: [sphinxext-opengraph](https://github.com/sphinx-doc/sphinxext-opengraph). Updates `sphinxext-opengraph` from 0.10.0 to 0.12.0 - [Release notes](https://github.com/sphinx-doc/sphinxext-opengraph/releases) - [Commits](https://github.com/sphinx-doc/sphinxext-opengraph/compare/v0.10.0...v0.12.0) --- updated-dependencies: - dependency-name: sphinxext-opengraph dependency-version: 0.12.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-version-bumps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): update pytest requirement from ~=8.4.0 to ~=8.4.1 (#2855) Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.4.0...8.4.1) --- updated-dependencies: - dependency-name: pytest dependency-version: 8.4.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat: added Interaction.attachment_size_limit (#2854) Signed-off-by: hich4t <hich4t@enchoral.me> Co-authored-by: Paillat <jeremiecotti@ik.me> Co-authored-by: Lala Sabathil <lala@pycord.dev> * feat: Replaced useless `cached_property` with `property` and moved to `functools.cached_property` (#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 <paillat@pycord.dev> --------- Signed-off-by: Paillat <paillat@pycord.dev> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Paillat <paillat@pycord.dev> * feat: Respect user warning filters for deprecation messages (#2853) * Update CODEOWNERS * fix: support new voice encryption modes (#2651) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ice Wolfy <icebluewolf05@gmail.com> Co-authored-by: Paillat <paillat@pycord.dev> * chore(pre-commit): pre-commit autoupdate (#2859) updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * chore(deps): update amannn/action-semantic-pull-request action to v6 (#2868) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update actions/checkout action to v5 (#2867) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps-dev): bump pre-commit from 4.2.0 to 4.3.0 in the minor-version-bumps group (#2861) chore(deps-dev): bump pre-commit in the minor-version-bumps group Bumps the minor-version-bumps group with 1 update: [pre-commit](https://github.com/pre-commit/pre-commit). Updates `pre-commit` from 4.2.0 to 4.3.0 - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](https://github.com/pre-commit/pre-commit/compare/v4.2.0...v4.3.0) --- updated-dependencies: - dependency-name: pre-commit dependency-version: 4.3.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor-version-bumps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): update pylint requirement from ~=3.3.7 to ~=3.3.8 (#2863) Updates the requirements on [pylint](https://github.com/pylint-dev/pylint) to permit the latest version. - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](https://github.com/pylint-dev/pylint/compare/v3.3.7...v3.3.8) --- updated-dependencies: - dependency-name: pylint dependency-version: 3.3.8 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): update setuptools-scm requirement from <=8.3.1,>=6.2 to >=6.2,<=9.1.1 (#2862) chore(deps): update setuptools-scm requirement Updates the requirements on [setuptools-scm](https://github.com/pypa/setuptools-scm) to permit the latest version. - [Release notes](https://github.com/pypa/setuptools-scm/releases) - [Changelog](https://github.com/pypa/setuptools-scm/blob/main/CHANGELOG.md) - [Commits](https://github.com/pypa/setuptools-scm/compare/v8.1.0...v9.1.1) --- updated-dependencies: - dependency-name: setuptools-scm dependency-version: 9.1.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ci(deps): bump amannn/action-semantic-pull-request from 6.0.1 to 6.1.0 in the minor-version-bumps group (#2871) ci(deps): bump amannn/action-semantic-pull-request Bumps the minor-version-bumps group with 1 update: [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request). Updates `amannn/action-semantic-pull-request` from 6.0.1 to 6.1.0 - [Release notes](https://github.com/amannn/action-semantic-pull-request/releases) - [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/main/CHANGELOG.md) - [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v6.0.1...v6.1.0) --- updated-dependencies: - dependency-name: amannn/action-semantic-pull-request dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-version-bumps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ci(deps): bump crowdin/github-action from 2.9.1 to 2.10.0 in the minor-version-bumps group (#2874) ci(deps): bump crowdin/github-action in the minor-version-bumps group Bumps the minor-version-bumps group with 1 update: [crowdin/github-action](https://github.com/crowdin/github-action). Updates `crowdin/github-action` from 2.9.1 to 2.10.0 - [Release notes](https://github.com/crowdin/github-action/releases) - [Commits](https://github.com/crowdin/github-action/compare/v2.9.1...v2.10.0) --- updated-dependencies: - dependency-name: crowdin/github-action dependency-version: 2.10.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-version-bumps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * ci(deps): bump amannn/action-semantic-pull-request from 6.1.0 to 6.1.1 in the patch-version-bumps group (#2875) ci(deps): bump amannn/action-semantic-pull-request Bumps the patch-version-bumps group with 1 update: [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request). Updates `amannn/action-semantic-pull-request` from 6.1.0 to 6.1.1 - [Release notes](https://github.com/amannn/action-semantic-pull-request/releases) - [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/main/CHANGELOG.md) - [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v6.1.0...v6.1.1) --- updated-dependencies: - dependency-name: amannn/action-semantic-pull-request dependency-version: 6.1.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-version-bumps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: :bug: Fix `AttributeError` when accessing `AuditLogEntry.changes` more than once (#2882) * :bug: Fix `AttributeError` when accessing `AuditLogEntry.changes` more than once * :memo: CHANGELOG * feat: :sparkles: Implement and document `AuditLogDiff.communication_disabled_until` (#2883) * :sparkles: Implement and document `AuditLogDiff.communication_disabled_until` * :memo: CHANGELOG.md --------- Signed-off-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: Lala Sabathil <lala@pycord.dev> * feat: Add support for user.primary_guild (#2876) Signed-off-by: Lala Sabathil <aiko@aitsys.dev> Signed-off-by: plun1331 <49261529+plun1331@users.noreply.github.com> Signed-off-by: UK <41271523+neloblivion@users.noreply.github.com> Signed-off-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: UK <41271523+NeloBlivion@users.noreply.github.com> Co-authored-by: Paillat <me@paillat.dev> * fix(deps): Switch from Dependabot to Renovate for dependency updates (#2885) Removed Dependabot configuration and added Renovate config file. Updated .gitignore to allow tracking of renovate.json. This change migrates automated dependency management to Renovate for improved flexibility and dashboard features. * chore(deps): bump typing-extensions from 4.14.1 to 4.15.0 in the minor-version-bumps group (#2880) chore(deps): bump typing-extensions in the minor-version-bumps group Bumps the minor-version-bumps group with 1 update: [typing-extensions](https://github.com/python/typing_extensions). Updates `typing-extensions` from 4.14.1 to 4.15.0 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.14.1...4.15.0) --- updated-dependencies: - dependency-name: typing-extensions dependency-version: 4.15.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-version-bumps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * docs: :memo: Fix docstring of `Nameplate` (#2884) :memo: Fix docstring of `Nameplate` * feat: Message pin updates (#2872) Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com> Co-authored-by: plun1331 <plun1331@gmail.com> * Update Renovate config with pip requirements rules Adds package rules to target pip_requirements manager for files in requirements/*.txt and enables assignees from CODEOWNERS. This improves automation and assignment for dependency updates. * chore(config): migrate renovate config (#2887) chore(config): migrate config renovate.json Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: Modal Selects and TextDisplays (#2858) Signed-off-by: Lala Sabathil <lala@pycord.dev> Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: Paillat <jeremiecotti@ik.me> Co-authored-by: Ice Wolfy <44532864+Icebluewolf@users.noreply.github.com> * ci(test): vadility test * Revert "ci(test): vadility test" This reverts commit 7a0aebed9b636a41a1b156ab3baeaf09b03e7526. * [ci skip] chore: release prep/2.7.0 rc.1 (#2888) * fix: Update changelog for old v2.6.1 release Changed the unreleased comparison link to reference v2.6.1 and added a link for the v2.6.1 release in the changelog. * Update milestone determination logic in release workflow Removes the '.0' suffix check from the milestone job condition and dynamically calculates the previous major.minor version for milestone queries. This improves flexibility and correctness in milestone handling during releases. * Add version branch creation to release workflow The release workflow now conditionally creates and checks out the version branch if it does not exist, ensuring releases are made from the correct branch. Also, remote-release.yml is now ignored in .gitignore. * ci(release): Improve release announcement for RC versions Adds conditional logic to customize Discord release announcements for release candidate (RC) versions, including a specific message for testers and feedback. Also updates the webhook payload to specify allowed mentions. * ci(release): fix release workflow RC version condition Corrects the conditional in the docs_release job to match '.0-rc.1' instead of '.0-rc1', ensuring proper handling of release candidate versions. * feat: :goal_net: Add error handling for missing emojis.json file in utils.py (#2889) :goal_net: Add error handling for missing emojis.json file in utils.py * ci(release): fix docs versioning for release candidates in workflow Updates the release workflow to correctly set documentation version and changelog URLs for release candidate versions, ensuring they use the 'v{major}.{minor}.x' format instead of the full version number. * style(pre-commit): auto fixes from pre-commit.com hooks * fix: fix typing for PermissionOverwrite.update (#2878) * fix: fix typing for PermissionOverwrite.update * Update CHANGELOG.md Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Lala Sabathil <aiko@aitsys.dev> --------- Signed-off-by: Paillat <paillat@pycord.dev> Signed-off-by: Lala Sabathil <aiko@aitsys.dev> Co-authored-by: Paillat <paillat@pycord.dev> Co-authored-by: Lala Sabathil <aiko@aitsys.dev> Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> * feat: add Message.get_component and related functions (#2849) * get_component * style(pre-commit): auto fixes from pre-commit.com hooks * cl * single loop --------- Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com> Signed-off-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Paillat <paillat@pycord.dev> Co-authored-by: Lala Sabathil <lala@pycord.dev> * docs: clarify parameter description for custom_id Signed-off-by: Lala Sabathil <lala@pycord.dev> * feat: add ThreadAutoArchiveDuration enum (#2826) Signed-off-by: BOXER <130167557+BOXERRMD@users.noreply.github.com> Signed-off-by: Lala Sabathil <aiko@aitsys.dev> Signed-off-by: Lala Sabathil <lala@pycord.dev> Signed-off-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Paillat <jeremiecotti@ik.me> Co-authored-by: Lala Sabathil <aiko@aitsys.dev> Co-authored-by: plun1331 <plun1331@gmail.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * feat: adding missing parameters and attribute documentation (#2772) * Update guild.py Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> * Update channel.py add missings docs Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> * Update guild.py Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * Update channel.py Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * Update guild.py Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> * Update guild.py Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * Update CHANGELOG.md Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * Update CHANGELOG.md Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * Update guild.py Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> * Update channel.py removal of all the nsfw mention which should not exist for category Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> * Update channel.py Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * fix typo Co-authored-by: plun1331 <plun1331@gmail.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update discord/channel.py Co-authored-by: plun1331 <plun1331@gmail.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update discord/channel.py Co-authored-by: plun1331 <plun1331@gmail.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update discord/channel.py Co-authored-by: plun1331 <plun1331@gmail.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * feat(channel): deprecate is_nsfw method in CategoryChannel * fix(channel): correct deprecated decorator arguments in CategoryChannel * style(pre-commit): auto fixes from pre-commit.com hooks * fix: improve clarity of NSFW parameter documentation and slowmode for continiuty * fix: improve clarity of NSFW parameter documentation * fix: add missing parameters to channel creation methods and deprecate unsupported nsfw for categories * Update CHANGELOG.md Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * fix: add missing parameters for channel creation and allow default_reaction_emoji to be None * Update CHANGELOG.md Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update CHANGELOG.md Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update CHANGELOG.md Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * added reference * deprecated nsfw using property * Update channel.py * Update channel.py * Update discord/guild.py Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update discord/guild.py Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update discord/guild.py Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> * Update discord/channel.py Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> --------- Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: plun1331 <plun1331@gmail.com> Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> * feat: :sparkles: Soundboard (#2623) Signed-off-by: Paillat <me@paillat.dev> Signed-off-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: Dasupergrasskakjd <ethankahoot302@gmail.com> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * feat: :recycle: Better nameplates assets api (#2890) :recycle: Better nameplates assets api Co-authored-by: Soheab <33902984+Soheab@users.noreply.github.com> * fix: handling of Optional[...] in command option type resolution (#2852) Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> * fix: change badge property to cached_property (#2891) Signed-off-by: Lala Sabathil <lala@pycord.dev> * docs: document version addition for asset properties Signed-off-by: Lala Sabathil <lala@pycord.dev> * fix: datetime type for create_scheduled_event (#2879) Signed-off-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> * docs: 📝 Fixes (#2892) Signed-off-by: Paillat <jeremiecotti@ik.me> Co-authored-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * [ci skip] ci(release): Wait 3m between docs and discord announce That gives rdt enough time to build and deploy the docs * fix: improve handling of types in option input_type validation (#2893) * fix: improve handling of Union and tuple types in option input_type validation * fix: Option type handling for multiple Literals Updates Option type resolution to return a Union of Literals when all filtered types are Literal, ensuring correct type annotation for command options. --------- Co-authored-by: Lala Sabathil <lala@pycord.dev> * Update release workflow authentication and user info Switched to using ADMIN_GITHUB_TOKEN for releases and added explicit git username and email for commit attribution in the release workflow. * Update release workflow to use admin GitHub token * Update release workflow for PEP 440 versioning * Refactor release workflow for manual Python packaging Replaces the pycord-lib-release-action with explicit steps for setting up Python, installing dependencies, updating the changelog, building distributions, tagging releases, and publishing to PyPI. This change provides more control and transparency over the release process. * Update release action and remove classifier Bump softprops/action-gh-release to v2.3.2 in the release workflow for improved stability and features. Remove the 'License-Expression :: MIT' classifier from pyproject.toml for compliance with standard classifier usage. * chore(release): update CHANGELOG.md for version 2.7.0rc1 * Remove milestone dependency and sleep from Discord notification The inform_discord job no longer depends on close_milestone and the initial sleep step has been removed, streamlining the release workflow. * fix: lala (#2896) Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * chore: merge count into master (#2897) * Create count_sourcelines.py * fix: fix source lines script * Refactor count_sourcelines.py for clarity and style Removed redundant comments, simplified ignore_set initialization, and updated string formatting to use .format(). Minor code style improvements for readability. * chore: update badges Signed-off-by: Lala Sabathil <lala@pycord.dev> * Update supported versions in SECURITY.md Signed-off-by: Lala Sabathil <lala@pycord.dev> * Add library contributors to CODEOWNERS Signed-off-by: Lala Sabathil <lala@pycord.dev> * Update CODEOWNERS to reflect new maintainer team Signed-off-by: Lala Sabathil <lala@pycord.dev> * Move count_sourcelines.py to scripts directory Relocated count_sourcelines.py to scripts/ for better organization. Also updated ignore_set to exclude docs-json-exporter.py from line counting. * Add workflow and script for docs JSON export Introduces a GitHub Actions workflow to build Sphinx HTML documentation and export structured documentation data to docs.json using a new Python script. The script parses generated HTML files to extract classes, methods, attributes, and functions, then outputs them in JSON format for use as an artifact. * chore(actions): minor change so pre-commit can fix (#2898) * chore(actions): minor change so pre-commit can fix * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * fix: manage silence for new SSRC with existing user_id (#2808) * fix: manage silence for new SSRC with existing user_id * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Update changelog for SSRC silence fix Added entry describing the fix for managing silence with new SSRC and existing user_id, referencing PR #2808. * fix: changelog entry position Signed-off-by: Lala Sabathil <lala@pycord.dev> * fix(actions): Add 'Deprecated' section to changelog template Updates the release workflow to include a '### Deprecated' section in the CHANGELOG.md template for unreleased changes. This helps track deprecated features in future releases. * Add branch protection rename and restore steps Introduces jobs to temporarily rename branch protection rules before release and restore them afterward. Updates workflow dependencies to ensure correct execution order and maintain branch protection integrity during the release process. * Refine release workflow version handling and dependencies Improves version string validation to only support normal and rc releases, simplifies branch name and is_rc output logic, and streamlines job dependencies for better workflow clarity. Also updates Discord announcement formatting and docs release visibility for rc versions. * Update options.py * fix(options): Improve input_type handling in Option class * chore: nothingness * chore(deps): upgrade crowdin/github-action action to v2.11.0 * Update discord/raw_models.py Co-authored-by: Soheab <33902984+Soheab@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> * fix: unbound raw * Update state.py * Update CHANGELOG.md * style(pre-commit): auto fixes from pre-commit.com hooks * Update CHANGELOG.md Signed-off-by: Paillat <jeremiecotti@ik.me> * feat: Implement with_response For Interaction Callbacks (#2711) Signed-off-by: Ice Wolfy <44532864+Icebluewolf@users.noreply.github.com> Signed-off-by: Lala Sabathil <lala@pycord.dev> Signed-off-by: Paillat <paillat@pycord.dev> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: Paillat <paillat@pycord.dev> * chore(deps): bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0 in /.github/workflows in the github_actions group across 1 directory (#2909) chore(deps): bump pypa/gh-action-pypi-publish Bumps the github_actions group with 1 update in the /.github/workflows directory: [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish). Updates `pypa/gh-action-pypi-publish` from 1.12.4 to 1.13.0 - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.12.4...v1.13.0) --- updated-dependencies: - dependency-name: pypa/gh-action-pypi-publish dependency-version: 1.13.0 dependency-type: direct:production dependency-group: github_actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): upgrade actions/setup-python action to v6 (#2912) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: AttributeError for view=None in Webhook.send (#2915) * fix: AttributeError for view=None in Webhook.send * update changelog * Update CHANGELOG.md Co-authored-by: Paillat <jeremiecotti@ik.me> Signed-off-by: YoggieS <61660055+yoggys@users.noreply.github.com> --------- Signed-off-by: YoggieS <61660055+yoggys@users.noreply.github.com> Co-authored-by: Paillat <jeremiecotti@ik.me> * chore(deps): upgrade softprops/action-gh-release action to v2.3.3 (#2906) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feat: ✨ Add support for new member fields for bots (#2910) * Add support for new current member fields https://github.com/discord/discord-api-docs/pull/7807 * chore: add changelog entry * style(pre-commit): auto fixes from pre-commit.com hooks * Update CHANGELOG.md Co-authored-by: plun1331 <plun1331@gmail.com> Signed-off-by: Soheab <33902984+Soheab@users.noreply.github.com> * style(pre-commit): auto fixes from pre-commit.com hooks * chore: do requested change https://github.com/Pycord-Development/pycord/pull/2910#discussion_r2324401017 * Update discord/member.py Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com> Signed-off-by: Soheab <33902984+Soheab@users.noreply.github.com> --------- Signed-off-by: Soheab <33902984+Soheab@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: plun1331 <plun1331@gmail.com> Co-authored-by: Paillat <paillat@pycord.dev> Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com> * Enable blank issues in issue template configuration Signed-off-by: Lala Sabathil <lala@pycord.dev> * fix(views): View.message being None initially (#2916) * Fix View.message being None initially * style(pre-commit): auto fixes from pre-commit.com hooks * chore: add changelog entry * fix: store message regardless of finished state * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * fix(state): ensure _messages is not None before updating message list (#2924) * fix(state): ensure _messages is not None before updating message list * chore: update changelog * feat: Add support for default_values in Selects (#2899) Signed-off-by: Lala Sabathil <aiko@aitsys.dev> Signed-off-by: plun1331 <plun1331@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: Paillat <paillat@pycord.dev> Co-authored-by: Lala Sabathil <aiko@aitsys.dev> Co-authored-by: plun1331 <plun1331@gmail.com> * fix: typehint issue (#2917) Update role.py Co-authored-by: Paillat <paillat@pycord.dev> * fix: Remove Extra Bytes Added By Discord Before OPUS Decoding (#2925) * fix: Remove Extra Bytes Added By Discord Before OPUS Decoding * chore: Changelog * fix: detect our requirements * chore(deps): upgrade dependency myst-parser to v4.0.1 (#2927) * chore(deps): upgrade dependency myst-parser to v4.0.1 * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * chore(deps): upgrade dependency mypy to ~=1.18.1 (#2928) * chore(deps): upgrade dependency mypy to ~=1.18.1 * style(pre-commit): auto fixes from pre-commit.com hooks --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * added my silence cap back in --------- Signed-off-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Signed-off-by: Lala Sabathil <aiko@aitsys.dev> Signed-off-by: Paillat <me@paillat.dev> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: UK <41271523+NeloBlivion@users.noreply.github.com> Signed-off-by: Lala Sabathil <lala@pycord.dev> Signed-off-by: plun1331 <plun1331@gmail.com> Signed-off-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Signed-off-by: Paillat <jeremiecotti@ik.me> Signed-off-by: Paillat <paillat@pycord.dev> Signed-off-by: hich4t <hich4t@enchoral.me> Signed-off-by: plun1331 <49261529+plun1331@users.noreply.github.com> Signed-off-by: UK <41271523+neloblivion@users.noreply.github.com> Signed-off-by: BOXER <130167557+BOXERRMD@users.noreply.github.com> Signed-off-by: Lumabots <144063653+Lumabots@users.noreply.github.com> Signed-off-by: Ice Wolfy <44532864+Icebluewolf@users.noreply.github.com> Signed-off-by: YoggieS <61660055+yoggys@users.noreply.github.com> Signed-off-by: Soheab <33902984+Soheab@users.noreply.github.com> Co-authored-by: Paillat-dev <me@paillat.dev> Co-authored-by: Paillat <paillat@pycord.dev> Co-authored-by: Lumouille <144063653+Lumabots@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: plun1331 <plun1331@gmail.com> Co-authored-by: Paillat <jeremiecotti@ik.me> Co-authored-by: Lala Sabathil <lala@pycord.dev> Co-authored-by: Lala Sabathil <aiko@aitsys.dev> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Co-authored-by: UK <41271523+NeloBlivion@users.noreply.github.com> Co-authored-by: Ice Wolfy <44532864+Icebluewolf@users.noreply.github.com> Co-authored-by: JustaSqu1d <89910983+JustaSqu1d@users.noreply.github.com> Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com> Co-authored-by: Nyuw~ <nyuw@aitsys.dev> Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: hich4t <hich4t@enchoral.me> Co-authored-by: Riccardo Vaccari <55142392+RiccardoVaccari@users.noreply.github.com> Co-authored-by: Ice Wolfy <icebluewolf05@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: JL710 <git@jl710.de> Co-authored-by: BOXER <130167557+BOXERRMD@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Dasupergrasskakjd <ethankahoot302@gmail.com> Co-authored-by: Soheab <33902984+Soheab@users.noreply.github.com> Co-authored-by: rclaveau-tech <sousmangoosta@aliel.fr> Co-authored-by: YoggieS <61660055+yoggys@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Discord adds 8 bytes of data to the beginning of OPUS packets. So after transport layer decryption the first 8 bytes should be stripped before decoding with OPUS.
This also changes the packet whitelist to not include an unrelated bit in the check potentially causing dropped packets.
Fixes: #2921
From my testing these 8 bytes are always present. Legacy code suggests that there may be times where these 8 bytes are not present. I would like someone else to test before this is merged.
Information
examples, ...).
Checklist
type: ignore
comments were used, a comment is also left explaining why.