Upload file to Discord server
Project description
pyscord-storage
Free unlimited file hosting using Discord server
Installation
pip install pyscord-storage --upgrade
Example
import pyscord_storage
filename = 'ynm.jpg'
url = 'https://github.com/animemoeus/pyscord-storage/raw/master/sample.jpg'
data = pyscord_storage.upload(filename,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.6.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pyscord_storage-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3065c2c002ba65db6ad23555e90059759382628a9b560d6faacfdb7833efa26 |
|
MD5 | 04de99c7621d38fb726f972a0f4a7f47 |
|
BLAKE2b-256 | a7fd6ce120fa1f6352547051647dcde82e006afbd606c96b4385e9691cd795f6 |