-
Notifications
You must be signed in to change notification settings - Fork 59
/
button.js
67 lines (59 loc) · 1.71 KB
/
button.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
const {
Client,
Message,
MessageEmbed
} = require('discord.js')
const {
pagination
} = require('reconlx')
exports.run = async (client, message, args, level) => { // eslint-disable-line no-unused-vars
const language = client.getSettings(message.guild.id).language
const lang = require("../lib/languages/" + language + ".json")
try {
let embed1 = new MessageEmbed().setTitle('one')
let embed2 = new MessageEmbed().setTitle('two')
let embed3 = new MessageEmbed().setTitle('three')
let embed4 = new MessageEmbed().setTitle('four')
let embed5 = new MessageEmbed().setTitle('five')
let embed6 = new MessageEmbed().setTitle('six')
let embed7 = new MessageEmbed().setTitle('seven')
let embed8 = new MessageEmbed().setTitle('eight')
let embed9 = new MessageEmbed().setTitle('nine')
let embed10 = new MessageEmbed().setTitle('ten')
let embeds = [
embed1,
embed2,
embed3,
embed4,
embed5,
embed6,
embed7,
embed8,
embed9,
embed10
]
pagination({
embeds: embeds,
channel: message.channel,
author: message.author,
fastSkip: true,
pageTravel: true,
max: 0
})
} catch (err) {
const errors = require('../modules/errors.js')
errors.embedError(err, lang, message)
}
}
exports.conf = {
enabled: false,
aliases: ['btn'],
guildOnly: false,
permLevel: 'User'
}
exports.help = {
name: 'button',
category: 'Utility',
description: 'Example button navigation menu.',
usage: 'button'
}