We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69badd8 commit f6938d7Copy full SHA for f6938d7
discord/ui/file.py
@@ -74,7 +74,7 @@ def to_component_dict(self) -> FileComponentPayload:
74
@classmethod
75
def from_component(cls: type[F], component: FileComponent) -> F:
76
return cls(
77
- component.media and component.media.url,
+ component.file and component.file.url,
78
spoiler=component.spoiler,
79
)
80
0 commit comments