Skip to content

aboreda12/ot-claim-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

This plugin introduces the following behavior:

  1. Locks the claim access to a single staff member until they unclaim.
  2. When claimed, hides all ticket admins defined in the plugin config.
  3. Fix for allowing staff to be added to a claimed ticket: In src/commands/add.ts, remove the following block:
const participants = await opendiscord.tickets.getAllTicketParticipants(ticket)
if (!participants || participants.find((p) => p.user.id == data.id)){
    //... send error ...
    return cancel()
}

This allows staff to be re-added after being hidden by the claim lock.

  1. It is recommended to remove staff role IDs from the main bot setup and use only the plugin config for ticket admin roles.

  2. One remaining issue: After unclaiming, all ticket admins should regain full read/write access, but this part is still incomplete. Assistance is welcome.

About

This is a plugin for open ticket discord bot

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors