Total Complexity | 0 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | # Copyright Pincer 2021-Present |
||
|
|||
2 | # Full MIT License can be found in `LICENSE` at the project root. |
||
3 | |||
4 | from __future__ import annotations |
||
5 | |||
6 | from dataclasses import dataclass |
||
7 | from typing import Optional, TYPE_CHECKING |
||
8 | |||
9 | from ...utils import APIObject |
||
10 | |||
11 | if TYPE_CHECKING: |
||
12 | from ...utils import Snowflake |
||
13 | |||
14 | |||
15 | @dataclass |
||
16 | class GuildWidget(APIObject): |
||
17 | """ |
||
18 | Represents a Discord Guild Widget object |
||
19 | |||
20 | :param enabled: |
||
21 | whether the widget is enabled |
||
22 | |||
23 | :param channel_id: |
||
24 | the widget channel id |
||
25 | """ |
||
26 | enabled: bool |
||
27 | channel_id: Optional[Snowflake] |
||
28 |