Skip to content

Commit

Permalink
Merge branch 'master' into burst_react
Browse files Browse the repository at this point in the history
Signed-off-by: UK <[email protected]>
  • Loading branch information
NeloBlivion authored May 6, 2023
2 parents 6ed3b40 + ea3e3db commit ad9239b
Show file tree
Hide file tree
Showing 59 changed files with 1,296 additions and 380 deletions.
120 changes: 0 additions & 120 deletions .github/CODE_OF_CONDUCT.md

This file was deleted.

37 changes: 0 additions & 37 deletions .github/DEVELOPER_CERTIFICATE_OF_ORIGIN.md

This file was deleted.

1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ci:
autoupdate_commit_msg: "chore(pre-commit): pre-commit autoupdate"
autofix_commit_msg: "style(pre-commit): auto fixes from pre-commit.com hooks"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -8,7 +9,7 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.1
rev: v2.1.1
hooks:
- id: autoflake
# args:
Expand All @@ -18,7 +19,7 @@ repos:
# - --remove-duplicate-keys
# - --remove-unused-variables
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.3.2
hooks:
- id: pyupgrade
args: [--py38-plus]
Expand All @@ -27,7 +28,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black
args: [--safe, --quiet]
Expand Down Expand Up @@ -76,7 +77,7 @@ repos:
# - id: mypy

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
rev: v3.0.0-alpha.9-for-vscode
hooks:
- id: prettier
args: [--prose-wrap=always, --print-width=88]
Expand Down
5 changes: 3 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ version: 2
formats: []

build:
image: latest
os: ubuntu-22.04
tools:
python: "3.8"

sphinx:
configuration: docs/conf.py
fail_on_warning: false
builder: html

python:
version: "3.8"
install:
- method: pip
path: .
Expand Down
96 changes: 94 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,105 @@ These changes are available on the `master` branch, but have not yet been releas

### Added

