-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmdEmbed.js
37 lines (34 loc) · 977 Bytes
/
cmdEmbed.js
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
const Discord = require('discord.js');
const createEmbed = () => {
const embed = new Discord.MessageEmbed()
.setColor('#0099ff')
.setTitle('List of Commands')
.setURL('https://discord.js.org')
.setAuthor(
'Package Tracker',
'https://i.imgur.com/jBOX9tl.png',
'https://discord.js.org'
)
.setThumbnail('https://i.imgur.com/jBOX9tl.png')
.addFields(
{
name: 'Track Package',
value: '.track [carrier] [trackingNumber] [note {optional}]',
},
{
name: 'Watch Package',
value: '.watch [carrier] [trackingNumber] [note]',
},
{ name: 'Retrieve Watch List', value: '.list' },
{
name: 'Remove Package from Watch List',
value: '.remove [trackingNumber]',
}
)
.setTimestamp(new Date())
.setFooter('Commands', 'https://i.imgur.com/jBOX9tl.png');
return embed;
};
module.exports = {
createEmbed,
};