File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 27
27
28
28
from typing import TYPE_CHECKING , Any , TypeVar
29
29
30
- from typing_extensions import Self
30
+ from typing_extensions import Self , deprecated
31
31
32
32
from .asset import Asset
33
33
from .colour import Colour
39
39
MISSING ,
40
40
_bytes_to_base64_data ,
41
41
_get_as_snowflake ,
42
- deprecated ,
42
+ deprecated_message ,
43
43
snowflake_time ,
44
44
warn_deprecated ,
45
45
)
@@ -478,7 +478,7 @@ def permissions(self) -> Permissions:
478
478
return Permissions (self ._permissions )
479
479
480
480
@property
481
- @deprecated ("colours.primary" , "2.7" )
481
+ @deprecated (deprecated_message ( "colours.primary" , "2.7" ) )
482
482
def colour (self ) -> Colour :
483
483
"""Returns the role colour. Equivalent to :attr:`colours.primary`.
484
484
An alias exists under ``color``.
@@ -488,7 +488,7 @@ def colour(self) -> Colour:
488
488
return self .colours .primary
489
489
490
490
@property
491
- @deprecated ("colors.primary" , "2.7" )
491
+ @deprecated (deprecated_message ( "colors.primary" , "2.7" ) )
492
492
def color (self ) -> Colour :
493
493
"""Returns the role's primary color. Equivalent to :attr:`colors.primary`.
494
494
An alias exists under ``colour``.
You can’t perform that action at this time.
0 commit comments