mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 08:52:31 -05:00
* 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
(cherry picked from commit 1fd9324171)
Co-authored-by: Kreusada <67752638+Kreusada@users.noreply.github.com>
Co-authored-by: Jakub Kuczys <6032823+jack1142@users.noreply.github.com>
Co-authored-by: Kreusada <67752638+Kreusada@users.noreply.github.com>
This commit is contained in:
@@ -10,7 +10,7 @@ from schema import And, Or, Schema, SchemaError, Optional as UseOptional
|
||||
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.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
|
||||
|
||||
@@ -264,9 +264,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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user