Skip to content

Commit b289dfc

Browse files
committed
add repr to SelectDefaultValue
1 parent 7d76fef commit b289dfc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

discord/components.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,9 @@ def __init__(
574574
else:
575575
raise TypeError("you must provide an object model, or an id and type")
576576

577+
def __repr__(self) -> str:
578+
return f'<SelectDefaultValue id={self.id} type={self.type}>'
579+
577580
@classmethod
578581
def _from_data(
579582
cls, default_values: list[SelectDefaultValuePayload] | None

0 commit comments

Comments
 (0)