| Total Complexity | 0 |
| Total Lines | 38 |
| 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 dataclasses import dataclass |
||
| 5 | |||
| 6 | from ...utils.api_object import APIObject |
||
| 7 | |||
| 8 | |||
| 9 | @dataclass(repr=False) |
||
| 10 | class VoiceRegion(APIObject): |
||
| 11 | """Represents a Discord Voice Region object |
||
| 12 | |||
| 13 | Attributes |
||
| 14 | ---------- |
||
| 15 | id: :class:`str` |
||
| 16 | Unique ID for the region |
||
| 17 | name: :class:`str` |
||
| 18 | Name of the region |
||
| 19 | vip: :class:`bool` |
||
| 20 | True if this is a vip-only server |
||
| 21 | optimal: :class:`bool` |
||
| 22 | True for a single server |
||
| 23 | that is closest to the current user's client |
||
| 24 | deprecated: :class:`bool` |
||
| 25 | Whether this is a deprecated voice region |
||
| 26 | (avoid switching to these) |
||
| 27 | custom: :class:`bool` |
||
| 28 | Whether this is a custom voice region |
||
| 29 | (used for events/etc.) |
||
| 30 | """ |
||
| 31 | |||
| 32 | id: str |
||
| 33 | name: str |
||
| 34 | vip: bool |
||
| 35 | optimal: bool |
||
| 36 | deprecated: bool |
||
| 37 | custom: bool |
||
| 38 |