Add custom_id string to DynamicItem template regex error

This commit is contained in:
Vaskel authored and GitHub committed 2023-09-16 22:47:49 -04:00
1 parent 9e2f2cb3af
commit 5126323640
1 file changed
+1 -1
+1 -1
View File
@@ -110,7 +110,7 @@ class DynamicItem(Generic[BaseT], Item['View']):
raise TypeError('item must be dispatchable, e.g. not a URL button')
if not self.template.match(self.custom_id):
raise ValueError(f'item custom_id must match the template {self.template.pattern!r}')
raise ValueError(f'item custom_id {self.custom_id!r} must match the template {self.template.pattern!r}')
@property
def template(self) -> re.Pattern[str]: