Skip to content

Commit 74def39

Browse files
authored
Merge branch 'master' into gw-caps
2 parents 7898914 + 681f6be commit 74def39

15 files changed

Lines changed: 42 additions & 57 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
- name: "Checkout repository"
2929
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3030
- name: "Initialize CodeQL"
31-
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
31+
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
3232
with:
3333
languages: ${{ matrix.language }}
3434
- name: "Autobuild"
35-
uses: github/codeql-action/autobuild@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
35+
uses: github/codeql-action/autobuild@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
3636
- name: "Perform CodeQL Analysis"
37-
uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
37+
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6

.github/workflows/pr-auto-approve.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,10 @@ permissions:
1313
jobs:
1414
auto-approve:
1515
runs-on: ubuntu-latest
16-
# Bot IDs:
17-
# - renovate[bot]: 29139614
18-
# - dependabot[bot]: 49699333
19-
# - pre-commit-ci[bot]: 66853113
20-
# - crowdin-bot: 58779643
21-
# - NyuwBot: 106019021
2216
if:
2317
${{
24-
github.event.pull_request.user.id == 29139614 ||
25-
github.event.pull_request.user.id == 49699333 ||
26-
github.event.pull_request.user.id == 66853113 ||
27-
github.event.pull_request.user.id == 58779643 ||
28-
github.event.pull_request.user.id == 106019021
18+
contains(format(',{0},', vars.AUTOMATED_DEPENDENCY_BOT_IDS), format(',{0},', github.event.pull_request.user.id)) ||
19+
contains(format(',{0},', vars.AUTOMATED_DEPENDENCY_BOT_IDS), format(', {0},', github.event.pull_request.user.id))
2920
}}
3021
continue-on-error: true
3122
steps:

CHANGELOG.md

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

1313
### Added
1414

15+
- Added `Member.vr_status` property.
16+
([#3328](https://github.com/Pycord-Development/pycord/pull/3328))
17+
1518
### Changed
1619

1720
### Fixed
1821

1922
- Fix `TypeError` when accessing `ApplicationCommand.guild_only` or
2023
`SlashCommandGroup.guild_only` when `contexts` is `None`.
2124
([#3320](https://github.com/Pycord-Development/pycord/pull/3320))
25+
- Fix `SyntaxWarning` about `return` in a `finally` block raised on Python 3.14+
26+
([#3332](https://github.com/Pycord-Development/pycord/pull/3334))
2227

2328
### Deprecated
2429

@@ -1829,7 +1834,7 @@ These changes are available on the `master` branch, but have not yet been releas
18291834
[unreleased]: https://github.com/Pycord-Development/pycord/compare/v2.8.1...HEAD
18301835
[2.8.1]: https://github.com/Pycord-Development/pycord/compare/v2.8.0...v2.8.1
18311836
[2.8.0]: https://github.com/Pycord-Development/pycord/compare/v2.7.2...v2.8.0
1832-
[2.8.0rc1]: https://github.com/Pycord-Development/pycord/compare/v2.8.0rc1...v2.8.0rc2
1837+
[2.8.0rc2]: https://github.com/Pycord-Development/pycord/compare/v2.8.0rc1...v2.8.0rc2
18331838
[2.8.0rc1]: https://github.com/Pycord-Development/pycord/compare/v2.7.2...v2.8.0rc1
18341839
[2.7.2]: https://github.com/Pycord-Development/pycord/compare/v2.7.1...v2.7.2
18351840
[2.7.1]: https://github.com/Pycord-Development/pycord/compare/v2.7.0...v2.7.1

discord/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2303,7 +2303,7 @@ async def create_emoji(
23032303
The emoji name. Must be at least 2 characters.
23042304
image: :class:`bytes`
23052305
The :term:`py:bytes-like object` representing the image data to use.
2306-
Only JPG, PNG and GIF images are supported.
2306+
Only JPEG, PNG, GIF, WebP and AVIF images are supported.
23072307
23082308
Raises
23092309
-------

discord/gateway.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ def run(self) -> None:
169169

170170
try:
171171
f.result()
172-
except Exception:
172+
except BaseException:
173173
_log.exception(
174174
"An error occurred while stopping the gateway. Ignoring."
175175
)
176176
finally:
177177
self.stop()
178-
return
178+
return
179179

180180
data = self.get_payload()
181181
_log.debug(self.msg, self.shard_id, data["d"])

discord/guild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3221,7 +3221,7 @@ async def create_custom_emoji(
32213221
The emoji name. Must be at least 2 characters.
32223222
image: :class:`bytes`
32233223
The :term:`py:bytes-like object` representing the image data to use.
3224-
Only JPG, PNG and GIF images are supported.
3224+
Only JPEG, PNG, GIF, WebP and AVIF images are supported.
32253225
roles: List[:class:`Role`]
32263226
A :class:`list` of :class:`Role`\s that can use this emoji. Leave empty to make it available to everyone.
32273227
reason: Optional[:class:`str`]

discord/member.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,14 @@ def desktop_status(self) -> Status:
561561
"""The member's status on the desktop client, if applicable."""
562562
return try_enum(Status, self._client_status.get("desktop", "offline"))
563563

564+
@property
565+
def vr_status(self) -> Status:
566+
"""The member's status set for an active virtual reality application session, if applicable.
567+
568+
.. versionadded:: 2.9
569+
"""
570+
return try_enum(Status, self._client_status.get("vr", "offline"))
571+
564572
@property
565573
def web_status(self) -> Status:
566574
"""The member's status on the web client, if applicable."""

discord/types/activity.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class ClientStatus(TypedDict, total=False):
4747
desktop: str
4848
mobile: str
4949
web: str
50+
vr: str
5051

5152

5253
class ActivityTimestamps(TypedDict, total=False):

discord/types/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class Attachment(TypedDict):
8484
ephemeral: NotRequired[bool]
8585

8686

87-
MessageActivityType = Literal[1, 2, 3, 5]
87+
MessageActivityType = Literal[1, 2, 3, 5, 6]
8888

8989

9090
class MessageActivity(TypedDict):

discord/ui/media_gallery.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ class MediaGallery(ViewItem[V]):
5555
The initial items contained in this gallery, up to 10.
5656
id: Optional[:class:`int`]
5757
The gallery's ID.
58-
59-
Attributes
60-
----------
61-
items: List[:class:`~discord.MediaGalleryItem`]
62-
The list of media items in this gallery.
6358
"""
6459

6560
__item_repr_attributes__: tuple[str, ...] = (

0 commit comments

Comments
 (0)