Skip to content

Commit 04aa2f6

Browse files
committed
Stuff broke in merge commit
1 parent 24a3040 commit 04aa2f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

discord/role.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
from typing import TYPE_CHECKING, Any, TypeVar
2929

30-
from typing_extensions import Self
30+
from typing_extensions import Self, deprecated
3131

3232
from .asset import Asset
3333
from .colour import Colour
@@ -39,7 +39,7 @@
3939
MISSING,
4040
_bytes_to_base64_data,
4141
_get_as_snowflake,
42-
deprecated,
42+
deprecated_message,
4343
snowflake_time,
4444
warn_deprecated,
4545
)
@@ -478,7 +478,7 @@ def permissions(self) -> Permissions:
478478
return Permissions(self._permissions)
479479

480480
@property
481-
@deprecated("colours.primary", "2.7")
481+
@deprecated(deprecated_message("colours.primary", "2.7"))
482482
def colour(self) -> Colour:
483483
"""Returns the role colour. Equivalent to :attr:`colours.primary`.
484484
An alias exists under ``color``.
@@ -488,7 +488,7 @@ def colour(self) -> Colour:
488488
return self.colours.primary
489489

490490
@property
491-
@deprecated("colors.primary", "2.7")
491+
@deprecated(deprecated_message("colors.primary", "2.7"))
492492
def color(self) -> Colour:
493493
"""Returns the role's primary color. Equivalent to :attr:`colors.primary`.
494494
An alias exists under ``colour``.

0 commit comments

Comments
 (0)