- Added possibility to start bot via async context manager.
([#1801](https://github.com/Pycord-Development/pycord/pull/1801))
- Added new parameters (`author`, `footer`, `image`, `thumbnail`) to `discord.Embed`.
([#1996](https://github.com/Pycord-Development/pycord/pull/1996))
- Added new events `on_bridge_command`, `on_bridge_command_completion`, and
`on_bridge_command_error`.
([#1916](https://github.com/Pycord-Development/pycord/pull/1916))
- Added the `@client.once()` decorator, which serves as a one-time event listener.
([#1940](https://github.com/Pycord-Development/pycord/pull/1940))
- Added support for text-related features in `StageChannel`.
([#1936](https://github.com/Pycord-Development/pycord/pull/1936))
- Added support for one-time event listeners in `@client.listen()`.
([#1957](https://github.com/Pycord-Development/pycord/pull/1957))
- Added `current_page` argument to Paginator.update().
([#1983](https://github.com/Pycord-Development/pycord/pull/1983))
- Added new `application_auto_moderation_rule_create_badge` to `ApplicationFlags`.
([#1992](https://github.com/Pycord-Development/pycord/pull/1992))
- Added `sync_start` argument to `VoiceClient.start_recording()`. This adds silence to
the start of audio recordings.
([#1984](https://github.com/Pycord-Development/pycord/pull/1984))
- Added `custom_message` to AutoModActionMetadata.
([#2029](https://github.com/Pycord-Development/pycord/pull/2029))
- Added support for
[voice messages](https://github.com/discord/discord-api-docs/pull/6082).
([#2016](https://github.com/Pycord-Development/pycord/pull/2016))
- Added the `data` attribute to all
[Raw Event payloads](https://docs.pycord.dev/en/master/api/models.html#events).
([#2023](https://github.com/Pycord-Development/pycord/pull/2023))
- Added and documented missing `AuditLogAction` enums.
([#2030](https://github.com/Pycord-Development/pycord/pull/2030))
- `AuditLogDiff` now supports AutoMod related models.
([#2030](https://github.com/Pycord-Development/pycord/pull/2030))
- Added `Interaction.respond` and `Interaction.edit` as shortcut responses.
([#2026](https://github.com/Pycord-Development/pycord/pull/2026))
- Added `view.parent` which is set when the view was sent by
`interaction.response.send_message`.
([#2036](https://github.com/Pycord-Development/pycord/pull/2036))

### Changed

- Suppressed FFMPEG output when recording voice channels.
([#1993](https://github.com/Pycord-Development/pycord/pull/1993))
- Changed file-upload size limit from 8 MB to 25 MB accordingly.
([#2014](https://github.com/Pycord-Development/pycord/pull/2014))
- `Interaction.channel` is received from the gateway, so it can now be `DMChannel` and
`GroupChannel`. ([#2025](https://github.com/Pycord-Development/pycord/pull/2025))
- `DMChannel.recipients` can now be `None`
([#2025](https://github.com/Pycord-Development/pycord/pull/2025))
- Store `view.message` on receiving Interaction for a component.
([#2036](https://github.com/Pycord-Development/pycord/pull/2036))

### Removed

- Removed `@client.once()` in favour of `@client.listen(once=True)`.
([#1957](https://github.com/Pycord-Development/pycord/pull/1957))
- Removed `view.message` being set when the view was sent by
`interaction.response.send_message`.
([#2036](https://github.com/Pycord-Development/pycord/pull/2036))

### Fixed

- Fixed `AttributeError` caused by
[#1957](https://github.com/Pycord-Development/pycord/pull/1957) when using listeners
in cogs. ([#1989](https://github.com/Pycord-Development/pycord/pull/1989))
- Editing a webhook message if the thread is a forum post or if the thread is a private
thread ([#1981](https://github.com/Pycord-Development/pycord/pull/1981))
- Fixed `View.message` not being set when view is sent using webhooks, including
`Interaction.followup.send` or when a message is edited.
([#1997](https://github.com/Pycord-Development/pycord/pull/1997))
- Fixed `None` being handled incorrectly for avatar in `ClientUser.edit`.
([#1994](https://github.com/Pycord-Development/pycord/pull/1994))
- Fixed scheduled events breaking when changing the location from external to a channel.
([#1998](https://github.com/Pycord-Development/pycord/pull/1998))
- Fixed boolean converter breaking for bridge commands. Fix bridge command Options not
working. ([#1999](https://github.com/Pycord-Development/pycord/pull/1999))
- Fixed `TypeError` being raised when passing `name` argument to bridge groups.
([#2000](https://github.com/Pycord-Development/pycord/pull/2000))
- Fixed `TypeError` in AutoModRule.
([#2029](https://github.com/Pycord-Development/pycord/pull/2029))
- Reflecting the api for gettings bans correctly.
([#1922](https://github.com/Pycord-Development/pycord/pull/1922))

## [2.4.1] - 2023-03-20

### Changed

- Updated the values of the `Color.embed_background()` classmethod to correspond with
new theme colors in the app.
([#1931](https://github.com/Pycord-Development/pycord/pull/1931))

### Fixed

- Fixed the type-hinting of `SlashCommandGroup.walk_commands()` to reflect actual
behavior. ([#1852](https://github.com/Pycord-Development/pycord/pull/1852))
behavior. ([#1838](https://github.com/Pycord-Development/pycord/pull/1838))
- Fixed the voice ip discovery due to the recent
[announced change](https://discord.com/channels/613425648685547541/697138785317814292/1080623873629884486).
([#1955](https://github.com/Pycord-Development/pycord/pull/1955))
- Fixed `reason` being passed to wrong method in `guild.create_auto_moderation_rule`.
([#1960](https://github.com/Pycord-Development/pycord/pull/1960))

## [2.4.0] - 2023-02-10

Expand Down Expand Up @@ -530,7 +621,8 @@ These changes are available on the `master` branch, but have not yet been releas
- Fix py3.10 UnionType checks issue.
([#1240](https://github.com/Pycord-Development/pycord/pull/1240))

[unreleased]: https://github.com/Pycord-Development/pycord/compare/v2.4.0...HEAD
[unreleased]: https://github.com/Pycord-Development/pycord/compare/v2.4.1...HEAD
[2.4.1]: https://github.com/Pycord-Development/pycord/compare/v2.4.0...v2.4.1
[2.4.0]: https://github.com/Pycord-Development/pycord/compare/v2.3.3...v2.4.0
[2.3.3]: https://github.com/Pycord-Development/pycord/compare/v2.3.2...v2.3.3
[2.3.2]: https://github.com/Pycord-Development/pycord/compare/v2.3.1...v2.3.2
Expand Down
File renamed without changes.
7 changes: 5 additions & 2 deletions discord/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
DMChannel,
GroupChannel,
PartialMessageable,
StageChannel,
TextChannel,
VoiceChannel,
)
Expand All @@ -97,7 +98,7 @@
from .user import ClientUser

PartialMessageableChannel = Union[
TextChannel, VoiceChannel, Thread, DMChannel, PartialMessageable
TextChannel, VoiceChannel, StageChannel, Thread, DMChannel, PartialMessageable
]
MessageableChannel = Union[PartialMessageableChannel, GroupChannel]
SnowflakeTime = Union["Snowflake", datetime]
Expand Down Expand Up @@ -1292,6 +1293,8 @@ class Messageable:
The following implement this ABC:
- :class:`~discord.TextChannel`
- :class:`~discord.VoiceChannel`
- :class:`~discord.StageChannel`
- :class:`~discord.DMChannel`
- :class:`~discord.GroupChannel`
- :class:`~discord.User`
Expand Down Expand Up @@ -1478,7 +1481,7 @@ async def send(
.. versionadded:: 2.0
suppress: :class:`bool`
Whether to suppress embeds for the message.
slient: :class:`bool`
silent: :class:`bool`
Whether to suppress push and desktop notifications for the message.
.. versionadded:: 2.4
Expand Down
Loading

0 comments on commit ad9239b

Please sign in to comment.