From 35681619006967f8ebf3d828d4d64c5ea15c36ae Mon Sep 17 00:00:00 2001 From: Faster Speeding Date: Mon, 7 Sep 2020 23:00:47 +0100 Subject: [PATCH] Add name to guild create members request task. --- hikari/impl/stateful_event_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hikari/impl/stateful_event_manager.py b/hikari/impl/stateful_event_manager.py index febb5acb91..8ad6574d1d 100644 --- a/hikari/impl/stateful_event_manager.py +++ b/hikari/impl/stateful_event_manager.py @@ -168,7 +168,8 @@ async def on_guild_create(self, shard: gateway_shard.GatewayShard, payload: data # to chunk small guilds. if (event.guild.is_large or not presences_declared) and members_declared: # We create a task here instead of awaiting the result to avoid any rate-limits from delaying dispatch. - asyncio.create_task(shard.request_guild_members(event.guild)) + coroutine = shard.request_guild_members(event.guild) + asyncio.create_task(coroutine, name=f"{event.shard.id}:{event.guild.id} guild create members request") await self.dispatch(event)