From 1fd93241716c6b93c48edf48dde243746891e0a1 Mon Sep 17 00:00:00 2001 From: Kreusada <67752638+Kreusada@users.noreply.github.com> Date: Sun, 5 Jun 2022 16:42:11 +0100 Subject: [PATCH] Prepend emojis to better differentiate between `[p]canrun` responses (#5711) * Add emojis to better differentiate between canrun responses * Apply `success()` Co-authored-by: Jakub Kuczys <6032823+jack1142@users.noreply.github.com> * Apply `error()` Co-authored-by: Jakub Kuczys <6032823+jack1142@users.noreply.github.com> * add imports Co-authored-by: Jakub Kuczys <6032823+jack1142@users.noreply.github.com> --- redbot/cogs/permissions/permissions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redbot/cogs/permissions/permissions.py b/redbot/cogs/permissions/permissions.py index 0061df3d0..fedc6966f 100644 --- a/redbot/cogs/permissions/permissions.py +++ b/redbot/cogs/permissions/permissions.py @@ -11,7 +11,7 @@ from redbot.core import checks, commands, config from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils import can_user_react_in -from redbot.core.utils.chat_formatting import box +from redbot.core.utils.chat_formatting import box, error, success from redbot.core.utils.menus import start_adding_reactions from redbot.core.utils.predicates import ReactionPredicate, MessagePredicate @@ -262,9 +262,9 @@ class Permissions(commands.Cog): can = False out = ( - _("That user can run the specified command.") + success(_("That user can run the specified command.")) if can - else _("That user can not run the specified command.") + else error(_("That user can not run the specified command.")) ) await ctx.send(out)