Skip to content

Commit 674b7e9

Browse files
authored
Merge branch 'master' into unittest
2 parents 9069984 + c43727b commit 674b7e9

40 files changed

+767
-340
lines changed

.github/CODE_OF_CONDUCT.md

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

.github/DEVELOPER_CERTIFICATE_OF_ORIGIN.md

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

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

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

.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ci:
22
autoupdate_commit_msg: "chore(pre-commit): pre-commit autoupdate"
3+
autofix_commit_msg: "style(pre-commit): auto fixes from pre-commit.com hooks"
34

45
repos:
56
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -8,7 +9,7 @@ repos:
89
- id: trailing-whitespace
910
- id: end-of-file-fixer
1011
- repo: https://github.com/PyCQA/autoflake
11-
rev: v2.0.2
12+
rev: v2.1.1
1213
hooks:
1314
- id: autoflake
1415
# args:
@@ -18,7 +19,7 @@ repos:
1819
# - --remove-duplicate-keys
1920
# - --remove-unused-variables
2021
- repo: https://github.com/asottile/pyupgrade
21-
rev: v3.3.1
22+
rev: v3.3.2
2223
hooks:
2324
- id: pyupgrade
2425
args: [--py38-plus]
@@ -76,7 +77,7 @@ repos:
7677
# - id: mypy
7778

7879
- repo: https://github.com/pre-commit/mirrors-prettier
79-
rev: v3.0.0-alpha.6
80+
rev: v3.0.0-alpha.9-for-vscode
8081
hooks:
8182
- id: prettier
8283
args: [--prose-wrap=always, --print-width=88]

.readthedocs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ version: 2
22
formats: []
33

44
build:
5-
image: latest
5+
os: ubuntu-22.04
6+
tools:
7+
python: "3.8"
68

79
sphinx:
810
configuration: docs/conf.py
911
fail_on_warning: false
1012
builder: html
1113

1214
python:
13-
version: "3.8"
1415
install:
1516
- method: pip
1617
path: .

CHANGELOG.md

Lines changed: 52 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ These changes are available on the `master` branch, but have not yet been releas
1212

1313
### Added
1414

