-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestpage.js
More file actions
29 lines (26 loc) · 874 Bytes
/
Copy pathtestpage.js
File metadata and controls
29 lines (26 loc) · 874 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
const Pagination = require('discord-paginationembed');
module.exports = {
name: 'testpage',
cooldown: 2,
description: 'Testing pagination using Discord PaginationEmbed utility.',
execute(message, args) {
const FieldsEmbed = new Pagination.FieldsEmbed()
.setArray([{name: 'Lloyd'}, {name: 'Edna'}, {name: 'Rita'}, {name: 'Regal'}, {name: 'Jude'}, {name: 'Magilou'}])
.setAuthorizedUsers([message.author.id])
.setChannel(message.channel)
.setElementsPerPage(2)
.setPage(1)
.setPageIndicator(true)
<<<<<<< HEAD:commands/testpage.js
.formatField('Units:', i => i.name)
.setDeleteOnTimeout(true);
=======
.formatField('', i => i.name)
.setDeleteOnTimeout(false);
>>>>>>> d7bc6be15dd1303643eec5d2fbe2a977c3be43d3:testpage.js
FieldsEmbed.embed
.setColor(0xFF00AE)
.setDescription('**Test Description**');
FieldsEmbed.build();
},
};