Skip to content

Commit 21b74bd

Browse files
authored
Merge branch 'master' into voice_dep
2 parents 9003ef4 + a611d75 commit 21b74bd

File tree

140 files changed

+6252
-4791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+6252
-4791
lines changed

.github/workflows/docs-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: "Setup Python"
4141
uses: actions/setup-python@v5
4242
with:
43-
python-version: "3.12"
43+
python-version: "3.13"
4444
cache: "pip"
4545
cache-dependency-path: "requirements/docs.txt"
4646
check-latest: true

.github/workflows/docs-localization-download.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: "Install Python"
2222
uses: actions/setup-python@v5
2323
with:
24-
python-version: "3.12"
24+
python-version: "3.13"
2525
cache: "pip"
2626
cache-dependency-path: "requirements/_locale.txt"
2727
- name: "Install Dependencies"
@@ -40,7 +40,7 @@ jobs:
4040
working-directory: ./docs
4141
- name: "Crowdin"
4242
id: crowdin
43-
uses: crowdin/github-action@v2
43+
uses: crowdin/github-action@v2.6.1
4444
with:
4545
upload_sources: false
4646
upload_translations: false

.github/workflows/docs-localization-upload.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: "Install Python"
2727
uses: actions/setup-python@v5
2828
with:
29-
python-version: "3.12"
29+
python-version: "3.13"
3030
cache: "pip"
3131
cache-dependency-path: "requirements/_locale.txt"
3232
- name: "Install Dependencies"
@@ -44,7 +44,7 @@ jobs:
4444
sphinx-intl update -p ./build/locales ${{ vars.SPHINX_LANGUAGES }}
4545
working-directory: ./docs
4646
- name: "Crowdin"
47-
uses: crowdin/github-action@v2
47+
uses: crowdin/github-action@v2.6.1
4848
with:
4949
upload_sources: true
5050
upload_translations: false

.github/workflows/lib-checks.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: "Setup Python"
3737
uses: actions/setup-python@v5
3838
with:
39-
python-version: "3.12"
39+
python-version: "3.13"
4040
cache: "pip"
4141
cache-dependency-path: "requirements/dev.txt"
4242
- name: "Install dependencies"
@@ -56,7 +56,7 @@ jobs:
5656
- name: "Setup Python"
5757
uses: actions/setup-python@v5
5858
with:
59-
python-version: "3.12"
59+
python-version: "3.13"
6060
cache: "pip"
6161
cache-dependency-path: "requirements/dev.txt"
6262
- name: "Install dependencies"
@@ -74,7 +74,7 @@ jobs:
7474
- name: "Setup Python"
7575
uses: actions/setup-python@v5
7676
with:
77-
python-version: "3.12"
77+
python-version: "3.13"
7878
cache: "pip"
7979
cache-dependency-path: "requirements/dev.txt"
8080
- name: "Install dependencies"
@@ -98,7 +98,7 @@ jobs:
9898
- name: "Setup Python"
9999
uses: actions/setup-python@v5
100100
with:
101-
python-version: "3.12"
101+
python-version: "3.13"
102102
cache: "pip"
103103
cache-dependency-path: "requirements/dev.txt"
104104
- name: "Install dependencies"
@@ -120,7 +120,7 @@ jobs:
120120
strategy:
121121
matrix:
122122
os: [ubuntu-latest, macos-latest, windows-latest]
123-
python-version: ["3.9", "3.10", "3.11", "3.12"]
123+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
124124
exclude:
125125
- { python-version: "3.9", os: "macos-latest" }
126126
include:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
version-branch-name: ${{ needs.pre_config.outputs.branch_name }}
8181
ref: ${{ github.ref_name }}
8282
repository: ${{ github.repository }}
83-
python-version: "3.12"
83+
python-version: "3.13"
8484
release-requirements: "requirements/_release.txt"
8585
version: ${{ needs.pre_config.outputs.version }}
8686
is-rc: ${{ needs.pre_config.outputs.is_rc }}

.github/workflows/todo-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: "Checkout Repository"
2424
uses: actions/checkout@v4
2525
- name: "Track TODO Action"
26-
uses: ribtoks/[email protected].12-beta
26+
uses: ribtoks/[email protected].14-beta
2727
with:
2828
TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929
REPO: ${{ github.repository }}

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44

