Skip to content

Commit 590b26e

Browse files
committed
Merge remote-tracking branch 'upstream/master' into feature/dave
2 parents 209730a + 0ab8f34 commit 590b26e

File tree

17 files changed

+84
-47
lines changed

17 files changed

+84
-47
lines changed

.github/workflows/changelog.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
if: contains(github.event.pull_request.labels.*.name, 'skip news') != true
2323

2424
steps:
25-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626
with:
2727
# towncrier needs a non-shallow clone
2828
fetch-depth: '0'

.github/workflows/create-release-pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
app-id: ${{ secrets.BOT_APP_ID }}
3030
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
3131

32-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
32+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3333
with:
3434
token: ${{ steps.generate_token.outputs.token }}
3535
persist-credentials: false
@@ -61,7 +61,7 @@ jobs:
6161
git commit -a -m "docs: build changelog"
6262
6363
- name: Create pull request
64-
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
64+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
6565
with:
6666
token: ${{ steps.generate_token.outputs.token }}
6767
branch: auto/release-v${{ inputs.version }}

.github/workflows/lint-test.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
env:
4646
UV_RESOLUTION: highest
4747
steps:
48-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
48+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4949
with:
5050
persist-credentials: false
5151

@@ -56,7 +56,7 @@ jobs:
5656
use-cached-uv-lock: 'false' # we don't need the lock here, we will automatically download it below
5757

5858
- name: Restore uv lock
59-
uses: actions/cache/restore@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
59+
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
6060
id: cache-uv-lock
6161
with:
6262
key: uv-lock-resolved-${{ env.UV_RESOLUTION }}
@@ -79,7 +79,7 @@ jobs:
7979
UV_LOCKED: 0
8080
run: uv lock --refresh
8181

82-
- uses: actions/cache/save@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
82+
- uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
8383
if: steps.lock-uv-deps.outcome == 'success'
8484
name: upload-uv-lock
8585
with:
@@ -100,7 +100,7 @@ jobs:
100100
pyright-sessions: ${{ steps.set-matrix.outputs.pyright-sessions }}
101101
test-sessions: ${{ steps.set-matrix.outputs.test-sessions }}
102102
steps:
103-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
103+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
104104
with:
105105
persist-credentials: false
106106
- name: Set up environment
@@ -126,20 +126,20 @@ jobs:
126126
RUFF_OUTPUT_FORMAT: github
127127
steps:
128128

129-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
129+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
130130
with:
131131
persist-credentials: false
132132

133133
- name: Cache pip cache
134-
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
134+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
135135
with:
136136
key: ${{ runner.os }}-prek-pip-${{ hashFiles('**/pyproject.toml') }}
137137
path: ~/.cache/pip
138138
lookup-only: true
139139

140140
- name: Run prek
141141
id: prek
142-
uses: j178/prek-action@9d6a3097e0c1865ecce00cfb89fe80f2ee91b547 # v1.0.12
142+
uses: j178/prek-action@0bb87d7f00b0c99306c8bcb8b8beba1eb581c037 # v1.1.1
143143
# given the interoperability and the nature of prek, we stay unpinned for now
144144
# note that this action by default uses the latest version of prek
145145
# this is exactly how the pre-commit action worked, and we never had any issues
@@ -154,7 +154,7 @@ jobs:
154154
- lock-dependencies
155155
- lint
156156
steps:
157-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
157+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
158158
with:
159159
fetch-depth: '0'
160160
persist-credentials: false
@@ -181,7 +181,7 @@ jobs:
181181
fail-fast: false
182182
continue-on-error: ${{ matrix.session.experimental }}
183183
steps:
184-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
184+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
185185
with:
186186
persist-credentials: false
187187

