Skip to content

Commit 4f66d73

Browse files
authored
Merge pull request #1897 from python-discord/modlog/correct-color-names
2 parents 95fdd6e + acc0973 commit 4f66d73

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bot/exts/moderation/modlog.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -786,11 +786,11 @@ async def on_thread_update(self, before: Thread, after: Thread) -> None:
786786
return
787787

788788
if not before.archived and after.archived:
789-
colour = Colour.soft_red()
789+
colour = Colours.soft_red
790790
action = "archived"
791791
icon = Icons.hash_red
792792
elif before.archived and not after.archived:
793-
colour = Colour.soft_green()
793+
colour = Colours.soft_green
794794
action = "un-archived"
795795
icon = Icons.hash_green
796796
else:
@@ -808,7 +808,7 @@ async def on_thread_delete(self, thread: Thread) -> None:
808808
"""Log thread deletion."""
809809
await self.send_log_message(
810810
Icons.hash_red,
811-
Colour.soft_red(),
811+
Colours.soft_red,
812812
"Thread deleted",
813813
f"Thread {thread.mention} (`{thread.id}`) from {thread.parent.mention} (`{thread.parent.id}`) deleted"
814814
)
@@ -823,7 +823,7 @@ async def on_thread_join(self, thread: Thread) -> None:
823823

824824
await self.send_log_message(
825825
Icons.hash_green,
826-
Colour.soft_green(),
826+
Colours.soft_green,
827827
"Thread created",
828828
f"Thread {thread.mention} (`{thread.id}`) from {thread.parent.mention} (`{thread.parent.id}`) created"
829829
)

0 commit comments

Comments
 (0)