Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
genediazjr committed Mar 4, 2020
1 parent c2cf8aa commit f55a5ff
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,49 +36,49 @@ hook.error('test');
hook.fatal('test');

hook.post({
"username": "Webhook",
"avatar_url": "https://i.imgur.com/4M34hi2.png",
"content": "Text message. Up to 2000 characters.",
"embeds": [
username: 'Webhook',
avatar_url: 'https://i.imgur.com/4M34hi2.png',
content: 'Text message. Up to 2000 characters.',
embeds: [
{
"author": {
"name": "Birdie♫",
"url": "https://www.reddit.com/r/cats/",
"icon_url": "https://i.imgur.com/R66g1Pe.jpg"
author: {
name: 'Birdie♫',
url: 'https://www.reddit.com/r/cats/',
icon_url: 'https://i.imgur.com/R66g1Pe.jpg'
},
"title": "Title",
"url": "https://google.com/",
"description": "Text message. You can use Markdown here. *Italic* **bold** __underline__ ~~strikeout~~ [hyperlink](https://google.com) `code`",
"color": 15258703,
"fields": [
title: 'Title',
url: 'https://google.com/',
description: 'Text message. You can use Markdown here. *Italic* **bold** __underline__ ~~strikeout~~ [hyperlink](https://google.com) `code`',
color: 15258703,
fields: [
{
"name": "Text",
"value": "More text",
"inline": true
name: 'Text',
value: 'More text',
inline: true
},
{
"name": "Even more text",
"value": "Yup",
"inline": true
name: 'Even more text',
value: 'Yup',
inline: true
},
{
"name": "Use `\"inline\": true` parameter, if you want to display fields in the same line.",
"value": "okay..."
name: 'Use `\"inline\": true` parameter, if you want to display fields in the same line.',
value: 'okay...'
},
{
"name": "Thanks!",
"value": "You're welcome :wink:"
name: 'Thanks!',
value: 'You\'re welcome :wink:'
}
],
"thumbnail": {
"url": "https://upload.wikimedia.org/wikipedia/commons/3/38/4-Nature-Wallpapers-2014-1_ukaavUI.jpg"
thumbnail: {
url: 'https://upload.wikimedia.org/wikipedia/commons/3/38/4-Nature-Wallpapers-2014-1_ukaavUI.jpg'
},
"image": {
"url": "https://upload.wikimedia.org/wikipedia/commons/5/5a/A_picture_from_China_every_day_108.jpg"
image: {
url: 'https://upload.wikimedia.org/wikipedia/commons/5/5a/A_picture_from_China_every_day_108.jpg'
},
"footer": {
"text": "Woah! So cool! :smirk:",
"icon_url": "https://i.imgur.com/fKL31aD.jpg"
footer: {
text: 'Woah! So cool! :smirk:',
icon_url: 'https://i.imgur.com/fKL31aD.jpg'
}
}
]
Expand Down

0 comments on commit f55a5ff

Please sign in to comment.