1.0.5 • Published 2 years ago

dumdiscord.js v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

��# dumdiscord.js

Functions

selectMenuPaginator

A select menu paginator. Builds an index embed and a select menu for you, unless you specify other options.

Works for both interaction and message events.

ParameterTypeOptionalDefaultDescriptionminmax
actionObjectfalseInteraction or message event.11
embedsArrayfalseAn array of embeds.125
optionsObjecttrue{}An object of options.
OptionTypeDefaultDescriptionminmax
indexDiscord Embedtitled and descriptive embedSets the index embed
rowDiscord Action Rowlabeled and descriptive componentSets the select menu's options
idstring<action ID>-menuSets the custom ID for the action row
filterfunctionSets a filter function for conditions to interact with the paginator
timenumber300000Sets a time of when the collector should end (ms)0+
sendbooleanfalseWhether the paginator should be a reply or not.

buttonPaginator

A button paginator. Builds a button paginator for you, you can specify other emotes with options.

Works for both interaction and message events.

ParameterTypeOptionalDefaultDescriptionminmax
actionObjectfalseInteraction or message event.11
embedsArrayfalseAn array of embeds.125
optionsObjecttrue{}An object of options.
OptionTypeDefaultDescriptionminmax
buttonsarray"�#", "�%�", "�#�", "�%�", "�#"Sets the emotes for the buttons.55
indexnumber0Sets the index embed0max length of the embed array
filterfunctionSets a filter function for conditions to interact with the paginator
timenumber300000Sets a time of when the collector should end (ms)0+
sendbooleanfalseWhether the paginator should be a reply or not.

reply

A simple reply checker for deferred and replied messages, or neither.

This works for both interaction and message events.

ParameterTypeDescription
actionObjectInteraction or message event.
optionsObjectYour standard discord.js message
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago