Skip to content

Commit 5647c53

Browse files
authored
Merge branch 'master' into master
Signed-off-by: Dorukyum <[email protected]>
2 parents ecf1698 + f0c8e53 commit 5647c53

File tree

259 files changed

+9586
-8601
lines changed

Some content is hidden

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

259 files changed

+9586
-8601
lines changed

.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].11-beta
26+
uses: ribtoks/[email protected].13-beta
2727
with:
2828
TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929
REPO: ${{ github.repository }}

.pre-commit-config.yaml

Lines changed: 3 additions & 3 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,7 +21,7 @@ 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)$
@@ -31,7 +31,7 @@ repos:
3131
- id: isort
3232
exclude: \.(po|pot|yml|yaml)$
3333
- repo: https://github.com/psf/black
34-
rev: 24.8.0
34+
rev: 24.10.0
3535
hooks:
3636
- id: black
3737
args: [--safe, --quiet]

CHANGELOG.md

Lines changed: 116 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,123 @@ possible (see our [Version Guarantees] for more info).
1010

1111
These changes are available on the `master` branch, but have not yet been released.
1212

13-
⚠️ **This Version Removes Support For Python 3.8** ⚠️
13+
⚠️ **This version removes support for Python 3.8.** ⚠️
14+
15+
### Added
16+
17+
- Added `Guild.fetch_role` method.
18+
([#2528](https://github.com/Pycord-Development/pycord/pull/2528))
19+
- Added the following `AppInfo` attributes: `approximate_guild_count`,
20+
`approximate_user_install_count`, `custom_install_url`, `install_params`,
21+
`interactions_endpoint_url`, `redirect_uris`, `role_connections_verification_url`, and
22+
`tags`. ([#2520](https://github.com/Pycord-Development/pycord/pull/2520))
23+
- Added `Member.guild_banner` and `Member.display_banner` properties.
24+
([#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/))
31+
- Added optional `filter` parameter to `utils.basic_autocomplete()`.
32+
([#2590](https://github.com/Pycord-Development/pycord/pull/2590))
33+
- Added missing `with_counts` parameter to `fetch_guilds` method.
34+
([#2615](https://github.com/Pycord-Development/pycord/pull/2615))
35+
- Added the following missing permissions: `Permissions.use_soundboard`,
36+
`Permissions.use_external_sounds`, and
37+
`Permissions.view_creator_monetization_analytics`.
38+
([#2620](https://github.com/Pycord-Development/pycord/pull/2620))
39+
- Added `Message._raw_data` attribute.
40+
([#2670](https://github.com/Pycord-Development/pycord/pull/2670))
41+
- Added helper methods to determine the authorizing party of an `Interaction`.
42+
([#2659](https://github.com/Pycord-Development/pycord/pull/2659))
43+
- Added `VoiceMessage` subclass of `File` to allow voice messages to be sent.
44+
([#2579](https://github.com/Pycord-Development/pycord/pull/2579))
45+
- Added `positional` argument to `commands.Flag`.
46+
([#2443](https://github.com/Pycord-Development/pycord/pull/2443))
47+
48+
### Fixed
49+
50+
- Fixed `Enum` options not setting the correct type when only one choice is available.
51+
([#2577](https://github.com/Pycord-Development/pycord/pull/2577))
52+
- Fixed `codec` option for `FFmpegOpusAudio` class to make it in line with
53+
documentation. ([#2581](https://github.com/Pycord-Development/pycord/pull/2581))
54+
- Fixed a possible bug where audio would play too fast at the beginning of audio files.
55+
([#2584](https://github.com/Pycord-Development/pycord/pull/2584))
56+
- Fixed paginator not responding when using `Paginator.edit()` with default parameters.
57+
([#2594](https://github.com/Pycord-Development/pycord/pull/2594))
58+
- Fixed the `is_owner()` `user` type hint: `User` -> `User | Member`.
59+
([#2593](https://github.com/Pycord-Development/pycord/pull/2593))
60+
- Fixed `Guild.create_test_entitlement()` and `User.create_test_entitlement()` using the
61+
guild/user ID instead of the application ID.
62+
([#2595](https://github.com/Pycord-Development/pycord/pull/2595))
63+
- Fixed `BucketType.category` cooldown commands not functioning correctly in private
64+
channels. ([#2603](https://github.com/Pycord-Development/pycord/pull/2603))
65+
- Fixed `ctx` parameter of a `SlashCommand` not being `Union` type.
66+
([#2611](https://github.com/Pycord-Development/pycord/pull/2611))
67+
- Fixed `TypeError` when passing `skus` parameter in `Client.entitlements()`.
68+
([#2627](https://github.com/Pycord-Development/pycord/issues/2627))
69+
- Fixed `AttributeError` when sending polls with `PartialWebook`.
70+
([#2624](https://github.com/Pycord-Development/pycord/pull/2624))
71+
- Fixed `AttributeError` when accessing `Member.guild_permissions` for user installed
72+
apps. ([#2650](https://github.com/Pycord-Development/pycord/pull/2650))
73+
- Fixed type annotations of cached properties.
74+
([#2635](https://github.com/Pycord-Development/pycord/issues/2635))
75+
- Fixed an error when responding non-ephemerally with a `Paginator` to an ephemerally
76+
deferred interaction.
77+
([#2661](https://github.com/Pycord-Development/pycord/pull/2661))
78+
- Fixed attachment metadata being set incorrectly in interaction responses causing the
79+
metadata to be ignored by Discord.
80+
([#2679](https://github.com/Pycord-Development/pycord/pull/2679))
1481

1582
### Changed
1683

1784
- Renamed `cover` property of `ScheduledEvent` and `cover` argument of
1885
`ScheduledEvent.edit` to `image`.
1986
([#2496](https://github.com/Pycord-Development/pycord/pull/2496))
20-
- ⚠️ **This Version Removes Support For Python 3.8** ⚠️
87+
- ⚠️ **Removed support for Python 3.8.**
2188
([#2521](https://github.com/Pycord-Development/pycord/pull/2521))
89+
- `Emoji` has been renamed to `GuildEmoji`.
90+
([#2501](https://github.com/Pycord-Development/pycord/pull/2501))
91+
- Replaced audioop (deprecated module) implementation of `PCMVolumeTransformer.read`
92+
method with a pure Python equivalent.
93+
([#2176](https://github.com/Pycord-Development/pycord/pull/2176))
94+
- Updated `Guild.filesize_limit` to 10 MB instead of 25 MB following Discord's API
95+
changes. ([#2671](https://github.com/Pycord-Development/pycord/pull/2671))
2296

23-
### Added
97+
### Deprecated
2498

25-
- Added `Guild.fetch_role` method.
26-
([#2528](https://github.com/Pycord-Development/pycord/pull/2528))
27-
- Added `positional` argument to `commands.Flag`.
28-
([#2443](https://github.com/Pycord-Development/pycord/pull/2443))
99+
- Deprecated `AppInfo.summary` in favor of `AppInfo.description`.
100+
([#2520](https://github.com/Pycord-Development/pycord/pull/2520))
101+
- Deprecated `Emoji` in favor of `GuildEmoji`.
102+
([#2501](https://github.com/Pycord-Development/pycord/pull/2501))
103+
104+
## [2.6.1] - 2024-09-15
105+
106+
### Fixed
107+
108+
- Fixed premature garbage collection of tasks.
109+
([#2510](https://github.com/Pycord-Development/pycord/pull/2510))
110+
- Fixed `EntitlementIterator` type hints and behavior with `limit > 100`.
111+
([#2555](https://github.com/Pycord-Development/pycord/pull/2555))
112+
- Fixed missing `stacklevel` parameter in `warn_deprecated` function call inside
113+
`@utils.deprecated`. ([#2500](https://github.com/Pycord-Development/pycord/pull/2500))
114+
- Fixed the type hint in `ConnectionState._polls` to reflect actual behavior, changing
115+
it from `Guild` to `Poll`.
116+
([#2500](https://github.com/Pycord-Development/pycord/pull/2500))
117+
- Fixed missing `__slots__` attributes in `RawReactionClearEmojiEvent` and
118+
`RawMessagePollVoteEvent`.
119+
([#2500](https://github.com/Pycord-Development/pycord/pull/2500))
120+
- Fixed the type of `ForumChannel.default_sort_order`, changing it from `int` to
121+
`SortOrder`. ([#2500](https://github.com/Pycord-Development/pycord/pull/2500))
122+
- Fixed `PartialMessage` causing errors when created from `PartialMessageable`.
123+
([#2568](https://github.com/Pycord-Development/pycord/pull/2500))
124+
- Fixed the `guild` attribute of `Member`s received from a `UserCommand` being `None`.
125+
([#2573](https://github.com/Pycord-Development/pycord/pull/2573))
126+
- Fixed `Webhook.send`, which did not include attachment data.
127+
([#2513](https://github.com/Pycord-Development/pycord/pull/2513))
128+
- Fixed inverted type hints in `CheckAnyFailure`.
129+
([#2502](https://github.com/Pycord-Development/pycord/pull/2502))
29130

30131
## [2.6.0] - 2024-07-09
31132

@@ -79,7 +180,7 @@ These changes are available on the `master` branch, but have not yet been releas
79180
([#2407](https://github.com/Pycord-Development/pycord/pull/2407))
80181
- Fixed invalid data being passed to `Interaction._guild` in certain cases.
81182
([#2411](https://github.com/Pycord-Development/pycord/pull/2411))
82-
- Fixed option typehints being ignored when using `parameter_name`.
183+
- Fixed option type hints being ignored when using `parameter_name`.
83184
([#2417](https://github.com/Pycord-Development/pycord/pull/2417))
84185
- Fixed parameter `embed=None` causing `AttributeError` on `PartialMessage.edit`.
85186
([#2446](https://github.com/Pycord-Development/pycord/pull/2446))
@@ -104,7 +205,7 @@ These changes are available on the `master` branch, but have not yet been releas
104205

105206
- Changed the type of `Guild.bitrate_limit` to `int`.
106207
([#2387](https://github.com/Pycord-Development/pycord/pull/2387))
107-
- HTTP requests that fail with a 503 status are now re-tried.
208+
- HTTP requests that fail with a 503 status are now retried.
108209
([#2395](https://github.com/Pycord-Development/pycord/pull/2395))
109210
- `option` decorator now accepts `input_type`.
110211
([#2417](https://github.com/Pycord-Development/pycord/pull/2417))
@@ -305,15 +406,15 @@ These changes are available on the `master` branch, but have not yet been releas
305406
([#2075](https://github.com/Pycord-Development/pycord/pull/2075))
306407
- Fixed `before_invoke` not being run for `SlashCommandGroup`.
307408
([#2091](https://github.com/Pycord-Development/pycord/pull/2091))
308-
- Fixed `AttributeError` when accessing a `Select` object's values when it hasn't been
409+
- Fixed `AttributeError` when accessing a `Select` object's values when it has not been
309410
interacted with. ([#2104](https://github.com/Pycord-Development/pycord/pull/2104))
310411
- Fixed `before_invoke` being run twice for slash subcommands.
311412
([#2139](https://github.com/Pycord-Development/pycord/pull/2139))
312413
- Fixed `Guild._member_count` sometimes not being set.
313414
([#2145](https://github.com/Pycord-Development/pycord/pull/2145))
314415
- Fixed `Thread.applied_tags` not being updated.
315416
([#2146](https://github.com/Pycord-Development/pycord/pull/2146))
316-
- Fixed type hinting of `author` property of `ApplicationContext` to include
417+
- Fixed type-hinting of `author` property of `ApplicationContext` to include
317418
type-hinting of `User` or `Member`.
318419
([#2148](https://github.com/Pycord-Development/pycord/pull/2148))
319420
- Fixed missing `delete_after` parameter in overload type-hinting for `Webhook.send()`.
@@ -336,7 +437,7 @@ These changes are available on the `master` branch, but have not yet been releas
336437
([#2196](https://github.com/Pycord-Development/pycord/pull/2196))
337438
- Fixed `AttributeError` when running permission checks without the `bot` scope.
338439
([#2113](https://github.com/Pycord-Development/pycord/issues/2113))
339-
- Fixed `Option` not working on bridge commands because `ext.commands.Command` doesn't
440+
- Fixed `Option` not working on bridge commands because `ext.commands.Command` does not
340441
recognize them. ([#2256](https://github.com/Pycord-Development/pycord/pull/2256))
341442
- Fixed offset-aware tasks causing `TypeError` when being prepared.
342443
([#2271](https://github.com/Pycord-Development/pycord/pull/2271))
@@ -436,7 +537,7 @@ These changes are available on the `master` branch, but have not yet been releas
436537
### Fixed
437538

438539
- Fixed bugs in `Page.update_files` where file objects stored in memory were causing an
439-
`AttributeError`, and `io.BytesIO` files didn't send properly more than once.
540+
`AttributeError`, and `io.BytesIO` files did not send properly more than once.
440541
([#1869](https://github.com/Pycord-Development/pycord/pull/1869) &
441542
[#1881](https://github.com/Pycord-Development/pycord/pull/1881))
442543
- Fixed bridge groups missing the `parent` attribute.
@@ -791,9 +892,9 @@ These changes are available on the `master` branch, but have not yet been releas
791892
([#1453](https://github.com/Pycord-Development/pycord/pull/1453))
792893
- Update `thread.members` on `thread.fetch_members`.
793894
([#1464](https://github.com/Pycord-Development/pycord/pull/1464))
794-
- Fix the error when Discord doesn't send the `app_permissions` data in `Interaction`.
895+
- Fix the error when Discord does not send the `app_permissions` data in `Interaction`.
795896
([#1467](https://github.com/Pycord-Development/pycord/pull/1467))
796-
- Fix AttributeError when voice client `play()` function isn't completed yet.
897+
- Fix AttributeError when voice client `play()` function is not completed yet.
797898
([#1360](https://github.com/Pycord-Development/pycord/pull/1360))
798899

799900
## [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.12``
35+
3136
Key Features
3237
------------
3338

discord/_typed_dict.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

discord/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import warnings
3131
from importlib.metadata import PackageNotFoundError, version
3232

33-
from ._typed_dict import TypedDict
33+
from typing_extensions import TypedDict
3434

3535
__all__ = ("__version__", "VersionInfo", "version_info")
3636

0 commit comments

Comments
 (0)