Skip to content

Commit

Permalink
Add name to guild create members request task.
Browse files Browse the repository at this point in the history
  • Loading branch information
FasterSpeeding committed Sep 7, 2020
1 parent dbfabc5 commit 3568161
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hikari/impl/stateful_event_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3568161

Please sign in to comment.