Releases: i-Moony/djs-button-pages
Releases · i-Moony/djs-button-pages
4.0.0 for DJS14
♻ 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 withCustomButton
. - 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
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 withCustomButton
. - 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
2.0.2
1.0.5 Add & Improve
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)
- Include idling.
- Allow to disable notThatUser reply.
1.0.2 (More typed release)
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)
FilterOptions are also exported now (TypeScript purpose).