Skip to content

Commit f6938d7

Browse files
authored
fix file
1 parent 69badd8 commit f6938d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/ui/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def to_component_dict(self) -> FileComponentPayload:
7474
@classmethod
7575
def from_component(cls: type[F], component: FileComponent) -> F:
7676
return cls(
77-
component.media and component.media.url,
77+
component.file and component.file.url,
7878
spoiler=component.spoiler,
7979
)
8080

0 commit comments

Comments
 (0)