@@ -213,7 +213,7 @@ jobs:
213213
nox --install-only
214214
215215
- name: Run pyright (Linux)
216-
uses: jakebailey/pyright-action@6cabc0f01c4994be48fd45cd9dbacdd6e1ee6e5e # v2.3.3
216+
uses: jakebailey/pyright-action@8ec14b5cfe41f26e5f41686a31eb6012758217ef # v3.0.2
217217
id: pyright-linux
218218
with:
219219
version: PATH
@@ -224,7 +224,7 @@ jobs:
224224
extra-args: ${{join(matrix.session.paths, ' ')}}
225225

226226
- name: Run pyright (Windows)
227-
uses: jakebailey/pyright-action@6cabc0f01c4994be48fd45cd9dbacdd6e1ee6e5e # v2.3.3
227+
uses: jakebailey/pyright-action@8ec14b5cfe41f26e5f41686a31eb6012758217ef # v3.0.2
228228
if: always() && (steps.pyright-linux.outcome == 'success' || steps.pyright-linux.outcome == 'failure')
229229
with:
230230
version: PATH
@@ -242,7 +242,7 @@ jobs:
242242
- lock-dependencies
243243
- lint
244244
steps:
245-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
245+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
246246
with:
247247
fetch-depth: '0'
248248
persist-credentials: false
@@ -273,7 +273,7 @@ jobs:
273273
- lock-dependencies
274274
- lint
275275
steps:
276-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
276+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
277277
with:
278278
persist-credentials: false
279279

@@ -319,7 +319,7 @@ jobs:
319319
env:
320320
NOXSESSION: ${{ matrix.session.name }}
321321
steps:
322-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
322+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
323323
with:
324324
persist-credentials: false
325325

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121
with:
2222
fetch-depth: '0'
2323
persist-credentials: false
@@ -178,7 +178,7 @@ jobs:
178178
app-id: ${{ secrets.BOT_APP_ID }}
179179
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
180180

181-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
181+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
182182
with:
183183
token: ${{ steps.generate_token.outputs.token }}
184184
persist-credentials: false
@@ -200,7 +200,7 @@ jobs:
200200
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
201201
202202
- name: Create pull request
203-
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
203+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
204204
with:
205205
token: ${{ steps.generate_token.outputs.token }}
206206
branch: auto/dev-v${{ steps.update-version.outputs.new_version }}

changelog/1484.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add :attr:`.Permissions.bypass_slowmode` which allows a user to bypass slowmode. Note that bot users are not impacted by slowmode regardless of this permission.

changelog/1485.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update descriptions of ``slowmode_delay`` fields and :meth:`Guild.create_custom_emoji`/:meth:`~Guild.create_sticker`/:meth:`~Guild.create_scheduled_event` methods to account for the permission split on 2026-02-23.

