Upload file to Discord server
Project description
pyscord-storage
Upload file to the Discord server
Installation
pip install pyscord-storage --upgrade
Example
import pyscord_storage
new_filename = 'ynm.jpg'
file_url = 'https://github.com/animemoeus/pyscord-storage/raw/master/sample.jpg'
data = pyscord_storage.upload(new_filename,file_url)
Result
{
'status': 200,
'data':
{
'id': '860049950065819658',
'filename': 'ynm.jpg',
'size': 130407,
'url': 'https://cdn.discordapp.com/attachments/858938620425404426/860049950065819658/ynm.jpg',
'proxy_url': 'https://media.discordapp.net/attachments/858938620425404426/860049950065819658/ynm.jpg',
'width': 537,
'height': 954,
'content_type': 'image/jpeg'
}
}
About
- Max upload size limit is 8MB. Click here for detail.
- url vs proxy_url. Click here for detail.
- proxy_url. Click here for detail
- Attachments URL. Click here for detail.
Example Implementation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyscord-storage-0.0.5.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pyscord_storage-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1905755b5d64247e7458d347eebc7f40b8f4b3dca7984d42f2efb389afe6c28d |
|
MD5 | 77fdf2fce88d573e2eac5aa7250e7e96 |
|
BLAKE2b-256 | 1f3842c5baf0b9ac35d71cb2021d50e5e35bced29d119aa60ef09f2fee6738f4 |