diff options
| author | 2021-12-03 21:06:10 -0500 | |
|---|---|---|
| committer | 2021-12-03 21:51:56 -0500 | |
| commit | a28abf1b286d841b8f27aba5d31696a9f658f952 (patch) | |
| tree | cddca97a2845221a880fcfbc5c36c91c7e3e98fa /bot/exts/core | |
| parent | Make aoc_name a keyword arguemnt to accept spaces (diff) | |
| parent | Merge pull request #963 from python-discord/aoc-lb-multiword (diff) | |
Merge branch 'main' into aoc-link
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 = {} | 
