ODJsonConfig_DefaultOptionTicketType interface
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
This interface is an object which has all ticket properties for options in the options.json config!
Properties
allowCreationByBlacklistedUsers boolean ➜ boolean
When enabled, blacklisted users can still create this ticket type. (used for appeals, etc)
autoclose type ➜ {disableOnClaim:boolean, enableInactiveHours:boolean, enableUserLeave:boolean, inactiveHours:number}
All settings related to autoclosing this ticket type.
autodelete type ➜ {disableOnClaim:boolean, enableInactiveDays:boolean, enableUserLeave:boolean, inactiveDays:number}
All settings related to autodeleting this ticket type.
button interface ➜ api.ODJsonConfig_DefaultOptionButtonSettingsType
All settings related to the button for the 3 option types.
channel type ➜ {backupCategory:string, category:string, claimedCategory:{category:string, user:string}[], closedCategory:string, description:string, prefix:string, suffix:"user-name"|"user-id"|"random-number"|"random-hex"|"counter-dynamic"|"counter-fixed"}
All settings related to the ticket channel itself.
cooldown type ➜ {cooldownMinutes:number, enabled:boolean}
All settings related to the cooldown of this ticket type
inherited description string ➜ string
The description of this option.
dmMessage type ➜ {embed:api.ODJsonConfig_DefaultOptionEmbedSettingsType, enabled:boolean, text:string}
All settings related to the message sent in DM to the creator when the ticket is created.
inherited id string ➜ string
The id of this option.
limits type ➜ {enabled:boolean, globalMaximum:number, userMaximum:number}
All settings related to the limits of this ticket type
inherited name string ➜ string
The name of this option.
questions array ➜ string[]
A list of valid question ids from the questions.json config.
readonlyAdmins array ➜ string[]
A list of discord role ids which are able to access this ticket type but can't write in the chat.
ticketAdmins array ➜ string[]
A list of discord role ids which are able to access this ticket type & use commands.
ticketMessage type ➜ {embed:api.ODJsonConfig_DefaultOptionEmbedSettingsType, enabled:boolean, ping:api.ODJsonConfig_DefaultOptionPingSettingsType, text:string}
All settings related to the message sent in the ticket channel when the ticket is created.
type type ➜ "ticket"
The type of this option. This type also determines the other option-specific variables.