JSPM

  • Created
  • Published
  • Downloads 127
  • Score
    100M100P100Q55056F
  • License MIT

Caxinha npm

Package Exports

  • caxinha

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (caxinha) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Pagination example

const Discord = require('discord.js');
const Caxinha = require('caxinha');

module.exports = {
    name: 'pagination',
    run: async (client, message, args) => {
      
        const embed = new Discord.MessageEmbed()
        .setTitle('Title')
        .setDescription('Description')

        const embed2 = new Discord.MessageEmbed()
        .setTitle('Title 2')
        .setDescription('Description 2')

        const embed3 = new Discord.MessageEmbed()
        .setTitle('Title 3')
        .setDescription('Description 3')
        
        const type = 'guild' // const type = 'dm'

        const paginas = [
                embed,
                embed2,
                embed3
        ]

        const emojiList = ["⏪", "⏩"];

        const timeout = '120000';

        Caxinha.pagination(type, message, paginas, emojiList, timeout)

    }
}