Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discord-slider

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-slider

Allow you to easily create beautiful page slider for your discord.js bot

  • 1.1.3
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by25%
Maintainers
1
Weekly downloads
 
Created
Source

discord-slider Gif example


discord-slider is a package that allow you to easily create multipage help commands (for example) with buttons.

Install

npm install discord-slider

Setup

const discord = require('discord.js');
const client = new discord.Client();
require('discord-slider')(client); // must be below your discord.Client()

If you want to use discord-buttons, you don't need to put require("discord-buttons"). discord-slider is based on discord-buttons and automatically setup it.


Example

channel.createSlider(userID, [embed0, embed1, embed2, embed3])
  • The order of the embeds in the array will be the order of the pages.
  • userID is needed to restrict buttons usage to the user who requested the command.

After 5 minutes, the buttons will become disabled.


Contact

Discord

Keywords

FAQs

Package last updated on 31 May 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc