@@ -899,7 +899,7 @@ async def add_perms_command(self, ctx, command: str, *, user_or_role: Union[User
899899 elif user_or_role in {'everyone' , 'all' }:
900900 value = - 1
901901 else :
902- raise commands .CommandInvokeError ('Invalid user or role.' )
902+ raise commands .UserInputError ('Invalid user or role.' )
903903
904904 await self .bot .update_perms (self .bot .all_commands [command ].name , value )
905905 embed = Embed (
@@ -927,7 +927,7 @@ async def add_perms_level(self, ctx, level: str, *, user_or_role: Union[User, Ro
927927 elif user_or_role in {'everyone' , 'all' }:
928928 value = - 1
929929 else :
930- raise commands .CommandInvokeError ('Invalid user or role.' )
930+ raise commands .UserInputError ('Invalid user or role.' )
931931
932932 await self .bot .update_perms (PermissionLevel [level .upper ()], value )
933933 embed = Embed (
@@ -963,7 +963,7 @@ async def remove_perms_command(self, ctx, command: str, *, user_or_role: Union[U
963963 elif user_or_role in {'everyone' , 'all' }:
964964 value = - 1
965965 else :
966- raise commands .CommandInvokeError ('Invalid user or role.' )
966+ raise commands .UserInputError ('Invalid user or role.' )
967967
968968 await self .bot .update_perms (self .bot .all_commands [command ].name , value , add = False )
969969 embed = Embed (
@@ -991,7 +991,7 @@ async def remove_perms_level(self, ctx, level: str, *, user_or_role: Union[User,
991991 elif user_or_role in {'everyone' , 'all' }:
992992 value = - 1
993993 else :
994- raise commands .CommandInvokeError ('Invalid user or role.' )
994+ raise commands .UserInputError ('Invalid user or role.' )
995995
996996 await self .bot .update_perms (PermissionLevel [level .upper ()], value , add = False )
997997 embed = Embed (
@@ -1011,7 +1011,7 @@ async def get_perms(self, ctx, *, user_or_role: Union[User, Role, str]):
10111011 elif user_or_role in {'everyone' , 'all' }:
10121012 value = - 1
10131013 else :
1014- raise commands .CommandInvokeError ('Invalid user or role.' )
1014+ raise commands .UserInputError ('Invalid user or role.' )
10151015
10161016 cmds = []
10171017 levels = []
0 commit comments