aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/message.py')
-rw-r--r--discord/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/message.py b/discord/message.py
index e434562c..df0b8243 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -172,7 +172,7 @@ class Attachment(Hashable):
The number of bytes written.
"""
data = await self.read(use_cached=use_cached)
- if isinstance(fp, io.IOBase) and fp.writable():
+ if isinstance(fp, io.BufferedIOBase):
written = fp.write(data)
if seek_begin:
fp.seek(0)