aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/internal_eval
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2021-08-30 10:02:39 +0100
committerGravatar GitHub <[email protected]>2021-08-30 10:02:39 +0100
commit7ae7117cd411d9d943b448076a38f6261fc2e286 (patch)
treee7c4b9712899ef7a48a1fdf6207d7d9ab6323746 /bot/exts/internal_eval
parentMake some return type annotations accurate (diff)
parentMerge pull request #816 from Objectivitix/patch-1 (diff)
Merge branch 'main' into duckduckduckgoose
Diffstat (limited to 'bot/exts/internal_eval')
-rw-r--r--bot/exts/internal_eval/_internal_eval.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/exts/internal_eval/_internal_eval.py b/bot/exts/internal_eval/_internal_eval.py
index 56bf5add..b7749144 100644
--- a/bot/exts/internal_eval/_internal_eval.py
+++ b/bot/exts/internal_eval/_internal_eval.py
@@ -7,7 +7,7 @@ import discord
from discord.ext import commands
from bot.bot import Bot
-from bot.constants import Roles
+from bot.constants import Client, Roles
from bot.utils.decorators import with_role
from bot.utils.extensions import invoke_help_command
from ._helpers import EvalContext
@@ -41,6 +41,9 @@ class InternalEval(commands.Cog):
self.bot = bot
self.locals = {}
+ if Client.debug:
+ self.internal_group.add_check(commands.is_owner().predicate)
+
@staticmethod
def shorten_output(
output: str,