From 4182496713f854ff3dc7a949de2a0e18de31c417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=B1=CE=B5=D1=8F=D1=8F=CE=B5?= <47398145+AiroPi@users.noreply.github.com> Date: Mon, 15 Aug 2022 20:24:16 +0200 Subject: [PATCH] Add missing required property to Parameter --- discord/app_commands/commands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/app_commands/commands.py b/discord/app_commands/commands.py index 3ff88047f..cd5cdca8a 100644 --- a/discord/app_commands/commands.py +++ b/discord/app_commands/commands.py @@ -512,6 +512,10 @@ class Parameter: def display_name(self) -> str: return self.__parent.display_name + @property + def required(self) -> bool: + return self.__parent.required + @property def description(self) -> str: return str(self.__parent.description)