| Conditions | 1 |
| Total Lines | 18 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # Copyright Pincer 2021-Present |
||
| 15 | async def guild_member_update_middleware(self, payload: GatewayDispatch): |
||
| 16 | """|coro| |
||
| 17 | |||
| 18 | Middleware for ``on_guild_member_update`` event. |
||
| 19 | |||
| 20 | Parameters |
||
| 21 | ---------- |
||
| 22 | self : :class:`Client` |
||
| 23 | The current client/bot. |
||
| 24 | |||
| 25 | payload : :class:`GatewayDispatch` |
||
| 26 | The data received from the guild member update event. |
||
| 27 | """ |
||
| 28 | |||
| 29 | return ( |
||
| 30 | "on_guild_member_update", |
||
| 31 | [GuildMemberUpdateEvent.from_dict( |
||
| 32 | construct_client_dict(self, payload.data) |
||
| 33 | )] |
||
| 39 |