Skip to content

Commit 7a82b10

Browse files
committed
Merge remote-tracking branch 'upstream/master' into docs/permissions-migration
2 parents 0db964e + a24e6b1 commit 7a82b10

File tree

15 files changed

+104
-31
lines changed

15 files changed

+104
-31
lines changed

.github/actions/setup-env/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ runs:
2828
using: composite
2929
steps:
3030
- name: Download uv lock
31-
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
31+
uses: actions/cache/restore@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
3232
if: ${{ inputs.use-cached-uv-lock != 'false' }}
3333
id: restore-uv-lock
3434
with:
@@ -41,7 +41,7 @@ runs:
4141

4242
- name: Set up uv with Python ${{ inputs.python-version }}
4343
id: setup-python
44-
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
44+
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
4545
with:
4646
version: '0.9.2'
4747
enable-cache: true

.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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
# https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/making-authenticated-api-requests-with-a-github-app-in-a-github-actions-workflow
2525
- name: Generate app token
2626
id: generate_token
27-
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
27+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
2828
with:
2929
app-id: ${{ secrets.BOT_APP_ID }}
3030
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
3131

32-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
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@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
129+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
130130
with:
131131
persist-credentials: false
132132

133133
- name: Cache pip cache
134-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
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@91fd7d7cf70ae1dee9f4f44e7dfa5d1073fe6623 # v1.0.11
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
322+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
323323
with:
324324
persist-credentials: false
325325

.github/workflows/release.yaml

Lines changed: 9 additions & 9 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121
with:
2222
fetch-depth: '0'
2323
persist-credentials: false
@@ -46,7 +46,7 @@ jobs:
4646
echo -e "\n</details>\n" >> $GITHUB_STEP_SUMMARY
4747
4848
- name: Upload artifact
49-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
49+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
5050
with:
5151
name: dist
5252
path: dist/
@@ -66,7 +66,7 @@ jobs:
6666

6767
steps:
6868
- name: Download build artifact
69-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
69+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
7070
with:
7171
name: dist
7272
path: dist/
@@ -108,7 +108,7 @@ jobs:
108108

109109
steps:
110110
- name: Download build artifact
111-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
111+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
112112
with:
113113
name: dist
114114
path: dist/
@@ -122,7 +122,7 @@ jobs:
122122
echo "docs_version=${GIT_TAG//./-}" >> $GITHUB_OUTPUT
123123
124124
- name: Create Release
125-
uses: softprops/action-gh-release@5be0e66d93ac7ed76da52eca8bb058f665c3a5fe # v2.4.2
125+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
126126
with:
127127
files: dist/*
128128
draft: true
@@ -148,7 +148,7 @@ jobs:
148148

149149
steps:
150150
- name: Download build artifact
151-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
151+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
152152
with:
153153
name: dist
154154
path: dist/
@@ -173,12 +173,12 @@ jobs:
173173
# https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/making-authenticated-api-requests-with-a-github-app-in-a-github-actions-workflow
174174
- name: Generate app token
175175
id: generate_token
176-
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
176+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
177177
with:
178178
app-id: ${{ secrets.BOT_APP_ID }}
179179
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
180180

181-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
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/1438.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add :meth:`Guild.fetch_role_member_counts` to retrieve member counts for each :class:`Role` without requiring members to be cached.

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/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/ext/commands/base_core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ def default_member_permissions(
711711
administrator: bool = ...,
712712
attach_files: bool = ...,
713713
ban_members: bool = ...,
714+
bypass_slowmode: bool = ...,
714715
change_nickname: bool = ...,
715716
connect: bool = ...,
716717
create_events: bool = ...,

0 commit comments

Comments
 (0)