diff --git a/disnake/ext/commands/core.py b/disnake/ext/commands/core.py index 5115cb96cb..2bb108e966 100644 --- a/disnake/ext/commands/core.py +++ b/disnake/ext/commands/core.py @@ -1867,7 +1867,8 @@ def app_check_any(*checks: AppCheck) -> Callable[[T], T]: try: return check_any(*checks) # type: ignore # impl is the same, typings are different except TypeError as e: - raise TypeError(str(e).replace("commands.check", "commands.app_check")) # fix err message + msg = str(e).replace("commands.check", "commands.app_check") # fix err message + raise TypeError(msg) from None def has_role(item: Union[int, str]) -> Callable[[T], T]: