@ifiib/webhook
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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

Package Sidebar

Install

npm i @ifiib/webhook

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

10.4 kB

Total Files

10

Last publish

Collaborators

  • over-genie