djs-button-pages

Simple yet powerful and extensible module to create fully-customizable embed pages with buttons.

APACHE-2.0 License

Downloads
71
Stars
5
Committers
1

Bot releases are visible (Hide)

djs-button-pages - 4.0.0 for DJS14 Latest Release

Published by i-Moony almost 2 years ago

♻ Changelog:

All notable changes to this project will be documented here.

4.0.0 (2022-12-18)

♻ Refactor:

  • PaginationData & BasicPagination: merge into PaginationWrapper.
  • PaginationData: appeared as interface.
  • PaginationSent: separate from the PaginationWrapper.
  • PaginationWrapper: manages only data for pagination.
  • PaginationSent: manages only a sent pagination. Data is immutable.
  • ButtonData: rename to ButtonWrapper and merged with CustomButton.
  • ButtonStyling interface: rename to ButtonData.
  • Pre-built buttons: now belong to a separate package.
  • Constants: use camelCase instead SNAKE_CASE.
  • Utils: are moved to a separate files.
  • CollectorOptions: merge with FilterOptions.
  • AfterSending type: rename to AfterSendingAction.
  • OnStop type: rename to StopAction.
  • ButtonDisableWhen type: rename to ButtonSwitch.
  • ButtonAction & ButtonSwitch: whole new API.
  • FilterOptions: now allowedUsers are stored there.

🌌 Features:

  • PaginationSent: now paginations are not updated automatically after button's action.
  • PaginationSent: add update() method that updates message/interaction.
  • PaginationSent: add delete() method that deletes message/interaction.
  • PaginationSent: add setPage() method that sets page number.
  • PaginationSent: add stop() method that stops pagination.
  • ButtonData: remove disabled option.
  • PaginationWrapper: remove insertEmbeds() and removeEmbeds() methods.
  • Promised type: appear for values that are either promise or synchronous.
  • PaginationSend & PaginationWrapper: add BeforeStopAction.
  • PaginationState: appear to represent PaginationSent's state.
  • ButtonAction: now receives interaction object.
djs-button-pages - 3.0.0 for DJS13

Published by i-Moony almost 2 years ago

3.0.0 (2022-12-18)

♻ Refactor:

  • PaginationData & BasicPagination: merge into PaginationWrapper.
  • PaginationData: appeared as interface.
  • PaginationSent: separate from the PaginationWrapper.
  • PaginationWrapper: manages only data for pagination.
  • PaginationSent: manages only a sent pagination. Data is immutable.
  • ButtonData: rename to ButtonWrapper and merged with CustomButton.
  • ButtonStyling interface: rename to ButtonData.
  • Pre-built buttons: now belong to a separate package.
  • Constants: use camelCase instead SNAKE_CASE.
  • Utils: are moved to a separate files.
  • CollectorOptions: merge with FilterOptions.
  • AfterSending type: rename to AfterSendingAction.
  • OnStop type: rename to StopAction.
  • ButtonDisableWhen type: rename to ButtonSwitch.
  • ButtonAction & ButtonSwitch: whole new API.
  • FilterOptions: now allowedUsers are stored there.

🌌 Features:

  • PaginationSent: now paginations are not updated automatically after button's action.
  • PaginationSent: add update() method that updates message/interaction.
  • PaginationSent: add delete() method that deletes message/interaction.
  • PaginationSent: add setPage() method that sets page number.
  • PaginationSent: add stop() method that stops pagination.
  • ButtonData: remove disabled option.
  • PaginationWrapper: remove insertEmbeds() and removeEmbeds() methods.
  • Promised type: appear for values that are either promise or synchronous.
  • PaginationSend & PaginationWrapper: add BeforeStopAction.
  • PaginationState: appear to represent PaginationSent's state.
  • ButtonAction: now receives interaction object.
djs-button-pages - 2.1.3

Published by i-Moony almost 2 years ago

Stable release of legacy version.

djs-button-pages - 2.0.2

Published by i-Moony over 2 years ago

  • Bufixes
  • Typo fixes
  • Some refactoring
  • Some splitting
djs-button-pages - 1.0.5 Add & Improve

Published by i-Moony over 2 years ago

Aditions

  • Made an option for completing a certain action after the pagination was sent.
  • Made an option for completing a certain action after the pagination stopped.

Improvements

  • Improved documentation.
  • Improved collector creation.

Fixes

  • Fixed channel types for ChannelPagination. Now all TextBasedChannels can be passed as argument.
djs-button-pages - 1.0.4 (FilterOptions update)

Published by i-Moony over 2 years ago

  • Include idling.
  • Allow to disable notThatUser reply.
djs-button-pages - 1.0.2 (More typed release)

Published by i-Moony over 2 years ago

Update that makes working with this package with typescript easier.

  • Button action now is a separate type.
  • Button disableWhen now is a separate type.
djs-button-pages - 1.0.1 (Bugfix release)

Published by i-Moony over 2 years ago

FilterOptions are also exported now (TypeScript purpose).

djs-button-pages - 1.0.0

Published by i-Moony over 2 years ago

Paginations, custom buttons and more...

Package Rankings
Top 10.95% on Npmjs.org
Related Projects