gateway: handle when hoisted_role isnt found

This commit is contained in:
Luna 2021-08-28 20:11:23 -03:00
parent 91cff7aa10
commit f837b588cf
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ async def _compute_supplemental(app, base_ready, user_ready, users_to_send: dict
"mute": member["mute"],
"deaf": member["deaf"],
"joined_at": member["joined_at"],
"hoisted_role": hoisted_role[1],
"hoisted_role": hoisted_role[1] if hoisted_role else None,
}
)