diff --git a/discord/compat.py b/discord/compat.py index 2cb2ec982..c68cd08ba 100644 --- a/discord/compat.py +++ b/discord/compat.py @@ -29,7 +29,7 @@ import asyncio try: create_task = asyncio.ensure_future except AttributeError: - create_task = asyncio.async + create_task = getattr(asyncio, 'async') try: run_coroutine_threadsafe = asyncio.run_coroutine_threadsafe