| Total Complexity | 0 |
| Total Lines | 29 |
| 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 ..user.user import User |
||
| 13 | |||
| 14 | |||
| 15 | @dataclass(repr=False) |
||
| 16 | class Ban(APIObject): |
||
| 17 | """Representation of the Discord Ban object |
||
| 18 | |||
| 19 | Attributes |
||
| 20 | ---------- |
||
| 21 | reason: Optional[:class:`str`] |
||
| 22 | The reason for the ban |
||
| 23 | user: :class:`~pincer.objects.user.user.User` |
||
| 24 | The banned user |
||
| 25 | """ |
||
| 26 | |||
| 27 | reason: Optional[str] |
||
| 28 | user: User |
||
| 29 |