Releases: cobaltt7/strife.js
Releases · cobaltt7/strife.js
v4.3.0
- Rename
RootCommandData
,RootCommandOptions
,RootCommandHandler
, andAugmentedRootCommandData
toFlatCommandData
,FlatCommandOptions
,FlatCommandHandler
, andAugmentedFlatCommandData
respectively- The old names remain as deprecated aliases and will be removed in the next major version
- Rename
Event
type toEventHandler
and give it a type param- The old type is deprecated yet will remain until the next major version
- Rename
ClientEvent
type toStrifeEvents
- The old name remains as a deprecated alias and will be removed in the next major version
- Replace the
ReservedClientEvent
type with thereservedClientEvents
constant- The old type is deprecated yet will remain until the next major version
- Export
allEvents
andpreEvents
objects - Allow selecting media channels in channel commands by default
- Add
PreEventHandler
,ButtonHandler
,ModalHandler
,SelectHandler
types - Export
PaginateOptions
type - Update all outdated docs (JSDocs and README) and rewrite them where needed
- Fix string and channel option types
- Fix edge case where error logs omitted the stack trace
v4.2.0
v4.1.4
v4.1.3
v4.1.0
- impr: Add many various Discord.JS utility functions that may be helpful for bots
- impr: Add a built-in fully-fledged error handling system
- impr: Add
debug
option - impr: Allow omitting the
modulesDirectory
option to not load any modules - fix: Fix type errors when using Discord.JS 14.15+
- fix: Ignore duplicate guild IDs in
access
- fix: Rename
StringAutocompleteOption
toStringOption
- fix: Slightly improve option types for DM commands
- fix: Remove unused dependency on tslib
- fix: Deprecate the internal
CacheReducer
type - fix: Change Node.JS version requirement from 18.11.1 to 18.11.0
- docs: Add JSDoc to everything
- docs: Add more metadata to package.json and the NPM package listing
- docs: Update recommended
modulesDirectory
to have shorter code - docs: Fix incorrect
@defaults
docs
v4.0.1
3.1.0 attempted to add CJS support, and the many patch and -dev releases following attempted to fix CJS and ESM and TypeScript never working well together. In the end, it failed. I have no idea what works on which versions, if anything. This package will continue to be ESM-only. If you are able to get CJS working with types at the same time as typed ESM, please PR it.
In addition, this release swaps options.<option>.choices
to have the keys be the values passed to your bot and the values are the descriptions. This should result in slightly more concise and clean code.