-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.ts
More file actions
31 lines (25 loc) · 573 Bytes
/
Copy pathtest.ts
File metadata and controls
31 lines (25 loc) · 573 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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()