mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
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:
parent
4580a13e98
commit
1fd9324171
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user