diff options
| author | Tobotimus <[email protected]> | 2018-01-06 17:21:56 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-01-06 17:23:59 -0500 |
| commit | 3112e1c17e7859adf6d13ed844f4c636b4bc30d8 (patch) | |
| tree | 70d7aafca549a8c245ee4fdab774e1ab5302d531 /discord/file.py | |
| parent | [commands] Fix MissingRequiredArgument param handling (diff) | |
| download | discord.py-3112e1c17e7859adf6d13ed844f4c636b4bc30d8.tar.xz discord.py-3112e1c17e7859adf6d13ed844f4c636b4bc30d8.zip | |
Add intersphinx
Diffstat (limited to 'discord/file.py')
| -rw-r--r-- | discord/file.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/file.py b/discord/file.py index c4733a3b..f56de713 100644 --- a/discord/file.py +++ b/discord/file.py @@ -32,7 +32,7 @@ class File: Attributes ----------- - fp: Union[str, BinaryIO] + fp: Union[:class:`str`, BinaryIO] A file-like object opened in binary mode and read mode or a filename representing a file in the hard drive to open. @@ -44,7 +44,7 @@ class File: To pass binary data, consider usage of ``io.BytesIO``. - filename: Optional[str] + filename: Optional[:class:`str`] The filename to display when uploading to Discord. If this is not given then it defaults to ``fp.name`` or if ``fp`` is a string then the ``filename`` will default to the string given. |