Browse Source

Fix wrong variable being returned in audit logs

pull/10109/head
z03h 3 years ago
committed by dolfies
parent
commit
861cd025f2
  1. 4
      .github/workflows/lint.yml
  2. 2
      discord/guild.py

4
.github/workflows/lint.yml

@ -33,11 +33,7 @@ jobs:
- name: Run Pyright
uses: jakebailey/pyright-action@v1
with:
<<<<<<< HEAD
version: '1.1.235'
=======
version: '1.1.242'
>>>>>>> 5536ef1e (Update to pyright 1.1.242)
warnings: false
no-comments: ${{ matrix.python-version != '3.x' }}

2
discord/guild.py

@ -3414,7 +3414,7 @@ class Guild(Hashable):
before = Object(id=int(entries[-1]['id']))
return data.get('users', []), entries, before, limit
return data, entries, before, limit
async def _after_strategy(retrieve, after, limit):
after_id = after.id if after else None

Loading…
Cancel
Save