diff options
| author | 2021-12-02 10:47:03 +0100 | |
|---|---|---|
| committer | 2021-12-02 10:47:03 +0100 | |
| commit | 4852790221b88a9bb8dd4ed7a713caaafdbabf48 (patch) | |
| tree | 84dc98070154ad7fa8eb51d270ebd1c0561dacad /bot/exts/core | |
| parent | Merge pull request #950 from onerandomusername/patch-3 (diff) | |
| parent | Merge branch 'main' into update-role-constants (diff) | |
Merge pull request #900 from python-discord/update-role-constants
Update role constants
Diffstat (limited to 'bot/exts/core')
| -rw-r--r-- | bot/exts/core/internal_eval/_internal_eval.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/core/internal_eval/_internal_eval.py b/bot/exts/core/internal_eval/_internal_eval.py index 12a860fa..5b5461f0 100644 --- a/bot/exts/core/internal_eval/_internal_eval.py +++ b/bot/exts/core/internal_eval/_internal_eval.py @@ -147,14 +147,14 @@ class InternalEval(commands.Cog): await self._send_output(ctx, eval_context.format_output()) @commands.group(name="internal", aliases=("int",)) - @with_role(Roles.admin) + @with_role(Roles.admins) async def internal_group(self, ctx: commands.Context) -> None: """Internal commands. Top secret!""" if not ctx.invoked_subcommand: await invoke_help_command(ctx) @internal_group.command(name="eval", aliases=("e",)) - @with_role(Roles.admin) + @with_role(Roles.admins) async def eval(self, ctx: commands.Context, *, code: str) -> None: """Run eval in a REPL-like format.""" if match := list(FORMATTED_CODE_REGEX.finditer(code)): @@ -173,7 +173,7 @@ class InternalEval(commands.Cog): await self._eval(ctx, code) @internal_group.command(name="reset", aliases=("clear", "exit", "r", "c")) - @with_role(Roles.admin) + @with_role(Roles.admins) async def reset(self, ctx: commands.Context) -> None: """Reset the context and locals of the eval session.""" self.locals = {} |