dishook
/
1.0.6
dishook 1.0.6
Install from the command line:
Learn more about npm packages
$ npm install @cvyl/dishook@1.0.6
Install via package.json:
"@cvyl/dishook": "1.0.6"
About this version
Simple Discord Webhook Wrapper
π Homepage
npm install
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()
- Website: lgbt.sh
- Github: @ly-nld
- Issues: issues page.