Code Monkey home page Code Monkey logo

cros-webhooks's Introduction

r/ChromeOS Discord Embed Webhook Files

Info

These are the files we use to post embeds using webhooks in the ChromeOS Discord Server. Here's an example:

exmaple webhook image

How to post them

  1. Download the Postman web app for your operating system
  2. Install it and sign in.
  3. You'll see a modal pop up with options like this: postman modal just hit the "x" icon to close out of this.
  4. At the top you should see a "+" icon to create a new request. Click on that. + icon
  5. Change the request type from GET to POST, and insert the URL of the webhook in the text box next to it. (You can get the URL for an existing webhook by going to the channel settings > Webhooks > Edit > Webhook URL, or if you want you can create a new webhook in the same menu) POST and webhook URL example
  6. Go into the "headers" subsection. Add a new key "Content-Type" and set the value to "application/json" headers
  7. In the "body" subsection, set the type to "raw" and then in the large text box insert the JSON you would like to send. Note that this format needs to comply by the Discord API conventions for webhooks. body example
  8. When you're ready, hit the big blue "Send" and if all went well, it should appear in the channel you created the webhook for. If not, you should see an error response saying what went wrong.

Creating new JSONs for webhooks

Where possible, just take example from some of the existting JSON files. But if there's something you don't see that you'd like to try to do, use the Discord API documentation to figure out how to write it

Previewing your embeds

You can preview your embed in a test server by using a webhook URL from a channel where you want to send it, or alternatively you can use the Discord embed visualiser tool, which updates in real time and therfore less annoying to work with. Note that if you use this you'll have to reformat your JSON slightly, in that you just want to copy a single embed object over from the array "embeds", as this preview tool uses the bot embed format rather than webhook format.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.