* Update index.d.ts
* Create staff_controls.ts
* Don't allow closing of ticket if not manager
* Support locking ticket
* Update to use ticket staff controls in new tickets
* Add externalChannelId for tickets
* Add Full Private Ticket
opens a new channel related to the ticket
* Create private_ticket_staff_controls.ts
* Squashed commit of the following:
commit 185a93ff78
Author: Daniel <46201432+TechGeekGamer@users.noreply.github.com>
Date: Sun Feb 6 18:25:19 2022 -0800
Update meme eta messages
* Add support for modal interactions
* Move check if ticket already exists to open_ticket_prompt
* Add modal to open ticket
* Update open_ticket_prompt.ts
fix message on opening new ticket while already having one open
* Update close_ticket_.ts
* Add Config.incomingFeedbackChannel
* Receive feedback on ticket close
* Update open_ticket.ts
Update modal text
* fix incorrect linking for incoming ticket feedback
* Update close_ticket_.ts
* Open modal on tickets create command
* remove debug console logs
* Create tn_rules.json
* Update index.d.ts
* Message commands moved to msg_commands/
* Add button commands
* Add classes
* Add slash commands
* Create deepsea.ts
* Don't delete ticket msg (wip)
* Move typings to typings/index.d.ts
* Add support for slash commands (WIP)
* Version 3.0.0
* Fix typo in lmgtfy
* Add Command#customId
* Correct indentation on open_ticket.ts
* Load buttons/commands on boot
* Update index.d.ts
* Ignore deepsea_db.json
* Add console logs
* Update cached DeepSea data on boot and every hour
* Fix typo in ButtonCommand class
* Handle button interactions
* Remove default allowedMentions
* Client#closeSupportThread fix archive and lock
* Store thread ID when starting a ticket
* Fix command loading code
* Move ActiveTickets interface to typings
* Rename hasActiveTickets -> activeTickets & save to file
* Move button command loading to function
* Move slash command loading to function
* Move all starting functions to startBot function
* Add activeTickets.json to .gitignore
* Add Client#supportThreadExists
Checks if user has an existing support thread
* Enable source maps
* Rename supportThreadExists -> getSupportThreadData
* Check for existing support thread before making a new one
* Use threadChannelId from activeTickets in client#closeSupportThread
* Get data for closing a ticket from client#getSupportThreadData
* Update createSupportThread & closeSupportThread method
* Add button to view current ticket when attempting to open new ticket
* Automatically delete thread message on thread deletion & release open state
* Update discord.js to 13.3.1
* Update types/node package
* Update packages
* Pin intro message on ticket creation
* Specify customId of command when error
* Fix role check when closing ticket
* Fix errors related to warn command
* Array<string> -> string[]
* Add comments to typings and add ticketCloseMessage prop
* Allow setting a custom message to be shown when a ticket is closed
09cdb81573
* Add support for Context Menu commands
* Add staffOnly prop to classes
- Command
- ContextMenuCommand
- ButtonCommand
* Store when a ticket was created
* Support staffOnly commands
* Add Quote Message CTX command
Reposts a message in the channel specified in config.messageQuoteChannelId
* Add config prop closingTicketsSettings
- Can set a minimum amount of time until a ticket can be closed
- Can set a message to be sent on closing a ticket
* Update close_ticket_.ts
* Add option to prompt before opening a ticket
- Added config.openingTicketPrompt
- Added open_ticket_prompt button (Will open ticket normally if config.openingTicketPrompt.enabled is not set/disabled)
* Update staff checks
* Fix avatar command
* Specify guides are not created by Team Neptune
* Fix rule command
* Update ticket.ts
* Update prompt
* Prompt for information before pinging the support role
* Update index.ts
* Update quote_message.ts
* Update close_ticket_.ts
* Ping support role after first message
* Add check to prevent crashing from invalid interaction
* Update isStaff check
* Allow removing from private ticket
* Update index.d.ts
* Allow switching between Private/Public ticket (staff required)
* Update ticket.ts
Adds support for the ticket feature being added in https://github.com/Team-Neptune/Korral-Interactions/pull/11 by adding the following changes:
* New config prop: `Config.supportChannelId` - Channel to monitor for support threads
* New config prop: `Config.supportRoleId` - Role ID that has access to all tickets, even private ones
* New file: `privateThreads.json` - Stores the threads marked as private and authorized users/roles
* New file: `publicThreads.json` - Stores the threads marked as public and the person who started the ticket
* Send message to people who try to join a private ticket and aren't authorized
* Auto-delete thread creation messages in the specified support channel
* Keeps support threads from archiving by sending a message every 22 hours