framework

✨ A framework to create discord bots with discord.js. Modular | Flexible | Powerful | Development | Interactions

MIT License

Downloads
134
Stars
48
Committers
5

Bot releases are hidden (Show)

framework - Version 4.2.1 Latest Release

Published by Smaug6739 almost 2 years ago

[4.2.1] - December 27, 2022

Fixed

  • [Types]: Add typings for all structures & managers
framework - Version 4.2.0

Published by Smaug6739 almost 2 years ago

[4.2.0] - December 26, 2022

Refactor

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

Published by Smaug6739 almost 2 years ago

[4.1.1] - October 29, 2022

Fixed

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

Published by Smaug6739 almost 2 years ago

[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).
framework - Version 4.0.3

Published by Smaug6739 about 2 years ago

[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)
framework - Version 4.0.2

Published by Smaug6739 about 2 years ago

[4.0.2] - August 1, 2022

typings

  • Fix typings: Add typings
framework - Version 4.0.1

Published by Smaug6739 about 2 years ago

[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)
framework - Version 4.0.0

Published by Smaug6739 about 2 years ago

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
framework - Version 3.4.3

Published by Smaug6739 over 2 years ago

[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)
framework - Version 3.4.2

Published by Smaug6739 over 2 years ago

[3.4.2] - May 3, 2022

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

Published by Smaug6739 over 2 years ago

[3.4.1] - March 23, 2022

  • Buttons: Fix remove console.log (bf556a7)
framework - Version 3.4.0

Published by Smaug6739 over 2 years ago

[3.4.0] - March 21, 2022

Added

framework - Version 3.3.4

Published by Smaug6739 over 2 years ago

[3.3.4] - February 26, 2022

Fixed

  • Buttons : Fix regex match for global flag (639de8a).
  • SelectMenus Fix regex match for global flag (ff10711).
framework - Version 3.3.3

Published by Smaug6739 over 2 years ago

[3.3.3] - February 12, 2022

Fixed

  • Listeners: Fix async functions for inhibitors and events (once and no once) (33bbdf8).
framework - Version 3.3.2

Published by Smaug6739 almost 3 years ago

[3.3.2] - December 22, 2021

Fixed

  • Command: Fix bug in command message argument caused by order of properties (f23193c)
framework - Version 3.3.1

Published by Smaug6739 almost 3 years ago

[3.3.1] - December 22, 2021

Fixed

  • CommandsManager: The default property is now optional (3019c2e)
framework - Version 3.3.0

Published by Smaug6739 almost 3 years ago

[3.3.0] - December 22, 2021

Added

  • CommandManager: Add default object in options for set default values in commands (b893913).
  • EventsManager: Add default object in options for set default values in events (8127b56)
  • InhibitorsManager: Add default object in options for set default values in inhibitors (8127b56)
  • DevelopmentMode: Add duplicate class check (03de4ad)

Changed

  • ShewenyClientOptions: Add default object in options for set default values in commands (8127b56 8127b56)

Fixed

  • Command: Fix type property, now optional (1807dc6)
framework - Version 3.2.0

Published by Smaug6739 almost 3 years ago

[3.2.0] - December 20, 2021

Added

  • Managers: Add base manager export (4561a68)
  • Command: Add usage and examples in structure (70dda8d)
  • Client: Add connected propertie (b8bf7d1)

Changed

  • Structures: Refactor structures (bff12bb)

Fixed

  • Client: Fix awaitReady() method when the client is already loged (b8bf7d1)
  • Managers: Fix loadAll errors display (13f48f7)
framework - Version 3.1.0

Published by Smaug6739 almost 3 years ago

[3.1.0] - 2021-11-12

Added

  • Github: Add changelog file (#fbfd789)
  • Setup CodeQL for code analysis (#8e45f7d)
  • Github: Add pull-request template (#6d17fc1)

Changed

Fixed

  • Structures: Fix errors display (#d6ee4f1)
  • Github: Fix readme syntax (#24ad787)
framework - Version 3.0.3

Published by Smaug6739 almost 3 years ago

Version 3.0.3 is here !

Changelog :

Fix the cooldown parameters (undefined in some cases)
Fix the readme example code
Fix version required

Improve the readme style