From 1f4254e9cab340fe57ee3f6282271431a1475552 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 5 Jan 2024 09:20:48 +0000 Subject: [PATCH] misc(nerdify): use redbot chat_formatting for errors --- nerdify/nerdify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nerdify/nerdify.py b/nerdify/nerdify.py index 588d210..b4241b7 100644 --- a/nerdify/nerdify.py +++ b/nerdify/nerdify.py @@ -11,7 +11,7 @@ from typing import Any, Optional import discord from redbot.core import commands -from redbot.core.utils import common_filters +from redbot.core.utils import chat_formatting, common_filters class Nerdify(commands.Cog): @@ -33,7 +33,7 @@ class Nerdify(commands.Cog): if not text: messages = [message async for message in ctx.channel.history(limit=2)] # [0] is the command, [1] is the message before the command - text = messages[1].content or "I can't translate that!" + text = messages[1].content or chat_formatting.error("I can't translate that!") await self.type_message( ctx.channel, self.nerdify_text(text),