Skip to content

Releases: open-discord-bots/open-ticket

Open Ticket v4.2.1

Choose a tag to compare

@DJj123dj DJj123dj released this 01 Jun 17:37
8a2fa0b

Improved

  • Modal file uploads are now sent as attachments to prevent files from disappearing after 72 hours
  • Updated Open Discord Framework to v2.0.2

Fixed

  • Fixed ticket command not working with replyOnTicketCreation because of modal responder issues
  • (API) Fixed plugins not loading on Windows due to filesystem issues
  • (API) Fixed modal responders crashing when reply was already sent
  • (API) Fixed Open Discord shared components not able to set build/return type

Removed

  • Removed deprecated panel entries in database.
    • They have been replaced with message states in v4.2
  • Moved sponsor/contributor lists to a separate repository

Open Ticket v4.2.0

Choose a tag to compare

@DJj123dj DJj123dj released this 27 May 16:52
849c688

💡 Still want to customise categories for individual ticket options?

Use the new OT Advanced Categories plugin as a replacement for the old category customisability from config/options.json.

Added

  • Added 5 new modal question types (config/questions.jsonc)
    • Dropdown Questions
    • Radio Select Questions
    • Checkbox Select Questions
    • File Upload Question
    • Text Display Question
  • Added Sub-Panel options to create panels-in-panels (config/options.jsonc)
  • Added a priority dropdown (below the ticket message buttons)
  • Added closed ticket channel emoji's (e.g. 🔐)
  • Added /transcripts history command
  • Added description properties to all question types
  • Set maximum buttons per row in panels
  • Create tickets for another user using /ticket <user>
  • Config files changed from JSON --> JSONC
  • Added help comments to all config files
  • New OT v4.2 translations
  • New Khmer translations (Cambodja) (@yuuslokrobjakkroval)

Improved

  • Updated English translations (@DJj123dj)
  • Updated German translations (@imLudwig)
  • Updated Docker workflow & setup (@MauroDruwel)
  • Permissions are now checked before showing the Verify buttons, rather than after the ✅ button is clicked
  • Dropdown panels now support role and sub-panel options
  • The following error messages will now be deleted automatically:
    • Responder Timeout Errors
    • Channel Rename Errors
    • Channel Category Errors
  • Complete verifybar overhaul:
    • Added Accept label to ✅
    • Added Cancel label to ❌
    • Improved button reaction speed
    • Improved plugin support
    • Improved accessibility
  • Moved closeCategory, backupCategory, claimedCategories to config/general.jsonc
  • Added plugin events for priority & topic change actions
  • Added server & DM logs for /priority set
  • Added server & DM logs for /topic set
  • Added server & DM logs for /transfer
  • Complete README overhaul:
    • Added new features list with custom icons
    • Added new sponsors list (and moved to top of README)
    • Added new contributors list
    • Added new preview images
  • Moved general.jsonc config system.permissions to permissions
  • Moved general.jsonc config system.logs to logs
  • Moved general.jsonc config system.messages to logs.logMessages

Fixed

  • Fixed: missing OTv4.1 translations
  • Fixed: Reaction role reply glitching with replyOnReactionRole:false
  • Fixed: Unknown Errors now include timestamps in the otdebug.txt file
  • Fixed: Backup category doesn't work
  • Fixed: Emoji's not working with /rename command
  • Fixed: Renamed channels reverting to their original name when closed, pinned or assigned a priority
  • Fixed: Added hardcoded limit of 1000 characters in short & paragraph questions to prevent errors with embed field limits
  • Fixed: Bot not starting without administrator permissiosn in server
  • Fixed: README.md link "Navigate to Quick Setup" not working (@mods-hd)
  • Fixed: /ticket command not checking blacklist, cooldown or limits when a modal with questions was sent
  • Fixed: FJS Formatters 'undefined' not allowed in JSON errors
  • Fixed: FJS Formatters producing random trailing comma's
  • Fixed: Text commands displayed incorrect timeout errors when deferred

