1.0.8 • Published 5 months ago

@ly-nld/dishook v1.0.8

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

Welcome to @ly-nld/dishook 👋

Version Documentation Maintenance License: MIT

Simple Discord Webhook Wrapper

🏠 Homepage

Install

npm install

Run tests

npm run test

Example usage

import { Embed, Webhook } from '@ly-nld/dishook'

const hook = new Webhook('WEBHOOK_HERE')
const embed = new Embed()

embed
 	.setTitle('Hello, world!')
	.setDescription('This is a description')
	.setURL('https://google.com')
	.setColor(0x00ff00)
	.setFooter({
		text: 'This is a footer',
		icon_url: 'https://google.com',
	})
	.setTimestamp()
	.addField({
		name: 'Field 1',
		value: 'Hello, world!',
		inline: true,
	})

hook.addEmbed(embed).send()

hook
	.setTTS(true)
	.setContent('Hello, world!')
	.setUsername('Webhook')
	.setAvatarUrl('https://google.com')
	.send()
1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.0.5

5 months ago