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>
This commit is contained in:
Kreusada 2022-06-05 16:42:11 +01:00 committed by GitHub
parent 4580a13e98
commit 1fd9324171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ from redbot.core import checks, commands, config
from redbot.core.bot import Red from redbot.core.bot import Red
from redbot.core.i18n import Translator, cog_i18n from redbot.core.i18n import Translator, cog_i18n
from redbot.core.utils import can_user_react_in 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.menus import start_adding_reactions
from redbot.core.utils.predicates import ReactionPredicate, MessagePredicate from redbot.core.utils.predicates import ReactionPredicate, MessagePredicate
@ -262,9 +262,9 @@ class Permissions(commands.Cog):
can = False can = False
out = ( out = (
_("That user can run the specified command.") success(_("That user can run the specified command."))
if can 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) await ctx.send(out)