Skip to content

Open Ticket v4.1.0

Choose a tag to compare

@DJj123dj DJj123dj released this 09 Nov 18:14
· 113 commits to main since this release
16f1be3

How do I use the new Interactive Setup CLI?

Start the interactive CLI by running npm run setup. Then follow the instructions of the CLI itself. For questions, please visit our discord server.

Added

  • Added the Interactive Setup CLI & Quick Setup CLI tools to configure the bot. (npm run setup)
  • Added /topic set command (change ticket topic).
  • Added /priority set,get command (change ticket priority).
  • Added /transfer command (transfer ticket ownership).
  • Added a dynamic & customisable channel topic to tickets (general.json).
  • Added a ticket priority system with different levels and a channel emoji.
  • Added "status"."state" to provide a bot status state (general.json).
  • Added the ability to pin the first ticket message (general.json).
  • Added the ability to choose a custom pin emoji instead of 📌 (general.json).
  • Added a user-nickname option for channel suffixes (by @duboiss).
  • Added a toggle to disable closing/deleting a ticket before a message is sent.
  • Added a toggle to disable closing/deleting a ticket before an admin message is sent.
  • Added a toggle to only allow globalAdmins to delete a ticket without transcript.
  • Added a toggle to display embed fields together with question answers.
  • Added a toggle to always show the reason in the embed, even if there isn't any.
  • Added a toggle to also show global admins in panel admin lists.
  • Added a toggle to disable autoclose after the ticket got reopened. (Improved autoclose)
  • Added a toggle to only autodelete tickets that are already closed. (Improved autodelete)
  • Added reaction role server & dm logs.
  • Added --silent flag to stop console output from logs
  • Configs will now also be migrated when switching Open Ticket versions.
  • Added slow mode for ticket options (options.json).
  • Added 11 new statistics, including: (Ticket Volume, Average Tickets/User, Tickets Transferred, Current Tickets, System Uptime, Ticket Age, Message Amount, ...)

Improved

  • Disabled plugins will now show up as (+... disabled plugins) in the start screen.
  • /panel, /ticket & /move options are now using autocomplete interactions.
  • Renamed "status"."status" to "status"."mode" (config/general.json).
  • roleAdding & roleRemoving message settings have been merged into reactionRole
  • Improved the autoclose/autodelete system.
  • Renamed panel Roles: to Admins: for improved clarity.
  • The config checker will now also include humanized index numbers (e.g. 1st, 2nd, 3rd, 4th, ...).
  • Panels now also show global admin roles in the Admins: ... list.
  • Updated README.md & License Terminoligy
  • Updated translations for english, dutch, indonesian, hindi, thai, catalan, estonian & finnish (by our community translators 😎).

Fixed

  • Fixed links to documentation & tutorial.
  • Fixed missing translations from v4.0.0.
  • Fixed small typescript & autocomplete issues.
  • Fixed config checker typo's.
  • Fixed some commands not showing up in the /help menu.
  • Fixed User Ticket Commands category not showing up in the /help menu.
  • Fixed order of certain ticket statistics.
  • Fixed database (Formatted JSON Stringify) not accepting newlines & escaped characters.
  • Fixed plugins not working on windows when not located in the C:\\ drive.
  • Fixed most async-array issues (array.forEach(async () => {...})).
  • Fixed error Unable to register permissions for globalAdmin.

Removed

  • (API) Removed deprecatedODManagerRedirectHelper.
  • (API) Removed old migration functions from openticket:... to opendiscord:....
  • (API) Removed deprecated source and identifier properties from ODId, replaced by functions.

API Changes

  • (API) Added ODQuickMessage builder for plugins
  • (API) Added support for autocomplete interactions (ODAutocompleteResponder)
  • (API) Added support for context menu interactions (ODContextMenuResponder)
  • (API) New opendiscord:silent flag in ODFlagManager
  • (API) New config checker string validators: invertedContains, lowercaseOnly, uppercaseOnly, noSpecialCharacters, withoutSpaces, capitalLetterWarning, punctuationWarning.
  • (API) New config checker number validators: invertedContains, nanAllowed.
  • (API) Config checker structure {...optional:boolean,priority:number,...} are now optional for increased readability.
  • (API) The pendiscord:create-ticket-permissions action now supports a customReason to help with creating custom ticket restriction plugins.
  • (API) Added ODCheckerManager.createTemporaryCheckerEnvironment() for using the config checker outside of checking config files.
  • (API) Added Interactive Setup CLI properties to config checker structures.
  • (API) ODClientManager.getGuilds() is now async-based.
  • (API) Added ODClientManager.contextMenus.
  • (API) Added ODClientManager.autocompletes.
  • (API) Added ODConfig.reload() (reload config).
  • (API) Added ODConfig.save() (save changes to the config like the interactive setup CLI).
  • (API) Added a formatter option to ODJsonConfig when saving data.
  • (API) Added ODConsoleManager.silent property.
  • (API) Added ODStatScope.getAllStats() for getting a stat of all users, tickets, ...
  • (API) Added ODPriorityLevel & ODPriorityManager.
  • (API) Added ODTranscriptCollector.ticketUserMessagesAnalysis() to analyse ticket messages.
  • (API) Npm package terminal-kit is required for the interactive setup CLI.