Skip to content

Releases: Sheweny/framework

Version 4.2.1

27 Dec 09:15
e7d16f0
Compare
Choose a tag to compare

[4.2.1] - December 27, 2022

Fixed

  • [Types]: Add typings for all structures & managers

Version 4.2.0

26 Dec 16:26
c18e6db
Compare
Choose a tag to compare

[4.2.0] - December 26, 2022

Refactor

  • [Internal events]: Refactor internat events loader & support new select-menus (eb6ec5d)

Version 4.1.1

29 Oct 15:52
93e6c10
Compare
Choose a tag to compare

[4.1.1] - October 29, 2022

Fixed

  • [Loader] Fix filter of files only accept .js and .ts files (37dec6f)

Version 4.1.0

28 Oct 19:51
8e1747c
Compare
Choose a tag to compare

[4.1.0] - Octobeer 28, 2022

Added

  • [Loader]: Add asyncRead option to read files asynchronously (improve loading time ~20%-40%) (552dc9e).
  • [ButtonsManager]: Add asyncRead option to load files asynchronously (use the new loader option). Default: false (552dc9e).
  • [CommandsManager]: Add asyncRead option to load files asynchronously (use the new loader option). Default: false (552dc9e).
  • [EventsManager]: Add asyncRead option to load files asynchronously (use the new loader option). Default: false (552dc9e).
  • [InhibitorsManager]: Add asyncRead option to load files asynchronously (use the new loader option). Default: false (552dc9e).
  • [ModalManager]: Add asyncRead option to load files asynchronously (use the new loader option). Default: false (552dc9e).
  • [SelectMenusManager]: Add asyncRead option to load files asynchronously (use the new loader option). Default: false (552dc9e).

Version 4.0.3

03 Sep 13:33
db4781e
Compare
Choose a tag to compare

[4.0.3] - September 3, 2022

Fixes

  • Fix ClientUtil#getX return an array of structures instedof an array of arrays (d588c3f)
  • Fix Structures#enabled use the default values (ab16444)

Version 4.0.2

01 Aug 19:25
4fa2de7
Compare
Choose a tag to compare

[4.0.2] - August 1, 2022

typings

  • Fix typings: Add typings

Version 4.0.1

01 Aug 19:06
53ff7ac
Compare
Choose a tag to compare

[4.0.1] - August 1, 2022

Fixes

  • Fix adminsOnly permission on commands (slash-commands AND message-commands) (cff7c76)
  • Fix ClientUtil#getX return an array of structures instedof an array of arrays (05aaacb)

Version 4.0.0

30 Jul 13:47
a91f715
Compare
Choose a tag to compare

Changelog of V4 🚀

General

  • Improve typings in general (caeb29c)
  • Improve errors management (6f8b2b9)
  • [Cooldowns]: Refactor cooldown system (access in client.cooldowns) #87 (1224753)

Client

  • Collections (client.collections) contain now an array of structures. (cd74b3d)
  • [ShewenyClientOptions]: Add disableCooldownForAdmins option (3fbd807)
  • [ClientUtil]: getX return an array (Array.from(interator)) instedof an iterator. (0cab451)
  • [ClientUtil]: Add resolveCommand function (88d93cd).

Structures

  • [Command]: Fix descriptionLocalizations. (cb13044)
  • [Inhibitor]: Change function execute and onFailure first parapeter is now the structure (client => structure type of BaseStructure) (448f55e)
  • [Command] : Add nameLocalizations and descriptionLocalizations keys in structures. (897f1a1 & ed51bf5)
  • [Command]: userPermissions and clientPermissions is now of type PermissionResolvable[]. (897f1a1 & ed51bf5)
  • [Command]: Fix channel types (add global) (ed51bf5)
  • [Command]: Support slash-commands permissions (897f1a1 & ed51bf5)
  • Possibility to enable or disable structures. (2f054c9)
  • Change register and unregister functions: Return the structure without saving it in a collection. (5ad3c46)
  • Modals support (d084556)
    • [Modal]: Create this structure
  • [Command]: Add "COMMAND" type in message command (88d93cd).
  • [Command]: Add "GLOBAL" type in channel option (2933afd).
  • [Structures]: Allow regular expressions and strings in same array (c7f41b1)

Managers

  • [CommandsManager]: Change type of the prefix key, it can be a function with ctx: Message | Interaction as a parameter. (644888b)
  • [CommandsManager]: Permissions events change signature: (ctx: Message|Interaction, perms: string[], command:Command). (2373369)
  • [CommandsManager]: Add strategies for register application commands. (09f3b49)
  • Managers: Collections can't be null now, however the collections can be empty. (cd74b3d)
  • CommandsManager: Change the getApplicationCommandData prototype : the parameter is the command (Command type) returns: ApplicationCommandData. (92340a9).
  • CommandsManager: Add getAllApplicationCommandData function that take a collection of commands in parameter and returns an array of ApplicationCommandData (ApplicationCommandData[]) (92340a9).

Events

  • Improve errors display on events. (43d3724)
  • Support array of structures in collections. (1f88271)
  • [CommandsManager]: emit invalidChannel event when command is in bad channel (b39ae2c)

Loader V2

  • Support custom project structures
  • Support arrays of structures. (59ef1d2 & cd74b3d)
  • Fix loading cland readonly _id property on loadable classes (BaseStructure) (7b2d691)
  • Add a static, private and readonly _id property on loadable classes (BaseStructure) (7b2d691)
  • Check the instance of structure (42dccc7)
  • Allow multiples exportations per file (42dccc7)
  • Allow mix of structures in files (42dccc7)
  • Remove loadFiles function
  • Remove readDirAndPush function

Version 3.4.3

17 Jun 18:15
677ab37
Compare
Choose a tag to compare

[3.4.3] - June 17, 2022

  • Fix Node.js version in dependencies (14f07f8)
  • Fix version of framework on npm and yarn (14f07f8)
  • Bump discord.js version (677ab37)

Version 3.4.2

03 May 18:10
014d3e4
Compare
Choose a tag to compare

[3.4.2] - May 3, 2022

  • Buttons & Select-menus: Fix, strings and array in same directory (bf556a7)