Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
de49cf5
fix: client.run not allowing bots to start
DA-344 Nov 11, 2024
4fe559f
chore: Update more things
DA-344 Nov 11, 2024
74863c5
chore: Move the loop update to .start
DA-344 Nov 11, 2024
72f904c
chore: Added logging and updated `run` to specify the arguments
DA-344 Nov 11, 2024
7e7f1e9
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 11, 2024
f289f74
chore: Updated CHANGELOG
DA-344 Nov 11, 2024
2195dc6
Merge changes from remote
DA-344 Nov 11, 2024
3d235ee
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 11, 2024
07ccbc9
dot
DA-344 Nov 11, 2024
ef835dc
Merge branch 'master' into fix/client-run
Lulalaby Nov 11, 2024
5e8a322
Update docstrings
DA-344 Nov 19, 2024
de5156c
Update docstrings
DA-344 Nov 19, 2024
b830a94
merge 'master' from https://github.com/Pycord-Development/pycord
DA-344 Nov 19, 2024
88484e2
chore: Update Client.__aenter__ and Client.run
DA-344 Dec 11, 2024
ba81ebe
feat: Add operations container to Client docstring
DA-344 Dec 11, 2024
f5f0085
chore: merge branch 'master' from Pycord-Development/pycord
DA-344 Dec 11, 2024
28fab35
chore: Update Client.close to prevent double closing and race conditions
DA-344 Dec 11, 2024
c378d41
fix: Indentation error
DA-344 Dec 11, 2024
e818a1c
Merge branch 'master' into fix/client-run
Dorukyum Jan 31, 2025
e963341
chore: Update Client.close and Client.clear to correctly update and u…
DA-344 Feb 1, 2025
e19e029
Merge branch 'master' into fix/client-run
DA-344 Mar 20, 2025
abf0ca0
Merge branch 'master' of https://github.com/Pycord-Development/pycord…
DA-344 Mar 23, 2025
81541a3
Merge branch 'master' into fix/client-run
DA-344 Apr 18, 2025
2735849
Merge branch 'master' into fix/client-run
DA-344 May 10, 2025
c88cac8
merge master
DA-344 Jun 7, 2025
0bc5014
chore: make loop a property
DA-344 Jun 7, 2025
e60bda3
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 7, 2025
cb05d05
chore: make cleanup be done only when necessary
DA-344 Jun 7, 2025
81e61b8
Merge branch 'fix/client-run' of https://github.com/DA-344/pycord int…
DA-344 Jun 7, 2025
3f0783a
change from = MISSING to = None
DA-344 Jun 16, 2025
930a0c6
fix HTTPClient using loop instead of _loop
DA-344 Jul 26, 2025
63b36f8
merge master to fix/client-run
DA-344 Jul 26, 2025
283f02f
Merge branch 'master' into fix/client-run
Paillat-dev Aug 6, 2025
c58fb51
Merge branch 'master' of https://github.com/Pycord-Development/pycord…
DA-344 Aug 30, 2025
11a32b1
fix attribute errors
DA-344 Aug 30, 2025
5a8c7d0
Merge branch 'master' into fix/client-run
DA-344 Aug 31, 2025
83c8517
fix ext.tasks
DA-344 Aug 31, 2025
a81fe27
docs and None
DA-344 Aug 31, 2025
f4d3371
Merge branch 'master' into fix/client-run
Lulalaby Sep 1, 2025
015bc45
fix: changelog position
Lulalaby Sep 1, 2025
b620fcd
Merge branch 'fix/client-run' of https://github.com/DA-344/pycord int…
DA-344 Sep 1, 2025
daab987
fix tasks things
DA-344 Sep 1, 2025
93e4c19
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 1, 2025
aba538b
tasks
DA-344 Sep 1, 2025
6daa327
Merge branch 'fix/client-run' of https://github.com/DA-344/pycord int…
DA-344 Sep 1, 2025
7018518
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 1, 2025
7d21354
loop=
DA-344 Sep 1, 2025
ad281a4
Merge branch 'master' into fix/client-run
DA-344 Sep 1, 2025
8c035cb
replace asyncio.iscoroutinefunction refs (deprecated) with inspect.is…
DA-344 Sep 1, 2025
eb113b0
Merge branch 'fix/client-run' of https://github.com/DA-344/pycord int…
DA-344 Sep 1, 2025
a60ead8
Merge branch 'master' into fix/client-run
Paillat-dev Sep 3, 2025
68a929f
make start also update loop if not already updated via __aenter__
DA-344 Sep 8, 2025
10b75be
Merge branch 'fix/client-run' of https://github.com/DA-344/pycord int…
DA-344 Sep 8, 2025
eefc57d
merge master
DA-344 Sep 8, 2025
2d0b61a
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 8, 2025
bddf256
Merge branch 'master' into fix/client-run
Paillat-dev Sep 15, 2025
63efa07
Merge branch 'master' into fix/client-run
Paillat-dev Oct 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#2905](https://github.com/Pycord-Development/pycord/pull/2905))
- `view=None` in various methods causing an AttributeError.
([#2915](https://github.com/Pycord-Development/pycord/pull/2915))
- Fixed Async I/O errors that could be raised when using `Client.run`.
([#2645](https://github.com/Pycord-Development/pycord/pull/2645))
- `View.message` being `None` when it had not been interacted with yet.
([#2916](https://github.com/Pycord-Development/pycord/pull/2916))
- Fixed a crash when processing message edit events while message cache was disabled.
Expand Down
4 changes: 2 additions & 2 deletions discord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ def before_invoke(self, coro):
TypeError
The coroutine passed is not actually a coroutine.
"""
if not asyncio.iscoroutinefunction(coro):
if not inspect.iscoroutinefunction(coro):
raise TypeError("The pre-invoke hook must be a coroutine.")

self._before_invoke = coro
Expand Down Expand Up @@ -1418,7 +1418,7 @@ def after_invoke(self, coro):
The coroutine passed is not actually a coroutine.

"""
if not asyncio.iscoroutinefunction(coro):
if not inspect.iscoroutinefunction(coro):
raise TypeError("The post-invoke hook must be a coroutine.")

self._after_invoke = coro
Expand Down
Loading