Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
ez-paginator
Advanced tools
Readme
Make discord emoji page easy
npm install ez-paginator # Use yarn if you prefer to use yarn
Example:
// Assume that you're using discord.js
// Eris example and this same example are in example folder
const { Client } = require('discord.js');
const EZPaginator = require('../index');
const client = new Client();
client.on('message', async (msg) => {
if (msg.content.startsWith('> test')) {
const message = await msg.channel.send('Test');
const paginator = new EZPaginator({
client,
msg: message,
contents: ['Test', 'Another!']
});
paginator.start();
}
});
client.login('Your Token');
Paginator(options)
Paginator, make discord emoji page easy.
Constructor
Name | Type | Description |
---|---|---|
options | Object | Options |
Name | Type | Description |
---|---|---|
client | Object | Discord.js or Eris Client |
msg | Object | Message Class |
contents | Array.<string> | Contents |
embeds | Array.<Object> | Embeds (This will overrides contents) |
timeout | number | Reaction timeout |
reactions | Array.<string> | Reactions, first element will move page to prev, and second element will move to next. (If more reactions mode is enabled, first element will move page to first, second and third is same as normal reactions mode, and fourth element will move page to end.) |
moreReactions | boolean | Enables more reactions mode |
(async)
start()Start Function
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2020 Helloyunho
FAQs
Make discord emoji page easy
We found that ez-paginator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).