Constructor
new DBP.InteractionReactionPages(data);
new DBP.InteractionReactionPages(data);
Paramenter | Type | Optional | Default | Description |
---|---|---|---|---|
data |
✔️ |
{}
|
Easily making interaction/application button page embeds with InteractionReactionPages. |
reset()
Properties
.embedsThe embed of discord.js MessageEmbed
Type: ?Array <MessageEmbed>.duration
The duration of this option functions to stop embed pages according to the time set
Type: ?Number.countPage
The counting page of this InteractionReactionPages
Type: ?Boolean.emoji
The emoji of this InteractionReactionPages
Type: ?Array < string >Examples of use Array for emoji options
["option 1", "option 2", "option 3"]
Description :
option 1 -> For previous reaction.
option 2 -> For stop reaction.
option 3 -> For stop reaction.
reset()
Methods
.setEmbeds([embed])
Set embed discord.js to this InteractionReactionPages.
Paramenter | Type | Description |
---|---|---|
embed |
The embed of discord.js MessageEmbed. |
.setDuration(time)
Set duration of this InteractionReactionPages.
Paramenter | Type | Default | Description |
---|---|---|---|
time |
30000
|
The duration when bot will stop the embed pages / interaction. |
.setCountPage(count)
Set count pages of this InteractionReactionPages.
Paramenter | Type | Default | Description |
---|---|---|---|
count |
true
|
The count pages of this InteractionReactionPages. |
.setEmojiReaction([previous, stop, next])
Set emoji of this InteractionReactionPages.
.toJSON()
Transforms the InteractionReactionPages to a plain object.