55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.6.0
7+
rev: v5.0.0
88
hooks:
99
- id: trailing-whitespace
1010
exclude: \.(po|pot|yml|yaml)$
@@ -21,17 +21,17 @@ repos:
2121
# - --remove-duplicate-keys
2222
# - --remove-unused-variables
2323
- repo: https://github.com/asottile/pyupgrade
24-
rev: v3.17.0
24+
rev: v3.19.1
2525
hooks:
2626
- id: pyupgrade
2727
exclude: \.(po|pot|yml|yaml)$
2828
- repo: https://github.com/PyCQA/isort
29-
rev: 5.13.2
29+
rev: 6.0.1
3030
hooks:
3131
- id: isort
3232
exclude: \.(po|pot|yml|yaml)$
3333
- repo: https://github.com/psf/black
34-
rev: 24.8.0
34+
rev: 25.1.0
3535
hooks:
3636
- id: black
3737
args: [--safe, --quiet]

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ formats: []
44
build:
55
os: ubuntu-22.04
66
tools:
7-
python: "3.12"
7+
python: "3.13"
88

99
sphinx:
1010
configuration: docs/conf.py

CHANGELOG.md

Lines changed: 80 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,35 @@ These changes are available on the `master` branch, but have not yet been releas
2222
`tags`. ([#2520](https://github.com/Pycord-Development/pycord/pull/2520))
2323
- Added `Member.guild_banner` and `Member.display_banner` properties.
2424
([#2556](https://github.com/Pycord-Development/pycord/pull/2556))
25+
- Added support for Application Emojis.
26+
([#2501](https://github.com/Pycord-Development/pycord/pull/2501))
27+
- Added `cache_app_emojis` parameter to `Client`.
28+
([#2501](https://github.com/Pycord-Development/pycord/pull/2501))
29+
- Added `elapsed` method to `VoiceClient`.
30+
([#2587](https://github.com/Pycord-Development/pycord/pull/2587/))
2531
- Added optional `filter` parameter to `utils.basic_autocomplete()`.
2632
([#2590](https://github.com/Pycord-Development/pycord/pull/2590))
33+
- Added role tags: `subscription_listing_id`, `guild_connections`, and
34+
`available_for_purchase`.
35+
([#2606](https://github.com/Pycord-Development/pycord/pull/2606))
36+
- Added missing `with_counts` parameter to `fetch_guilds` method.
37+
([#2615](https://github.com/Pycord-Development/pycord/pull/2615))
38+
- Added the following missing permissions: `Permissions.use_soundboard`,
39+
`Permissions.use_external_sounds`, and
40+
`Permissions.view_creator_monetization_analytics`.
41+
([#2620](https://github.com/Pycord-Development/pycord/pull/2620))
42+
- Added `MediaChannel` channel type.
43+
([#2641](https://github.com/Pycord-Development/pycord/pull/2641))
44+
- Added `Message._raw_data` attribute.
45+
([#2670](https://github.com/Pycord-Development/pycord/pull/2670))
46+
- Added helper methods to determine the authorizing party of an `Interaction`.
47+
([#2659](https://github.com/Pycord-Development/pycord/pull/2659))
48+
- Added `VoiceMessage` subclass of `File` to allow voice messages to be sent.
49+
([#2579](https://github.com/Pycord-Development/pycord/pull/2579))
50+
- Added new `Subscription` object and related methods/events.
51+
([#2564](https://github.com/Pycord-Development/pycord/pull/2564))
52+
- Added ability to change the API's base URL with `Route.API_BASE_URL`.
53+
([#2714](https://github.com/Pycord-Development/pycord/pull/2714))
2754

2855
### Fixed
2956

@@ -40,6 +67,36 @@ These changes are available on the `master` branch, but have not yet been releas
4067
- Fixed `Guild.create_test_entitlement()` and `User.create_test_entitlement()` using the
4168
guild/user ID instead of the application ID.
4269
([#2595](https://github.com/Pycord-Development/pycord/pull/2595))
70+
- Fixed `BucketType.category` cooldown commands not functioning correctly in private
71+
channels. ([#2603](https://github.com/Pycord-Development/pycord/pull/2603))
72+
- Fixed `ctx` parameter of a `SlashCommand` not being `Union` type.
73+
([#2611](https://github.com/Pycord-Development/pycord/pull/2611))
74+
- Fixed `TypeError` when passing `skus` parameter in `Client.entitlements()`.
75+
([#2627](https://github.com/Pycord-Development/pycord/issues/2627))
76+
- Fixed `AttributeError` when sending polls with `PartialWebook`.
77+
([#2624](https://github.com/Pycord-Development/pycord/pull/2624))
78+
- Fixed editing `ForumChannel` flags not working.
79+
([#2641](https://github.com/Pycord-Development/pycord/pull/2641))
80+
- Fixed `AttributeError` when accessing `Member.guild_permissions` for user installed
81+
apps. ([#2650](https://github.com/Pycord-Development/pycord/pull/2650))
82+
- Fixed type annotations of cached properties.
83+
([#2635](https://github.com/Pycord-Development/pycord/issues/2635))
84+
- Fixed malformed properties in `Interaction.channel`.
85+
([#2658](https://github.com/Pycord-Development/pycord/pull/2658))
86+
- Fixed an error when responding non-ephemerally with a `Paginator` to an ephemerally
87+
deferred interaction.
88+
([#2661](https://github.com/Pycord-Development/pycord/pull/2661))
89+
- Fixed attachment metadata being set incorrectly in interaction responses causing the
90+
metadata to be ignored by Discord.
91+
([#2679](https://github.com/Pycord-Development/pycord/pull/2679))
92+
- Fixed unexpected backoff behavior in the handling of task failures
93+
([#2700](https://github.com/Pycord-Development/pycord/pull/2700)).
94+
- Fixed `BridgeCommand` duplicate in default help command.
95+
([#2656](https://github.com/Pycord-Development/pycord/pull/2656))
96+
- Fixed `AttributeError` when trying to consume a consumable entitlement.
97+
([#2564](https://github.com/Pycord-Development/pycord/pull/2564))
98+
- Fixed `Subscription.renewal_sku_ids` not accepting `None` from the received payload.
99+
([#2709](https://github.com/Pycord-Development/pycord/pull/2709))
43100

44101
### Changed
45102

@@ -48,11 +105,24 @@ These changes are available on the `master` branch, but have not yet been releas
48105
([#2496](https://github.com/Pycord-Development/pycord/pull/2496))
49106
- ⚠️ **Removed support for Python 3.8.**
50107
([#2521](https://github.com/Pycord-Development/pycord/pull/2521))
108+
- `Emoji` has been renamed to `GuildEmoji`.
109+
([#2501](https://github.com/Pycord-Development/pycord/pull/2501))
110+
- Replaced audioop (deprecated module) implementation of `PCMVolumeTransformer.read`
111+
method with a pure Python equivalent.
112+
([#2176](https://github.com/Pycord-Development/pycord/pull/2176))
113+
- Updated `Guild.filesize_limit` to 10 MB instead of 25 MB following Discord's API
114+
changes. ([#2671](https://github.com/Pycord-Development/pycord/pull/2671))
115+
- `Entitlement.ends_at` can now be `None`.
116+
([#2564](https://github.com/Pycord-Development/pycord/pull/2564))
51117

52118
### Deprecated
53119

54120
- Deprecated `AppInfo.summary` in favor of `AppInfo.description`.
55121
([#2520](https://github.com/Pycord-Development/pycord/pull/2520))
122+
- Deprecated `Emoji` in favor of `GuildEmoji`.
123+
([#2501](https://github.com/Pycord-Development/pycord/pull/2501))
124+
- Deprecated `Interaction.cached_channel` in favor of `Interaction.channel`.
125+
([#2658](https://github.com/Pycord-Development/pycord/pull/2658))
56126

57127
## [2.6.1] - 2024-09-15
58128

@@ -74,9 +144,9 @@ These changes are available on the `master` branch, but have not yet been releas
74144
`SortOrder`. ([#2500](https://github.com/Pycord-Development/pycord/pull/2500))
75145
- Fixed `PartialMessage` causing errors when created from `PartialMessageable`.
76146
([#2568](https://github.com/Pycord-Development/pycord/pull/2500))
77-
- Fixed the `guild` attribute of `Member`s recieved from a `UserCommand` being `None`.
147+
- Fixed the `guild` attribute of `Member`s received from a `UserCommand` being `None`.
78148
([#2573](https://github.com/Pycord-Development/pycord/pull/2573))
79-
- Fixed `Webhook.send` not including attachment data.
149+
- Fixed `Webhook.send`, which did not include attachment data.
80150
([#2513](https://github.com/Pycord-Development/pycord/pull/2513))
81151
- Fixed inverted type hints in `CheckAnyFailure`.
82152
([#2502](https://github.com/Pycord-Development/pycord/pull/2502))
@@ -133,7 +203,7 @@ These changes are available on the `master` branch, but have not yet been releas
133203
([#2407](https://github.com/Pycord-Development/pycord/pull/2407))
134204
- Fixed invalid data being passed to `Interaction._guild` in certain cases.
135205
([#2411](https://github.com/Pycord-Development/pycord/pull/2411))
136-
- Fixed option typehints being ignored when using `parameter_name`.
206+
- Fixed option type hints being ignored when using `parameter_name`.
137207
([#2417](https://github.com/Pycord-Development/pycord/pull/2417))
138208
- Fixed parameter `embed=None` causing `AttributeError` on `PartialMessage.edit`.
139209
([#2446](https://github.com/Pycord-Development/pycord/pull/2446))
@@ -158,7 +228,7 @@ These changes are available on the `master` branch, but have not yet been releas
158228

159229
- Changed the type of `Guild.bitrate_limit` to `int`.
160230
([#2387](https://github.com/Pycord-Development/pycord/pull/2387))
161-
- HTTP requests that fail with a 503 status are now re-tried.
231+
- HTTP requests that fail with a 503 status are now retried.
162232
([#2395](https://github.com/Pycord-Development/pycord/pull/2395))
163233
- `option` decorator now accepts `input_type`.
164234
([#2417](https://github.com/Pycord-Development/pycord/pull/2417))
@@ -359,15 +429,15 @@ These changes are available on the `master` branch, but have not yet been releas
359429
([#2075](https://github.com/Pycord-Development/pycord/pull/2075))
360430
- Fixed `before_invoke` not being run for `SlashCommandGroup`.
361431
([#2091](https://github.com/Pycord-Development/pycord/pull/2091))
362-
- Fixed `AttributeError` when accessing a `Select` object's values when it hasn't been
432+
- Fixed `AttributeError` when accessing a `Select` object's values when it has not been
363433
interacted with. ([#2104](https://github.com/Pycord-Development/pycord/pull/2104))
364434
- Fixed `before_invoke` being run twice for slash subcommands.
365435
([#2139](https://github.com/Pycord-Development/pycord/pull/2139))
366436
- Fixed `Guild._member_count` sometimes not being set.
367437
([#2145](https://github.com/Pycord-Development/pycord/pull/2145))
368438
- Fixed `Thread.applied_tags` not being updated.
369439
([#2146](https://github.com/Pycord-Development/pycord/pull/2146))
370-
- Fixed type hinting of `author` property of `ApplicationContext` to include
440+
- Fixed type-hinting of `author` property of `ApplicationContext` to include
371441
type-hinting of `User` or `Member`.
372442
([#2148](https://github.com/Pycord-Development/pycord/pull/2148))
373443
- Fixed missing `delete_after` parameter in overload type-hinting for `Webhook.send()`.
@@ -390,7 +460,7 @@ These changes are available on the `master` branch, but have not yet been releas
390460
([#2196](https://github.com/Pycord-Development/pycord/pull/2196))
391461
- Fixed `AttributeError` when running permission checks without the `bot` scope.
392462
([#2113](https://github.com/Pycord-Development/pycord/issues/2113))
393-
- Fixed `Option` not working on bridge commands because `ext.commands.Command` doesn't
463+
- Fixed `Option` not working on bridge commands because `ext.commands.Command` does not
394464
recognize them. ([#2256](https://github.com/Pycord-Development/pycord/pull/2256))
395465
- Fixed offset-aware tasks causing `TypeError` when being prepared.
396466
([#2271](https://github.com/Pycord-Development/pycord/pull/2271))
@@ -490,7 +560,7 @@ These changes are available on the `master` branch, but have not yet been releas
490560
### Fixed
491561

492562
- Fixed bugs in `Page.update_files` where file objects stored in memory were causing an
493-
`AttributeError`, and `io.BytesIO` files didn't send properly more than once.
563+
`AttributeError`, and `io.BytesIO` files did not send properly more than once.
494564
([#1869](https://github.com/Pycord-Development/pycord/pull/1869) &
495565
[#1881](https://github.com/Pycord-Development/pycord/pull/1881))
496566
- Fixed bridge groups missing the `parent` attribute.
@@ -845,9 +915,9 @@ These changes are available on the `master` branch, but have not yet been releas
845915
([#1453](https://github.com/Pycord-Development/pycord/pull/1453))
846916
- Update `thread.members` on `thread.fetch_members`.
847917
([#1464](https://github.com/Pycord-Development/pycord/pull/1464))
848-
- Fix the error when Discord doesn't send the `app_permissions` data in `Interaction`.
918+
- Fix the error when Discord does not send the `app_permissions` data in `Interaction`.
849919
([#1467](https://github.com/Pycord-Development/pycord/pull/1467))
850-
- Fix AttributeError when voice client `play()` function isn't completed yet.
920+
- Fix AttributeError when voice client `play()` function is not completed yet.
851921
([#1360](https://github.com/Pycord-Development/pycord/pull/1360))
852922

853923
## [2.0.0-rc.1] - 2022-05-17

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for D
2828

2929
======
3030

31+
Note
32+
----
33+
34+
Pycord supports Python ``3.9`` - ``3.13``
35+
3136
Key Features
3237
------------
3338

0 commit comments

Comments
 (0)