Removed

  • Removed Ticket Option channel.closedCategory (now at config/general.jsonc)
  • Removed Ticket Option channel.backupCategory (now at config/general.jsonc)
  • Removed Ticket Option channel.claimedCategory (now at config/general.jsonc)
  • Removed plugin list from README (now at https://odplugins.dj-dj.be)

API Changes

  • (API) Transfered shared Open Ticket API to the Open Discord Framework
  • (API) Added Components v2 support for messages & modals (modules/components.ts)
  • (API) Integrated _Default classes in the base classes
  • (API) Renamed ...ManagerIds_Default interfaces to ...ManagerIdMappings
  • (API) Type definitions are now defined in ./src/core/mappings/
  • (API) Added ODMemoryConfig class for temporary in-memory configs
  • (API) Added ODJsonCommentsConfig class for JSONC config files
  • (API) Updated Formatted Json Stringify to v1.3.2
  • (API) Added errFilename to FJS for easy debugging
  • (API) Added JSONC support to Formatted Json Stringify
  • (API) Added @open-discord-bots/framework dependency
  • (API) Functions without implementation are now marked as abstract
  • (API) Added message states for storing additional metadata in the database (ODStateManager)
  • (API) ODCheckerEnabledObjectStructure now checks disabled objects by default unless specified
  • (API) opendiscord:version is now synced with package.json
  • (API) opendiscord:api version is now synced with package.json
  • (API) Reduced code and bundle size which improves typescript compiler performance
  • (API) Imports and files now use MJS instead of CJS (.js extension in imports required)
  • (API) Added utility function getMessageFromBuildResult() for sending build results to channels
  • (API) Ticket categories are now calculated in the opendiscord:calculate-ticket-category action
  • (API) Ticket renames are now calculated in the opendiscord:calculate-ticket-name action
  • (API) New Naming Conventions:
    • Renamed ODStat classes to ODStatistic & ODStatisticManager (module: stat.ts --> statistic.ts)
    • Renamed ODCode classes to ODTask & ODTaskManager (module: code.ts --> task.ts)
    • Renamed ODConsole...Message to OD...ConsoleMessage
    • Renamed Source to Origin in all ODWorker related classes (incl. actions, builders, responders)
    • Renamed ODMessageBuildSentResult to ODResponderSendResult
    • Renamed ODClientManager.fetchGuildChannelMessage() to fetchChannelMessage()
    • Replaced #func() methods with typescript: private func()
    • Replaced #prop properties with typescript: private prop
  • (API) Removed the following ODOption data variables:
    • opendiscord:channel-category-closed
    • opendiscord:channel-category-backup
    • opendiscord:channel-categories-claimed

Open Ticket v4.1.3

Choose a tag to compare

@DJj123dj DJj123dj released this 16 Feb 09:39
ddae7b5

Added

  • New backwards compatible plugin.json format (by @SKaranjaN)
    • Added "contributors"
    • Added "supportedVersions"

Improved

  • Required Npm dependencies are now validated before typescript compilation (by @SKaranjaN)
  • Updated italian translation (by @imperatorix17)
  • Updated french translation (by @guillee3)
  • Updated lithuanian translation (by tsgindrius)
  • Updated all remaining missing translations using AI
  • Redesigned README.md

Fixed

  • Fixed unintended cooldown bug with modals (now activated when a ticket is created)

Open Ticket v4.1.2

Choose a tag to compare

@DJj123dj DJj123dj released this 06 Feb 20:26
90851f8

Improved

  • Updated German translation for v4.1 ( @BENZORICH )
  • API cleanup for the permission system (improved readability)

Fixed

  • Fixed Unknown Interaction error on ticket creation while the user is on cooldown
  • Fixed Unknown Interaction error in different places by updating modal responder systems
  • Fixed autocomplete error when the /ticket or /panel command has more than 25 options
  • Fixed Unknown Member error when generating a transcript of a ticket where the creator left the server
  • Fixed Unknown Member error in the permission system where fetchGuildMember() was used incorrectly
  • Admins are now able to delete tickets where no message has been sent with allowCloseBeforeMessage enabled
  • Replaced deprecated function fetchPinned() with a new alternative

Open Ticket v4.1.1

Choose a tag to compare

@DJj123dj DJj123dj released this 16 Nov 10:46
d31be1b

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.

Improved

  • Added 7 new translations for v4.1 sentences.
  • The initial quick setup CLI can now create up to 10 tickets in a row instead of the previous limit of 5.
  • Updated discord.js, ansis & typescript package versions.

Fixed

  • Fixed plugins not loading on windows (again).
  • Fixed The reply to this interaction has already been sent or deferred with interaction.defer().
  • Fixed the quick setup CLI using v4.0.6 instead of the current version in the JSON config.
  • Fixed a typo in the Dutch translation.

Open Ticket v4.1.0

Choose a tag to compare

@DJj123dj DJj123dj released this 09 Nov 18:14
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.

Open Ticket v4.0.7

Choose a tag to compare

@DJj123dj DJj123dj released this 24 Jun 08:47
3b3c0af

Added

Improved

  • Updated livestatus messages

Fixed

  • Fixed config checker UniqueIdArray checker ignoring invalid string inputs (by @guillee3)

Removed

nothing

Open Ticket v4.0.6

Choose a tag to compare

@DJj123dj DJj123dj released this 31 May 09:01
a12f601

Added

  • Persian language translation
  • Added recommended hostings to README.md

Improved

  • Updated discord.js version to v14.19.3

Fixed

  • Fixed crash when registering slash commands and a non-chatinput command already exists in the bot.
  • General stability improvements.

Removed

nothing

Open Ticket v4.0.5

Choose a tag to compare

@DJj123dj DJj123dj released this 03 May 19:10
b965a4f

Added

nothing

Improved

  • (API) Decreased boilerplate parameters in the QuickBuilder classes.

Fixed

  • Fixed ticket suffixes not counting when used with the ot-sqlite-database plugin.
  • Panels are now required to have at least 1 option.

Removed

nothing

Open Ticket v4.0.4

Choose a tag to compare

@DJj123dj DJj123dj released this 01 May 12:11
5d0776a

Added

  • Support for HTML Transcripts v2.1
  • HTML Transcripts now have a data upload limit of 5MB (without images) (+/- 3000 messages)

Improved

  • General transcript improvements (updated layout, more stats, performance, ...)

Fixed

  • HTML Transcripts crashing for some reason.

Removed

  • 16 second timer for transcript generation (not required anymore)