From a27fe7ea70e1a378accb04a6a9517c7893a186a7 Mon Sep 17 00:00:00 2001 From: Nick80835 Date: Thu, 19 Sep 2024 14:32:38 -0400 Subject: [PATCH] make reload an owner command --- ubot/modules/_sudo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubot/modules/_sudo.py b/ubot/modules/_sudo.py index ce717b8..d309184 100644 --- a/ubot/modules/_sudo.py +++ b/ubot/modules/_sudo.py @@ -93,7 +93,7 @@ async def execute(event): await exec_msg.edit(f"**Execution:**\n```{exec_text}```\n**Return:**\n```{eval_ret}```") -@ldr.add("reload", sudo=True, hide_help=True) +@ldr.add("reload", owner=True, hide_help=True) async def reload_modules(event): errors = ldr.reload_all_modules()