mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 02:39:01 +00:00
Fix File not using the filename if given
This commit is contained in:
parent
bf2066278e
commit
e52532c06e
@ -61,6 +61,8 @@ class File:
|
||||
_, self.filename = os.path.split(fp)
|
||||
else:
|
||||
self.filename = getattr(fp, 'name', None)
|
||||
else:
|
||||
self.filename = filename
|
||||
|
||||
def open_file(self):
|
||||
fp = self.fp
|
||||
|
Loading…
x
Reference in New Issue
Block a user