1.1.2 • Published 7 months ago

@ifiib/webhook v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Ifiib webhook

Install

npm install @ifiib/webhook

Usage

commonjs import

const webhook = require("@ifiib/webhook")

var hook = new webhook.Client("<Webhook url>")

Es6 import

import { Client } from '@ifiib'

var hook = new Client("<Webhook url>")

Webhook appearence

Username

hook.setUsername("HelloHook")

Avatar

hook.setAvatar("<Avatar url>")

Sending messages

hook.send({
    "content": "Hello world !"
})

Embeds

hook.send({
    "content": "Hello world !",
    "embeds": [
        {
            "title": "My awesome embed !",
            "description": "Interesting description"
        }
    ]
})

Limitations

Embeds 10 embeds per message

Messages 4000 character per message

1.1.2

7 months ago

1.1.1

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago