From 016359b48958ff6856bb2358979a953e84f22899 Mon Sep 17 00:00:00 2001 From: SAGIRI-kawaii Date: Fri, 18 Nov 2022 16:11:09 +0800 Subject: [PATCH] fix bug --- modules/required/command/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/required/command/__init__.py b/modules/required/command/__init__.py index 34c03b9b..f878d527 100644 --- a/modules/required/command/__init__.py +++ b/modules/required/command/__init__.py @@ -45,7 +45,7 @@ ], decorators=[ Distribute.distribute(), - Function.require(channel.module), + Function.require(channel.module, response_administrator=True), BlackListControl.enable(), Permission.require(Permission.GROUP_ADMIN) ], @@ -110,7 +110,7 @@ async def setting(app: Ariadne, group: Group, for_group: ArgResult, for_all: Arg ], decorators=[ Distribute.distribute(), - Function.require(channel.module), + Function.require(channel.module, response_administrator=True), BlackListControl.enable(), Permission.require(Permission.SUPER_ADMIN) ], @@ -187,7 +187,7 @@ async def blacklist( ], decorators=[ Distribute.distribute(), - Function.require(channel.module), + Function.require(channel.module, response_administrator=True), BlackListControl.enable(), Permission.require(Permission.SUPER_ADMIN) ],