changelog/1487.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add :meth:`Colour.from_hex` to create :class:`Colour` from hex color codes (``#RRGGBB``).

changelog/1499.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Support PyNaCl ``v1.6.x``.

disnake/abc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ async def set_permissions(
865865
administrator: bool | None = ...,
866866
attach_files: bool | None = ...,
867867
ban_members: bool | None = ...,
868+
bypass_slowmode: bool | None = ...,
868869
change_nickname: bool | None = ...,
869870
connect: bool | None = ...,
870871
create_events: bool | None = ...,

disnake/channel.py

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ class TextChannel(disnake.abc.Messageable, disnake.abc.GuildChannel, Hashable):
208208
in this channel.
209209
210210
A value of `0` denotes that it is disabled.
211-
Bots, and users with :attr:`~Permissions.manage_channels` or
212-
:attr:`~Permissions.manage_messages` permissions, bypass slowmode.
211+
Bots, and users with :attr:`~Permissions.bypass_slowmode` permissions, bypass slowmode.
213212
214213
See also :attr:`default_thread_slowmode_delay`.
215214
@@ -218,8 +217,7 @@ class TextChannel(disnake.abc.Messageable, disnake.abc.GuildChannel, Hashable):
218217
in newly created threads in this channel.
219218
220219
A value of ``0`` denotes that it is disabled.
221-
Bots, and users with :attr:`~Permissions.manage_channels` or
222-
:attr:`~Permissions.manage_messages`, bypass slowmode.
220+
Bots, and users with :attr:`~Permissions.bypass_slowmode` permissions, bypass slowmode.
223221
224222
.. versionadded:: 2.8
225223
@@ -1350,9 +1348,10 @@ class VoiceChannel(disnake.abc.Messageable, VocalGuildChannel):
13501348
13511349
slowmode_delay: :class:`int`
13521350
The number of seconds a member must wait between sending messages
1353-
in this channel. A value of `0` denotes that it is disabled.
1354-
Bots, and users with :attr:`~Permissions.manage_channels` or
1355-
:attr:`~Permissions.manage_messages`, bypass slowmode.
1351+
in this channel.
1352+
1353+
A value of `0` denotes that it is disabled.
1354+
Bots, and users with :attr:`~Permissions.bypass_slowmode` permissions, bypass slowmode.
13561355
13571356
.. versionadded:: 2.3
13581357
@@ -2036,9 +2035,10 @@ class StageChannel(disnake.abc.Messageable, VocalGuildChannel):
20362035
20372036
slowmode_delay: :class:`int`
20382037
The number of seconds a member must wait between sending messages
2039-
in this channel. A value of `0` denotes that it is disabled.
2040-
Bots, and users with :attr:`~Permissions.manage_channels` or
2041-
:attr:`~Permissions.manage_messages`, bypass slowmode.
2038+
in this channel.
2039+
2040+
A value of `0` denotes that it is disabled.
2041+
Bots, and users with :attr:`~Permissions.bypass_slowmode` permissions, bypass slowmode.
20422042
20432043
.. versionadded:: 2.9
20442044
@@ -3981,8 +3981,7 @@ class ForumChannel(ThreadOnlyGuildChannel):
39813981
in this channel.
39823982
39833983
A value of ``0`` denotes that it is disabled.
3984-
Bots, and users with :attr:`~Permissions.manage_channels` or
3985-
:attr:`~Permissions.manage_messages`, bypass slowmode.
3984+
Bots, and users with :attr:`~Permissions.bypass_slowmode` permissions, bypass slowmode.
39863985
39873986
See also :attr:`default_thread_slowmode_delay`.
39883987
@@ -3991,8 +3990,7 @@ class ForumChannel(ThreadOnlyGuildChannel):
39913990
in newly created threads in this channel.
39923991
39933992
A value of ``0`` denotes that it is disabled.
3994-
Bots, and users with :attr:`~Permissions.manage_channels` or
3995-
:attr:`~Permissions.manage_messages`, bypass slowmode.
3993+
Bots, and users with :attr:`~Permissions.bypass_slowmode` permissions, bypass slowmode.
39963994
39973995
.. versionadded:: 2.6
39983996
@@ -4418,8 +4416,7 @@ class MediaChannel(ThreadOnlyGuildChannel):
44184416
in this channel.
44194417
44204418
A value of ``0`` denotes that it is disabled.
4421-
Bots, and users with :attr:`~Permissions.manage_channels` or
4422-
:attr:`~Permissions.manage_messages`, bypass slowmode.
4419+
Bots, and users with :attr:`~Permissions.bypass_slowmode` permissions, bypass slowmode.
44234420
44244421
See also :attr:`default_thread_slowmode_delay`.
44254422
@@ -4428,8 +4425,7 @@ class MediaChannel(ThreadOnlyGuildChannel):
44284425
in newly created threads in this channel.
44294426
44304427
A value of ``0`` denotes that it is disabled.
4431-
Bots, and users with :attr:`~Permissions.manage_channels` or
4432-
:attr:`~Permissions.manage_messages`, bypass slowmode.
4428+
Bots, and users with :attr:`~Permissions.bypass_slowmode` permissions, bypass slowmode.
44334429
44344430
default_sort_order: :class:`ThreadSortOrder` | :data:`None`
44354431
The default sort order of threads in this channel.

0 commit comments

Comments
 (0)