diff --git a/hikari/impl/bot.py b/hikari/impl/bot.py index c01d3253af..e035e64ffc 100644 --- a/hikari/impl/bot.py +++ b/hikari/impl/bot.py @@ -583,7 +583,7 @@ def run( if coroutine_tracking_depth is not None: try: # Provisionally defined in CPython, may be removed without notice. - loop.set_coroutine_tracking_depth(coroutine_tracking_depth) # type: ignore[attr-defined] + sys.set_coroutine_origin_tracking_depth(coroutine_tracking_depth) # type: ignore[attr-defined] except AttributeError: _LOGGER.log( ux.TRACE, "cannot set coroutine tracking depth for %s, no functionality exists for this", loop