Post to Discord (Proof of Concept)

Posts a message to discord using a Webhook or your UserToken to post from your account


Description

Intro

Post to Discord is a quick, proof of concept shortcut that I created back in iOS 12 to show that you can post directly from shortcuts to a discord server, and still works in iOS 14. Posting it now since I have seen a few requests on reddit for such a thing.

Posting to Discord can be done in two ways: via WebHook, and via your User/Bot Token to post as your actual account or as a bot.

WebHook:

  • Safe, and abides by the Discord ToS
  • Doesn't require any ChannelID's or anything, just the WebHook URL!
  • Requires server WebHook access (Usually Admin/Owner)
  • Posts on behalf of the WebHook, which can be set-up with any custom name etc, that can be changed on the fly by the shortcut itself.

BotToken

  • Safe, and abides by the Discord ToS
  • Requires a bot that you have created and set-up previously in your server
  • Requires said bot's BotToken, which is a unique token that allows anyone with it to access the bot.
  • Requires ChannelID to specify what channel to post to - your bot must have the ability to message in the channel you are trying to post to.
  • This is the most advanced and hard to set-up - If you're doing this, you likely already know how to make this shortcut anyways.

UserToken

  • This is against the Discord ToS, but provided as it is the same method as Bot Tokens
  • Requires your UserToken (how-to), which is a process to get (Note: Your personal UserToken give full access to your account, guard it!)
  • Requires ChannelID to specify what channel to post to - your account must have the ability to message in the channel you are trying to post to.

Set-Up

  • WebHook

    • Setup a WebHook on your server (Intro to WebHooks)
    • Fill in the WebHook URL into the dictionary in the shortcut.
  • User/Bot Token

That's it, set up what you want your message to be, or create a complex series of actions to make a dynamic message, and you're good to send it!


Latest Release Notes

1.01 - Feb. 24, 2021, 3:11 a.m.

Release (Fixed image)


Version history