15+
- Added possibility to start bot via async context manager.
16+
([#1801](https://github.com/Pycord-Development/pycord/pull/1801))
1517
- Added new parameters (`author`, `footer`, `image`, `thumbnail`) to `discord.Embed`.
1618
([#1996](https://github.com/Pycord-Development/pycord/pull/1996))
1719
- Added new events `on_bridge_command`, `on_bridge_command_completion`, and
@@ -27,27 +29,64 @@ These changes are available on the `master` branch, but have not yet been releas
2729
([#1983](https://github.com/Pycord-Development/pycord/pull/1983))
2830
- Added new `application_auto_moderation_rule_create_badge` to `ApplicationFlags`.
2931
([#1992](https://github.com/Pycord-Development/pycord/pull/1992))
32+
- Added `sync_start` argument to `VoiceClient.start_recording()`. This adds silence to
33+
the start of audio recordings.
34+
([#1984](https://github.com/Pycord-Development/pycord/pull/1984))
35+
- Added `custom_message` to AutoModActionMetadata.
36+
([#2029](https://github.com/Pycord-Development/pycord/pull/2029))
37+
- Added support for
38+
[voice messages](https://github.com/discord/discord-api-docs/pull/6082).
39+
([#2016](https://github.com/Pycord-Development/pycord/pull/2016))
40+
- Added the `data` attribute to all
41+
[Raw Event payloads](https://docs.pycord.dev/en/master/api/models.html#events).
42+
([#2023](https://github.com/Pycord-Development/pycord/pull/2023))
43+
- Added and documented missing `AuditLogAction` enums.
44+
([#2030](https://github.com/Pycord-Development/pycord/pull/2030))
45+
- `AuditLogDiff` now supports AutoMod related models.
46+
([#2030](https://github.com/Pycord-Development/pycord/pull/2030))
47+
- Added `Interaction.respond` and `Interaction.edit` as shortcut responses.
48+
([#2026](https://github.com/Pycord-Development/pycord/pull/2026))
49+
- Added `view.parent` which is set when the view was sent by
50+
`interaction.response.send_message`.
51+
([#2036](https://github.com/Pycord-Development/pycord/pull/2036))
52+
- Added functions (`bridge.Bot.walk_bridge_commands` &
53+
`BridgeCommandGroup.walk_commands`) to cycle through all bridge commands and their
54+
children/subcommands.
55+
([#1867](https://github.com/Pycord-Development/pycord/pull/1867))
3056

3157
### Changed
3258

59+
- Suppressed FFMPEG output when recording voice channels.
60+
([#1993](https://github.com/Pycord-Development/pycord/pull/1993))
3361
- Changed file-upload size limit from 8 MB to 25 MB accordingly.
3462
([#2014](https://github.com/Pycord-Development/pycord/pull/2014))
63+
- `Interaction.channel` is received from the gateway, so it can now be `DMChannel` and
64+
`GroupChannel`. ([#2025](https://github.com/Pycord-Development/pycord/pull/2025))
65+
- `DMChannel.recipients` can now be `None`
66+
([#2025](https://github.com/Pycord-Development/pycord/pull/2025))
67+
- Store `view.message` on receiving Interaction for a component.
68+
([#2036](https://github.com/Pycord-Development/pycord/pull/2036))
69+
- Attributes shared between ext and slash commands are now dynamically fetched on bridge
70+
commands. ([#1867](https://github.com/Pycord-Development/pycord/pull/1867))
3571

3672
### Removed
3773

3874
- Removed `@client.once()` in favour of `@client.listen(once=True)`.
3975
([#1957](https://github.com/Pycord-Development/pycord/pull/1957))
40-
41-
### Changed
42-
43-
- Suppressed FFMPEG output when recording voice channels.
44-
([#1993](https://github.com/Pycord-Development/pycord/pull/1993))
76+
- Removed `view.message` being set when the view was sent by
77+
`interaction.response.send_message`.
78+
([#2036](https://github.com/Pycord-Development/pycord/pull/2036))
4579

4680
### Fixed
4781

4882
- Fixed `AttributeError` caused by
4983
[#1957](https://github.com/Pycord-Development/pycord/pull/1957) when using listeners
5084
in cogs. ([#1989](https://github.com/Pycord-Development/pycord/pull/1989))
85+
- Editing a webhook message if the thread is a forum post or if the thread is a private
86+
thread ([#1981](https://github.com/Pycord-Development/pycord/pull/1981))
87+
- Fixed `View.message` not being set when view is sent using webhooks, including
88+
`Interaction.followup.send` or when a message is edited.
89+
([#1997](https://github.com/Pycord-Development/pycord/pull/1997))
5190
- Fixed `None` being handled incorrectly for avatar in `ClientUser.edit`.
5291
([#1994](https://github.com/Pycord-Development/pycord/pull/1994))
5392
- Fixed scheduled events breaking when changing the location from external to a channel.
@@ -56,6 +95,14 @@ These changes are available on the `master` branch, but have not yet been releas
5695
working. ([#1999](https://github.com/Pycord-Development/pycord/pull/1999))
5796
- Fixed `TypeError` being raised when passing `name` argument to bridge groups.
5897
([#2000](https://github.com/Pycord-Development/pycord/pull/2000))
98+
- Fixed `TypeError` in AutoModRule.
99+
([#2029](https://github.com/Pycord-Development/pycord/pull/2029))
100+
- Reflecting the api for gettings bans correctly.
101+
([#1922](https://github.com/Pycord-Development/pycord/pull/1922))
102+
- Restored functionality for overriding default `on_application_command_error` via
103+
listeners. ([#2044](https://github.com/Pycord-Development/pycord/pull/2044))
104+
- Fixed unloading of cogs having bridge commands.
105+
([#2048](https://github.com/Pycord-Development/pycord/pull/2048))
59106

60107
## [2.4.1] - 2023-03-20
61108

File renamed without changes.

0 commit comments

Comments
 (0)