From 3465426ff61d7496da40d619fbeb4c5417b2d32c Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Sat, 14 Jun 2025 00:57:18 +0200 Subject: [PATCH] chore: revert removing comments --- discord/ui/dynamic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/ui/dynamic.py b/discord/ui/dynamic.py index 52cc5d068..bc96e230b 100644 --- a/discord/ui/dynamic.py +++ b/discord/ui/dynamic.py @@ -146,7 +146,7 @@ class DynamicItem(Generic[BaseT], Item[Union[View, LayoutView]]): @property def custom_id(self) -> str: """:class:`str`: The ID of the dynamic item that gets received during an interaction.""" - return self.item.custom_id # type: ignore + return self.item.custom_id # type: ignore # This attribute exists for dispatchable items @custom_id.setter def custom_id(self, value: str) -> None: @@ -156,7 +156,7 @@ class DynamicItem(Generic[BaseT], Item[Union[View, LayoutView]]): if not self.template.match(value): raise ValueError(f'custom_id must match the template {self.template.pattern!r}') - self.item.custom_id = value # type: ignore + self.item.custom_id = value # type: ignore # This attribute exists for dispatchable itesm self._provided_custom_id = True @property