Skip to content

Commit fc17274

Browse files
committed
🐛 Fix missing self. attribution in File
1 parent 84a68e5 commit fc17274

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

discord/ui/file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ class File(Item[V]):
4545
def __init__(self, url: str, *, spoiler: bool = False, id: int | None = None):
4646
super().__init__()
4747

48-
file = UnfurledMediaItem(url)
48+
self.file = UnfurledMediaItem(url)
4949

5050
self._underlying = FileComponent._raw_construct(
5151
type=ComponentType.file,
5252
id=id,
53-
file=file,
53+
file=self.file,
5454
spoiler=spoiler,
5555
)
5656

0 commit comments

Comments
 (0)