Skip to content

Releases: i-Moony/djs-button-pages

4.0.0 for DJS14

18 Dec 14:34
Compare
Choose a tag to compare

♻ 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.

3.0.0 for DJS13

18 Dec 14:32
Compare
Choose a tag to compare

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.

2.1.3

23 Nov 06:20
Compare
Choose a tag to compare

Stable release of legacy version.

2.0.2

29 Jun 20:03
Compare
Choose a tag to compare
  • Bufixes
  • Typo fixes
  • Some refactoring
  • Some splitting

1.0.5 Add & Improve

27 Jun 20:18
Compare
Choose a tag to compare

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.

1.0.4 (FilterOptions update)

26 Jun 21:30
Compare
Choose a tag to compare
  • Include idling.
  • Allow to disable notThatUser reply.

1.0.2 (More typed release)

22 Jun 10:49
Compare
Choose a tag to compare

Update that makes working with this package with typescript easier.

  • Button action now is a separate type.
  • Button disableWhen now is a separate type.

1.0.1 (Bugfix release)

22 Jun 09:16
Compare
Choose a tag to compare

FilterOptions are also exported now (TypeScript purpose).

1.0.0

21 Jun 19:43
Compare
Choose a tag to compare

Paginations, custom buttons and more...