-
Notifications
You must be signed in to change notification settings - Fork 2
/
examples.ts
61 lines (58 loc) · 1.33 KB
/
examples.ts
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { Embed, Webhook } from './src'
const hook = new Webhook('YOUR VALID DISCORD WEBHOOK')
const embed = new Embed()
embed
.setTitle('Genshin Impact Daily Check-In')
.setDescription('OK')
.setColor('#e86d82')
.setThumbnail({
url: 'https://upload-static.hoyoverse.com/event/2021/02/25/f4450e0ef470f777fca0b3dd95813734_1653002626503274756.png',
})
.setAuthor({
name: 'Paimon',
icon_url:
'https://img-os-static.hoyolab.com/communityWeb/upload/1d7dd8f33c5ccdfdeac86e1e86ddd652.png',
url: 'https://genshin.hoyoverse.com',
})
.setFooter({
text: 'Genshin Impact Automatic Checkin',
icon_url:
'https://img-os-static.hoyolab.com/communityWeb/upload/1d7dd8f33c5ccdfdeac86e1e86ddd652.png',
})
.setTimestamp()
.addField({
name: 'Nickname',
value: 'FrozenNight',
inline: true,
})
.addField({
name: 'UID',
value: '828080902',
inline: true,
})
.addField({
name: 'Level',
value: '59',
inline: true,
})
.addField({
name: 'Server',
value: 'Asia',
inline: true,
})
.addField({
name: "Today's rewards",
value: `Primogem x 20`,
inline: true,
})
.addField({
name: 'Total Daily Check-In',
value: '30',
inline: true,
})
.addField({
name: 'Check-in result:',
value: 'OK',
inline: false,
})
hook.addEmbed(embed).send()