Conditions | 1 |
Total Lines | 13 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # Copyright Pincer 2021-Present |
||
9 | def channel_create_middleware(self, payload: GatewayDispatch): |
||
10 | """ |
||
11 | Middleware for ``on_error`` event. |
||
12 | |||
13 | :param client: |
||
14 | |||
15 | :param payload: |
||
16 | The data received from the ready event. |
||
17 | """ |
||
18 | |||
19 | return "on_channel_creation", [ |
||
|
|||
20 | Channel.from_dict( |
||
21 | {"_client": self, "_http": self.http, **payload.data} |
||
22 | ) |
||
24 |