ShareX **UPLOAD TO DISCORD** (Webhooks)

Status
This thread has been locked.

Ally

gσ∂∂єѕѕ σƒ мαтнѕ αη∂ мєℓσηѕ χσ
Supreme
Feedback score
37
Posts
2,043
Reactions
2,194
Resources
0
Hi,

You wouldn't typically think of Discord as a good upload storage facility, but it kind of is. You can keep various sorts of media on there without too many limitations. Bonus? You can do it with webhooks. And webhooks are very cool.

You can see a small demonstration below:


To generate the config you can go to https://sevr.org/discord/. A brief tutorial on how to fully set this up is here:


You will have seen a field in the site with Payload JSON. This essentially allows you to attach messages to these uploads (as demonstrated in the first picture!) with support for ShareX variables. In addition to this, you can add embeds and everything. I'm developing a tool to make generating this JSON easier. Hold on to your butts, it'll be a little while.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Ally

gσ∂∂єѕѕ σƒ мαтнѕ αη∂ мєℓσηѕ χσ
Supreme
Feedback score
37
Posts
2,043
Reactions
2,194
Resources
0
Just want to make a quick update, simplified config (removed redundant "file": "d" parameter).
 

Code

Boost Hosting CEO
Supreme
Feedback score
12
Posts
183
Reactions
57
Resources
0
Hi,

You wouldn't typically think of Discord as a good upload storage facility, but it kind of is. You can keep various sorts of media on there without too many limitations. Bonus? You can do it with webhooks. And webhooks are very cool.

You can see a small demonstration below:


To generate the config you can go to https://sevr.org/discord/. A brief tutorial on how to fully set this up is here:


You will have seen a field in the site with Payload JSON. This essentially allows you to attach messages to these uploads (as demonstrated in the first picture!) with support for ShareX variables. In addition to this, you can add embeds and everything. I'm developing a tool to make generating this JSON easier. Hold on to your butts, it'll be a little while.

This is actually REALLY neat!
 

Ally

gσ∂∂єѕѕ σƒ мαтнѕ αη∂ мєℓσηѕ χσ
Supreme
Feedback score
37
Posts
2,043
Reactions
2,194
Resources
0

BrianGrug

Full time failure
Supreme
Feedback score
56
Posts
1,473
Reactions
995
Resources
1
Hey, can I see an example of the JSON you used? Also, awesome tool!
 

Ally

gσ∂∂єѕѕ σƒ мαтнѕ αη∂ мєℓσηѕ χσ
Supreme
Feedback score
37
Posts
2,043
Reactions
2,194
Resources
0
I mean.. lol is there no upload limit with a webhook?
I would assume there's an 8 megabyte upload limit, but I haven't tested it (yet).
i normally dont like you. but just for this imma say you're pretty cool
Thanks!
Hey, can I see an example of the JSON you used? Also, awesome tool!
Sure thing. A basic payload would be something like this.
Code:
{"content":"`$filename$` was uploaded at `%unix`"}
If you want something more advanced, this could be more suitable:
Code:
{"tts":false,"embeds":[{"title":"File Upload #%i","type":"rich","description":"File upload completed with ShareX & Webhooks.","color":15503817,"fields":[{"name":"File name","value":"$filename$","inline":true},{"name":"Upload time (Unix)","value":"%unix","inline":true}]}]}
Preview; https://sevr.org/i/0cc3f811-49a2-4718-9bd9-5726ca365065.png
 

BrianGrug

Full time failure
Supreme
Feedback score
56
Posts
1,473
Reactions
995
Resources
1
I would assume there's an 8 megabyte upload limit, but I haven't tested it (yet).

Thanks!

Sure thing. A basic payload would be something like this.
Code:
{"content":"`$filename$` was uploaded at `%unix`"}
If you want something more advanced, this could be more suitable:
Code:
{"tts":false,"embeds":[{"title":"File Upload #%i","type":"rich","description":"File upload completed with ShareX & Webhooks.","color":15503817,"fields":[{"name":"File name","value":"$filename$","inline":true},{"name":"Upload time (Unix)","value":"%unix","inline":true}]}]}
Preview; https://sevr.org/i/0cc3f811-49a2-4718-9bd9-5726ca365065.png
Here's what I'm using for anyone that wants it
Code:
{"tts":false,
"embeds":[{
    "title":"File Upload",
    "type":"rich",
    "description":"File upload completed.",
    "color":4904010,
    "fields":[{"name":"File name",
    "value":"$filename$",
    "inline":true},
    {"name":"User",
    "value":"%uln",
    "inline":true}
    ]
   }
  ]
 }
Here's what it looks like: https://solenxia.site/imgs/Oldc3
 

Ally

gσ∂∂єѕѕ σƒ мαтнѕ αη∂ мєℓσηѕ χσ
Supreme
Feedback score
37
Posts
2,043
Reactions
2,194
Resources
0
Thread's been reopened. If anyone would like getting this setup I'd be more than happy to assist.
 
Status
This thread has been locked.
Top