File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424
2525from __future__ import annotations
2626
27- from typing import TYPE_CHECKING , Sequence
2827from dataclasses import dataclass
28+ from typing import TYPE_CHECKING , Sequence
29+
30+ from typing_extensions import Self
2931
3032from .colour import Colour
3133from .enums import SharedClientThemeBaseType , try_enum
3234from .utils import MISSING
33- from typing_extensions import Self
3435
3536__all__ = ("SharedClientTheme" ,)
3637
3738
3839if TYPE_CHECKING :
3940 from .types .shared_client_theme import SharedClientTheme as SharedClientThemePayload
4041
42+
4143@dataclass
4244class SharedClientTheme :
4345 """Represents a shared client theme that can be sent in a message.
@@ -61,7 +63,7 @@ class SharedClientTheme:
6163 The mode of the theme. Defaults to :attr:`SharedClientThemeBaseType.unset`,
6264 which Discord treats as :attr:`SharedClientThemeBaseType.dark`.
6365 """
64-
66+
6567 gradient_angle : int = 0
6668 base_mix : int = 0
6769 colours : list [Colour ] = MISSING
@@ -93,7 +95,7 @@ def __init__(
9395 base_theme , SharedClientThemeBaseType
9496 ):
9597 raise TypeError ("base_theme must be a SharedClientThemeBaseType or None" )
96-
98+
9799 super ().__init__ (
98100 gradient_angle = gradient_angle ,
99101 base_mix = base_mix ,
You can’t perform that action at this time.
0 commit comments