BREAKING: changed all ids to "opendiscord:"
This commit is contained in:
@@ -16,101 +16,101 @@ import { ODRole, ODRoleUpdateMode, ODRoleUpdateResult } from "../openticket/role
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODActionManagerIds_Default {
|
||||
"openticket:create-ticket-permissions":{
|
||||
"opendiscord:create-ticket-permissions":{
|
||||
source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",
|
||||
params:{guild:discord.Guild,user:discord.User,option:ODTicketOption},
|
||||
result:{valid:boolean,reason:"blacklist"|"cooldown"|"global-limit"|"global-user-limit"|"option-limit"|"option-user-limit"|null,cooldownUntil?:Date},
|
||||
workers:"openticket:check-blacklist"|"openticket:check-cooldown"|"openticket:check-global-limits"|"openticket:check-option-limits"|"openticket:valid"
|
||||
workers:"opendiscord:check-blacklist"|"opendiscord:check-cooldown"|"opendiscord:check-global-limits"|"opendiscord:check-option-limits"|"opendiscord:valid"
|
||||
},
|
||||
"openticket:create-transcript":{
|
||||
"opendiscord:create-transcript":{
|
||||
source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket},
|
||||
result:{compiler:ODTranscriptCompiler<any>, success:boolean, result:ODTranscriptCompilerCompileResult<any>, errorReason:string|null, pendingMessage:ODMessageBuildSentResult<true>|null, participants:{user:discord.User,role:"creator"|"participant"|"admin"}[]},
|
||||
workers:"openticket:select-compiler"|"openticket:init-transcript"|"openticket:compile-transcript"|"openticket:ready-transcript"|"openticket:logs"
|
||||
workers:"opendiscord:select-compiler"|"opendiscord:init-transcript"|"opendiscord:compile-transcript"|"opendiscord:ready-transcript"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:create-ticket":{
|
||||
"opendiscord:create-ticket":{
|
||||
source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",
|
||||
params:{guild:discord.Guild,user:discord.User,option:ODTicketOption,answers:{id:string,name:string,type:"short"|"paragraph",value:string|null}[]},
|
||||
result:{channel:discord.GuildTextBasedChannel,ticket:ODTicket},
|
||||
workers:"openticket:create-ticket"|"openticket:send-ticket-message"|"openticket:discord-logs"|"openticket:logs"
|
||||
workers:"opendiscord:create-ticket"|"opendiscord:send-ticket-message"|"opendiscord:discord-logs"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:close-ticket":{
|
||||
"opendiscord:close-ticket":{
|
||||
source:"slash"|"text"|"ticket-message"|"reopen-message"|"autoclose"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,sendMessage:boolean},
|
||||
result:{},
|
||||
workers:"openticket:close-ticket"|"openticket:discord-logs"|"openticket:logs"
|
||||
workers:"opendiscord:close-ticket"|"opendiscord:discord-logs"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:delete-ticket":{
|
||||
"opendiscord:delete-ticket":{
|
||||
source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,sendMessage:boolean,withoutTranscript:boolean},
|
||||
result:{},
|
||||
workers:"openticket:delete-ticket"|"openticket:discord-logs"|"openticket:delete-channel"|"openticket:logs"
|
||||
workers:"opendiscord:delete-ticket"|"opendiscord:discord-logs"|"opendiscord:delete-channel"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:reopen-ticket":{
|
||||
"opendiscord:reopen-ticket":{
|
||||
source:"slash"|"text"|"ticket-message"|"close-message"|"autoclose-message"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,sendMessage:boolean},
|
||||
result:{},
|
||||
workers:"openticket:reopen-ticket"|"openticket:discord-logs"|"openticket:logs"
|
||||
workers:"opendiscord:reopen-ticket"|"opendiscord:discord-logs"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:claim-ticket":{
|
||||
"opendiscord:claim-ticket":{
|
||||
source:"slash"|"text"|"ticket-message"|"unclaim-message"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,sendMessage:boolean},
|
||||
result:{},
|
||||
workers:"openticket:claim-ticket"|"openticket:discord-logs"|"openticket:logs"
|
||||
workers:"opendiscord:claim-ticket"|"opendiscord:discord-logs"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:unclaim-ticket":{
|
||||
"opendiscord:unclaim-ticket":{
|
||||
source:"slash"|"text"|"ticket-message"|"claim-message"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,sendMessage:boolean},
|
||||
result:{},
|
||||
workers:"openticket:unclaim-ticket"|"openticket:discord-logs"|"openticket:logs"
|
||||
workers:"opendiscord:unclaim-ticket"|"opendiscord:discord-logs"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:pin-ticket":{
|
||||
"opendiscord:pin-ticket":{
|
||||
source:"slash"|"text"|"ticket-message"|"unpin-message"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,sendMessage:boolean},
|
||||
result:{},
|
||||
workers:"openticket:pin-ticket"|"openticket:discord-logs"|"openticket:logs"
|
||||
workers:"opendiscord:pin-ticket"|"opendiscord:discord-logs"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:unpin-ticket":{
|
||||
"opendiscord:unpin-ticket":{
|
||||
source:"slash"|"text"|"ticket-message"|"pin-message"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,sendMessage:boolean},
|
||||
result:{},
|
||||
workers:"openticket:unpin-ticket"|"openticket:discord-logs"|"openticket:logs"
|
||||
workers:"opendiscord:unpin-ticket"|"opendiscord:discord-logs"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:rename-ticket":{
|
||||
"opendiscord:rename-ticket":{
|
||||
source:"slash"|"text"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,sendMessage:boolean,data:string},
|
||||
result:{},
|
||||
workers:"openticket:rename-ticket"|"openticket:discord-logs"|"openticket:logs"
|
||||
workers:"opendiscord:rename-ticket"|"opendiscord:discord-logs"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:move-ticket":{
|
||||
"opendiscord:move-ticket":{
|
||||
source:"slash"|"text"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,sendMessage:boolean,data:ODTicketOption},
|
||||
result:{},
|
||||
workers:"openticket:move-ticket"|"openticket:discord-logs"|"openticket:logs"
|
||||
workers:"opendiscord:move-ticket"|"opendiscord:discord-logs"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:add-ticket-user":{
|
||||
"opendiscord:add-ticket-user":{
|
||||
source:"slash"|"text"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,sendMessage:boolean,data:discord.User},
|
||||
result:{},
|
||||
workers:"openticket:add-ticket-user"|"openticket:discord-logs"|"openticket:logs"
|
||||
workers:"opendiscord:add-ticket-user"|"opendiscord:discord-logs"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:remove-ticket-user":{
|
||||
"opendiscord:remove-ticket-user":{
|
||||
source:"slash"|"text"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,sendMessage:boolean,data:discord.User},
|
||||
result:{},
|
||||
workers:"openticket:remove-ticket-user"|"openticket:discord-logs"|"openticket:logs"
|
||||
workers:"opendiscord:remove-ticket-user"|"opendiscord:discord-logs"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:reaction-role":{
|
||||
"opendiscord:reaction-role":{
|
||||
source:"panel-button"|"other",
|
||||
params:{guild:discord.Guild,user:discord.User,option:ODRoleOption,overwriteMode:ODRoleUpdateMode|null},
|
||||
result:{result:ODRoleUpdateResult[],role:ODRole},
|
||||
workers:"openticket:reaction-role"|"openticket:logs"
|
||||
workers:"opendiscord:reaction-role"|"opendiscord:logs"
|
||||
},
|
||||
"openticket:clear-tickets":{
|
||||
"opendiscord:clear-tickets":{
|
||||
source:"slash"|"text"|"other",
|
||||
params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:ODTicket[]},
|
||||
result:{list:string[]},
|
||||
workers:"openticket:clear-tickets"|"openticket:discord-logs"|"openticket:logs"
|
||||
workers:"opendiscord:clear-tickets"|"opendiscord:discord-logs"|"opendiscord:logs"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@ import { ODVersion, ODVersionManager, ODValidId } from "../modules/base"
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODVersionManagerIds_Default {
|
||||
"openticket:version":ODVersion,
|
||||
"openticket:last-version":ODVersion,
|
||||
"openticket:api":ODVersion,
|
||||
"openticket:transcripts":ODVersion,
|
||||
"openticket:livestatus":ODVersion
|
||||
"opendiscord:version":ODVersion,
|
||||
"opendiscord:last-version":ODVersion,
|
||||
"opendiscord:api":ODVersion,
|
||||
"opendiscord:transcripts":ODVersion,
|
||||
"opendiscord:livestatus":ODVersion
|
||||
}
|
||||
|
||||
/**## ODFlagManager_Default `default_class`
|
||||
|
||||
+161
-161
@@ -34,35 +34,35 @@ export class ODBuilderManager_Default extends ODBuilderManager {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODButtonManagerIds_Default {
|
||||
"openticket:verifybar-success":{source:"verifybar"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,customData?:string,customColor?:ODValidButtonColor,customLabel?:string,customEmoji?:string},workers:"openticket:verifybar-success"},
|
||||
"openticket:verifybar-failure":{source:"verifybar"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,customData?:string,customColor?:ODValidButtonColor,customLabel?:string,customEmoji?:string},workers:"openticket:verifybar-failure"},
|
||||
"opendiscord:verifybar-success":{source:"verifybar"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,customData?:string,customColor?:ODValidButtonColor,customLabel?:string,customEmoji?:string},workers:"opendiscord:verifybar-success"},
|
||||
"opendiscord:verifybar-failure":{source:"verifybar"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,customData?:string,customColor?:ODValidButtonColor,customLabel?:string,customEmoji?:string},workers:"opendiscord:verifybar-failure"},
|
||||
|
||||
"openticket:error-ticket-deprecated-transcript":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{},workers:"openticket:error-ticket-deprecated-transcript"},
|
||||
"opendiscord:error-ticket-deprecated-transcript":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{},workers:"opendiscord:error-ticket-deprecated-transcript"},
|
||||
|
||||
"openticket:help-menu-previous":{source:"text"|"slash"|"button"|"other",params:{mode:"slash"|"text",page:number},workers:"openticket:help-menu-previous"},
|
||||
"openticket:help-menu-next":{source:"text"|"slash"|"button"|"other",params:{mode:"slash"|"text",page:number},workers:"openticket:help-menu-next"},
|
||||
"openticket:help-menu-page":{source:"text"|"slash"|"button"|"other",params:{mode:"slash"|"text",page:number},workers:"openticket:help-menu-page"}
|
||||
"openticket:help-menu-switch":{source:"text"|"slash"|"button"|"other",params:{mode:"slash"|"text",page:number},workers:"openticket:help-menu-switch"},
|
||||
"opendiscord:help-menu-previous":{source:"text"|"slash"|"button"|"other",params:{mode:"slash"|"text",page:number},workers:"opendiscord:help-menu-previous"},
|
||||
"opendiscord:help-menu-next":{source:"text"|"slash"|"button"|"other",params:{mode:"slash"|"text",page:number},workers:"opendiscord:help-menu-next"},
|
||||
"opendiscord:help-menu-page":{source:"text"|"slash"|"button"|"other",params:{mode:"slash"|"text",page:number},workers:"opendiscord:help-menu-page"}
|
||||
"opendiscord:help-menu-switch":{source:"text"|"slash"|"button"|"other",params:{mode:"slash"|"text",page:number},workers:"opendiscord:help-menu-switch"},
|
||||
|
||||
"openticket:ticket-option":{source:"slash"|"text"|"auto-update"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel,option:ODTicketOption},workers:"openticket:ticket-option"},
|
||||
"openticket:website-option":{source:"slash"|"text"|"auto-update"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel,option:ODWebsiteOption},workers:"openticket:website-option"},
|
||||
"openticket:role-option":{source:"slash"|"text"|"auto-update"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel,option:ODRoleOption},workers:"openticket:role-option"}
|
||||
"opendiscord:ticket-option":{source:"slash"|"text"|"auto-update"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel,option:ODTicketOption},workers:"opendiscord:ticket-option"},
|
||||
"opendiscord:website-option":{source:"slash"|"text"|"auto-update"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel,option:ODWebsiteOption},workers:"opendiscord:website-option"},
|
||||
"opendiscord:role-option":{source:"slash"|"text"|"auto-update"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel,option:ODRoleOption},workers:"opendiscord:role-option"}
|
||||
|
||||
"openticket:visit-ticket":{source:"ticket-created"|"dm"|"logs"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:visit-ticket"},
|
||||
"opendiscord:visit-ticket":{source:"ticket-created"|"dm"|"logs"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:visit-ticket"},
|
||||
|
||||
"openticket:close-ticket":{source:"ticket-message"|"reopen-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:close-ticket"},
|
||||
"openticket:delete-ticket":{source:"ticket-message"|"close-message"|"autoclose-message"|"reopen-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:delete-ticket"},
|
||||
"openticket:reopen-ticket":{source:"ticket-message"|"close-message"|"autoclose-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:reopen-ticket"},
|
||||
"openticket:claim-ticket":{source:"ticket-message"|"unclaim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:claim-ticket"},
|
||||
"openticket:unclaim-ticket":{source:"ticket-message"|"claim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:unclaim-ticket"},
|
||||
"openticket:pin-ticket":{source:"ticket-message"|"unpin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:pin-ticket"},
|
||||
"openticket:unpin-ticket":{source:"ticket-message"|"pin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:unpin-ticket"},
|
||||
"opendiscord:close-ticket":{source:"ticket-message"|"reopen-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:close-ticket"},
|
||||
"opendiscord:delete-ticket":{source:"ticket-message"|"close-message"|"autoclose-message"|"reopen-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:delete-ticket"},
|
||||
"opendiscord:reopen-ticket":{source:"ticket-message"|"close-message"|"autoclose-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:reopen-ticket"},
|
||||
"opendiscord:claim-ticket":{source:"ticket-message"|"unclaim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:claim-ticket"},
|
||||
"opendiscord:unclaim-ticket":{source:"ticket-message"|"claim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:unclaim-ticket"},
|
||||
"opendiscord:pin-ticket":{source:"ticket-message"|"unpin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:pin-ticket"},
|
||||
"opendiscord:unpin-ticket":{source:"ticket-message"|"pin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:unpin-ticket"},
|
||||
|
||||
"openticket:transcript-html-visit":{source:"channel"|"creator-dm"|"participant-dm"|"active-admin-dm"|"every-admin-dm"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{url:string}>,result:ODTranscriptCompilerCompileResult<{url:string}>},workers:"openticket:transcript-html-visit"},
|
||||
"openticket:transcript-error-retry":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<any>,reason:string|null},workers:"openticket:transcript-error-retry"},
|
||||
"openticket:transcript-error-continue":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<any>,reason:string|null},workers:"openticket:transcript-error-continue"},
|
||||
"opendiscord:transcript-html-visit":{source:"channel"|"creator-dm"|"participant-dm"|"active-admin-dm"|"every-admin-dm"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{url:string}>,result:ODTranscriptCompilerCompileResult<{url:string}>},workers:"opendiscord:transcript-html-visit"},
|
||||
"opendiscord:transcript-error-retry":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<any>,reason:string|null},workers:"opendiscord:transcript-error-retry"},
|
||||
"opendiscord:transcript-error-continue":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<any>,reason:string|null},workers:"opendiscord:transcript-error-continue"},
|
||||
|
||||
"openticket:clear-continue":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"openticket:clear-continue"},
|
||||
"opendiscord:clear-continue":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"opendiscord:clear-continue"},
|
||||
}
|
||||
|
||||
/**## ODButtonManager_Default `default_class`
|
||||
@@ -116,7 +116,7 @@ export class ODButton_Default<Source extends string, Params, WorkerIds extends s
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODDropdownManagerIds_Default {
|
||||
"openticket:panel-dropdown-tickets":{source:"slash"|"text"|"auto-update"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel,options:ODTicketOption[]},workers:"openticket:panel-dropdown-tickets"}
|
||||
"opendiscord:panel-dropdown-tickets":{source:"slash"|"text"|"auto-update"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel,options:ODTicketOption[]},workers:"opendiscord:panel-dropdown-tickets"}
|
||||
}
|
||||
|
||||
/**## ODDropdownManager_Default `default_class`
|
||||
@@ -170,7 +170,7 @@ export class ODDropdown_Default<Source extends string, Params, WorkerIds extends
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODFileManagerIds_Default {
|
||||
"openticket:text-transcript":{source:"channel"|"creator-dm"|"participant-dm"|"active-admin-dm"|"every-admin-dm"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<any>,result:ODTranscriptCompilerCompileResult<any>},workers:"openticket:text-transcript"}
|
||||
"opendiscord:text-transcript":{source:"channel"|"creator-dm"|"participant-dm"|"active-admin-dm"|"every-admin-dm"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<any>,result:ODTranscriptCompilerCompileResult<any>},workers:"opendiscord:text-transcript"}
|
||||
}
|
||||
|
||||
/**## ODFileManager_Default `default_class`
|
||||
@@ -224,73 +224,73 @@ export class ODFile_Default<Source extends string, Params, WorkerIds extends str
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODEmbedManagerIds_Default {
|
||||
"openticket:error":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:string,layout:"simple"|"advanced"},workers:"openticket:error"},
|
||||
"openticket:error-option-missing":{source:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:ODTextCommandErrorMissingOption},workers:"openticket:error-option-missing"},
|
||||
"openticket:error-option-invalid":{source:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:ODTextCommandErrorInvalidOption},workers:"openticket:error-option-invalid"},
|
||||
"openticket:error-unknown-command":{source:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:ODTextCommandErrorUnknownCommand},workers:"openticket:error-unknown-command"},
|
||||
"openticket:error-no-permissions":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,permissions:ODPermissionEmbedType[]},workers:"openticket:error-no-permissions"},
|
||||
"openticket:error-no-permissions-cooldown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,until?:Date},workers:"openticket:error-no-permissions-cooldown"},
|
||||
"openticket:error-no-permissions-blacklisted":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-no-permissions-blacklisted"},
|
||||
"openticket:error-no-permissions-limits":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,limit:"global"|"global-user"|"option"|"option-user"},workers:"openticket:error-no-permissions-limits"},
|
||||
"openticket:error-responder-timeout":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-responder-timeout"},
|
||||
"openticket:error-ticket-unknown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-ticket-unknown"},
|
||||
"openticket:error-ticket-deprecated":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-ticket-deprecated"},
|
||||
"openticket:error-option-unknown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-option-unknown"},
|
||||
"openticket:error-panel-unknown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-panel-unknown"},
|
||||
"openticket:error-not-in-guild":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-not-in-guild"},
|
||||
"openticket:error-channel-rename":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"ticket-pin"|"ticket-unpin"|"ticket-rename"|"ticket-move"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,originalName:string,newName:string},workers:"openticket:error-channel-rename"},
|
||||
"openticket:error-ticket-busy":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-ticket-busy"},
|
||||
"opendiscord:error":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:string,layout:"simple"|"advanced"},workers:"opendiscord:error"},
|
||||
"opendiscord:error-option-missing":{source:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:ODTextCommandErrorMissingOption},workers:"opendiscord:error-option-missing"},
|
||||
"opendiscord:error-option-invalid":{source:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:ODTextCommandErrorInvalidOption},workers:"opendiscord:error-option-invalid"},
|
||||
"opendiscord:error-unknown-command":{source:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:ODTextCommandErrorUnknownCommand},workers:"opendiscord:error-unknown-command"},
|
||||
"opendiscord:error-no-permissions":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,permissions:ODPermissionEmbedType[]},workers:"opendiscord:error-no-permissions"},
|
||||
"opendiscord:error-no-permissions-cooldown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,until?:Date},workers:"opendiscord:error-no-permissions-cooldown"},
|
||||
"opendiscord:error-no-permissions-blacklisted":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-no-permissions-blacklisted"},
|
||||
"opendiscord:error-no-permissions-limits":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,limit:"global"|"global-user"|"option"|"option-user"},workers:"opendiscord:error-no-permissions-limits"},
|
||||
"opendiscord:error-responder-timeout":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-responder-timeout"},
|
||||
"opendiscord:error-ticket-unknown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-ticket-unknown"},
|
||||
"opendiscord:error-ticket-deprecated":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-ticket-deprecated"},
|
||||
"opendiscord:error-option-unknown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-option-unknown"},
|
||||
"opendiscord:error-panel-unknown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-panel-unknown"},
|
||||
"opendiscord:error-not-in-guild":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-not-in-guild"},
|
||||
"opendiscord:error-channel-rename":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"ticket-pin"|"ticket-unpin"|"ticket-rename"|"ticket-move"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,originalName:string,newName:string},workers:"opendiscord:error-channel-rename"},
|
||||
"opendiscord:error-ticket-busy":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-ticket-busy"},
|
||||
|
||||
"openticket:help-menu":{source:"text"|"slash"|"button"|"other",params:{mode:"slash"|"text",page:number},workers:"openticket:help-menu"},
|
||||
"opendiscord:help-menu":{source:"text"|"slash"|"button"|"other",params:{mode:"slash"|"text",page:number},workers:"opendiscord:help-menu"},
|
||||
|
||||
"openticket:stats-global":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:stats-global"},
|
||||
"openticket:stats-ticket":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,scopeData:ODTicket},workers:"openticket:stats-ticket"},
|
||||
"openticket:stats-user":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,scopeData:discord.User},workers:"openticket:stats-user"|"openticket:easter-egg"},
|
||||
"openticket:stats-reset":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,reason:string|null},workers:"openticket:stats-reset"},
|
||||
"openticket:stats-ticket-unknown":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,id:string},workers:"openticket:stats-ticket-unknown"},
|
||||
"opendiscord:stats-global":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:stats-global"},
|
||||
"opendiscord:stats-ticket":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,scopeData:ODTicket},workers:"opendiscord:stats-ticket"},
|
||||
"opendiscord:stats-user":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,scopeData:discord.User},workers:"opendiscord:stats-user"|"opendiscord:easter-egg"},
|
||||
"opendiscord:stats-reset":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,reason:string|null},workers:"opendiscord:stats-reset"},
|
||||
"opendiscord:stats-ticket-unknown":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,id:string},workers:"opendiscord:stats-ticket-unknown"},
|
||||
|
||||
"openticket:panel":{source:"slash"|"text"|"auto-update"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel},workers:"openticket:panel"},
|
||||
"openticket:ticket-created":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:ticket-created"},
|
||||
"openticket:ticket-created-dm":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:ticket-created-dm"},
|
||||
"openticket:ticket-created-logs":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:ticket-created-logs"},
|
||||
"openticket:ticket-message":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:ticket-message"},
|
||||
"openticket:close-message":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"autoclose"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:close-message"},
|
||||
"openticket:reopen-message":{source:"slash"|"text"|"ticket-message"|"close-message"|"autoclose-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:reopen-message"},
|
||||
"openticket:delete-message":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:delete-message"},
|
||||
"openticket:claim-message":{source:"slash"|"text"|"ticket-message"|"unclaim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:claim-message"},
|
||||
"openticket:unclaim-message":{source:"slash"|"text"|"ticket-message"|"claim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:unclaim-message"},
|
||||
"openticket:pin-message":{source:"slash"|"text"|"ticket-message"|"unpin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:pin-message"},
|
||||
"openticket:unpin-message":{source:"slash"|"text"|"ticket-message"|"pin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:unpin-message"},
|
||||
"openticket:rename-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:string},workers:"openticket:rename-message"},
|
||||
"openticket:move-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:ODTicketOption},workers:"openticket:move-message"},
|
||||
"openticket:add-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:discord.User},workers:"openticket:add-message"},
|
||||
"openticket:remove-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:discord.User},workers:"openticket:remove-message"},
|
||||
"openticket:ticket-action-dm":{source:"slash"|"text"|"ticket-message"|"close-message"|"reopen-message"|"delete-message"|"claim-message"|"unclaim-message"|"pin-message"|"unpin-message"|"autoclose-message"|"autoclose"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"close"|"reopen"|"delete"|"claim"|"unclaim"|"pin"|"unpin"|"rename"|"move"|"add"|"remove",ticket:ODTicket,reason:string|null,additionalData:null|string|discord.User|ODTicketOption},workers:"openticket:ticket-action-dm"},
|
||||
"openticket:ticket-action-logs":{source:"slash"|"text"|"ticket-message"|"close-message"|"reopen-message"|"delete-message"|"claim-message"|"unclaim-message"|"pin-message"|"unpin-message"|"autoclose-message"|"autoclose"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"close"|"reopen"|"delete"|"claim"|"unclaim"|"pin"|"unpin"|"rename"|"move"|"add"|"remove",ticket:ODTicket,reason:string|null,additionalData:null|string|discord.User|ODTicketOption},workers:"openticket:ticket-action-logs"},
|
||||
"opendiscord:panel":{source:"slash"|"text"|"auto-update"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel},workers:"opendiscord:panel"},
|
||||
"opendiscord:ticket-created":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:ticket-created"},
|
||||
"opendiscord:ticket-created-dm":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:ticket-created-dm"},
|
||||
"opendiscord:ticket-created-logs":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:ticket-created-logs"},
|
||||
"opendiscord:ticket-message":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:ticket-message"},
|
||||
"opendiscord:close-message":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"autoclose"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:close-message"},
|
||||
"opendiscord:reopen-message":{source:"slash"|"text"|"ticket-message"|"close-message"|"autoclose-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:reopen-message"},
|
||||
"opendiscord:delete-message":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:delete-message"},
|
||||
"opendiscord:claim-message":{source:"slash"|"text"|"ticket-message"|"unclaim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:claim-message"},
|
||||
"opendiscord:unclaim-message":{source:"slash"|"text"|"ticket-message"|"claim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:unclaim-message"},
|
||||
"opendiscord:pin-message":{source:"slash"|"text"|"ticket-message"|"unpin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:pin-message"},
|
||||
"opendiscord:unpin-message":{source:"slash"|"text"|"ticket-message"|"pin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:unpin-message"},
|
||||
"opendiscord:rename-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:string},workers:"opendiscord:rename-message"},
|
||||
"opendiscord:move-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:ODTicketOption},workers:"opendiscord:move-message"},
|
||||
"opendiscord:add-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:discord.User},workers:"opendiscord:add-message"},
|
||||
"opendiscord:remove-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:discord.User},workers:"opendiscord:remove-message"},
|
||||
"opendiscord:ticket-action-dm":{source:"slash"|"text"|"ticket-message"|"close-message"|"reopen-message"|"delete-message"|"claim-message"|"unclaim-message"|"pin-message"|"unpin-message"|"autoclose-message"|"autoclose"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"close"|"reopen"|"delete"|"claim"|"unclaim"|"pin"|"unpin"|"rename"|"move"|"add"|"remove",ticket:ODTicket,reason:string|null,additionalData:null|string|discord.User|ODTicketOption},workers:"opendiscord:ticket-action-dm"},
|
||||
"opendiscord:ticket-action-logs":{source:"slash"|"text"|"ticket-message"|"close-message"|"reopen-message"|"delete-message"|"claim-message"|"unclaim-message"|"pin-message"|"unpin-message"|"autoclose-message"|"autoclose"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"close"|"reopen"|"delete"|"claim"|"unclaim"|"pin"|"unpin"|"rename"|"move"|"add"|"remove",ticket:ODTicket,reason:string|null,additionalData:null|string|discord.User|ODTicketOption},workers:"opendiscord:ticket-action-logs"},
|
||||
|
||||
"openticket:blacklist-view":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:blacklist-view"},
|
||||
"openticket:blacklist-get":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,data:discord.User},workers:"openticket:blacklist-get"},
|
||||
"openticket:blacklist-add":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,data:discord.User,reason:string|null},workers:"openticket:blacklist-add"},
|
||||
"openticket:blacklist-remove":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,data:discord.User,reason:string|null},workers:"openticket:blacklist-remove"}
|
||||
"openticket:blacklist-dm":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"add"|"remove",data:discord.User,reason:string|null},workers:"openticket:blacklist-dm"},
|
||||
"openticket:blacklist-logs":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"add"|"remove",data:discord.User,reason:string|null},workers:"openticket:blacklist-logs"},
|
||||
"opendiscord:blacklist-view":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:blacklist-view"},
|
||||
"opendiscord:blacklist-get":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,data:discord.User},workers:"opendiscord:blacklist-get"},
|
||||
"opendiscord:blacklist-add":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,data:discord.User,reason:string|null},workers:"opendiscord:blacklist-add"},
|
||||
"opendiscord:blacklist-remove":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,data:discord.User,reason:string|null},workers:"opendiscord:blacklist-remove"}
|
||||
"opendiscord:blacklist-dm":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"add"|"remove",data:discord.User,reason:string|null},workers:"opendiscord:blacklist-dm"},
|
||||
"opendiscord:blacklist-logs":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"add"|"remove",data:discord.User,reason:string|null},workers:"opendiscord:blacklist-logs"},
|
||||
|
||||
"openticket:transcript-text-ready":{source:"channel"|"creator-dm"|"participant-dm"|"active-admin-dm"|"every-admin-dm"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{contents:string}>,result:ODTranscriptCompilerCompileResult<{contents:string}>},workers:"openticket:transcript-text-ready"},
|
||||
"openticket:transcript-html-ready":{source:"channel"|"creator-dm"|"participant-dm"|"active-admin-dm"|"every-admin-dm"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{url:string}>,result:ODTranscriptCompilerCompileResult<{url:string}>},workers:"openticket:transcript-html-ready"},
|
||||
"openticket:transcript-html-progress":{source:"channel"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{url:string}>,remaining:number},workers:"openticket:transcript-html-progress"},
|
||||
"openticket:transcript-error":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<any>,reason:string|null},workers:"openticket:transcript-error"},
|
||||
"opendiscord:transcript-text-ready":{source:"channel"|"creator-dm"|"participant-dm"|"active-admin-dm"|"every-admin-dm"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{contents:string}>,result:ODTranscriptCompilerCompileResult<{contents:string}>},workers:"opendiscord:transcript-text-ready"},
|
||||
"opendiscord:transcript-html-ready":{source:"channel"|"creator-dm"|"participant-dm"|"active-admin-dm"|"every-admin-dm"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{url:string}>,result:ODTranscriptCompilerCompileResult<{url:string}>},workers:"opendiscord:transcript-html-ready"},
|
||||
"opendiscord:transcript-html-progress":{source:"channel"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{url:string}>,remaining:number},workers:"opendiscord:transcript-html-progress"},
|
||||
"opendiscord:transcript-error":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<any>,reason:string|null},workers:"opendiscord:transcript-error"},
|
||||
|
||||
"openticket:reaction-role":{source:"panel-button"|"other",params:{guild:discord.Guild,user:discord.User,role:ODRole,result:ODRoleUpdateResult[]},workers:"openticket:reaction-role"},
|
||||
"openticket:clear-verify-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"openticket:clear-verify-message"},
|
||||
"openticket:clear-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"openticket:clear-message"},
|
||||
"openticket:clear-logs":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"openticket:clear-logs"},
|
||||
"opendiscord:reaction-role":{source:"panel-button"|"other",params:{guild:discord.Guild,user:discord.User,role:ODRole,result:ODRoleUpdateResult[]},workers:"opendiscord:reaction-role"},
|
||||
"opendiscord:clear-verify-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"opendiscord:clear-verify-message"},
|
||||
"opendiscord:clear-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"opendiscord:clear-message"},
|
||||
"opendiscord:clear-logs":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"opendiscord:clear-logs"},
|
||||
|
||||
"openticket:autoclose-message":{source:"timeout"|"leave"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:autoclose-message"},
|
||||
"openticket:autodelete-message":{source:"timeout"|"leave"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:autodelete-message"},
|
||||
"openticket:autoclose-enable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,time:number,reason:string|null},workers:"openticket:autoclose-enable"},
|
||||
"openticket:autodelete-enable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,time:number,reason:string|null},workers:"openticket:autodelete-enable"},
|
||||
"openticket:autoclose-disable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:autoclose-disable"},
|
||||
"openticket:autodelete-disable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:autodelete-disable"},
|
||||
"opendiscord:autoclose-message":{source:"timeout"|"leave"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:autoclose-message"},
|
||||
"opendiscord:autodelete-message":{source:"timeout"|"leave"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:autodelete-message"},
|
||||
"opendiscord:autoclose-enable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,time:number,reason:string|null},workers:"opendiscord:autoclose-enable"},
|
||||
"opendiscord:autodelete-enable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,time:number,reason:string|null},workers:"opendiscord:autodelete-enable"},
|
||||
"opendiscord:autoclose-disable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:autoclose-disable"},
|
||||
"opendiscord:autodelete-disable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:autodelete-disable"},
|
||||
}
|
||||
|
||||
/**## ODEmbedManager_Default `default_class`
|
||||
@@ -344,84 +344,84 @@ export class ODEmbed_Default<Source extends string, Params, WorkerIds extends st
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODMessageManagerIds_Default {
|
||||
"openticket:verifybar-ticket-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"openticket:verifybar-ticket-message"},
|
||||
"openticket:verifybar-close-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"openticket:verifybar-close-message"},
|
||||
"openticket:verifybar-reopen-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"openticket:verifybar-reopen-message"},
|
||||
"openticket:verifybar-claim-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"openticket:verifybar-claim-message"},
|
||||
"openticket:verifybar-unclaim-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"openticket:verifybar-unclaim-message"},
|
||||
"openticket:verifybar-pin-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"openticket:verifybar-pin-message"},
|
||||
"openticket:verifybar-unpin-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"openticket:verifybar-unpin-message"}
|
||||
"openticket:verifybar-autoclose-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"openticket:verifybar-autoclose-message"}
|
||||
"opendiscord:verifybar-ticket-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"opendiscord:verifybar-ticket-message"},
|
||||
"opendiscord:verifybar-close-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"opendiscord:verifybar-close-message"},
|
||||
"opendiscord:verifybar-reopen-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"opendiscord:verifybar-reopen-message"},
|
||||
"opendiscord:verifybar-claim-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"opendiscord:verifybar-claim-message"},
|
||||
"opendiscord:verifybar-unclaim-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"opendiscord:verifybar-unclaim-message"},
|
||||
"opendiscord:verifybar-pin-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"opendiscord:verifybar-pin-message"},
|
||||
"opendiscord:verifybar-unpin-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"opendiscord:verifybar-unpin-message"}
|
||||
"opendiscord:verifybar-autoclose-message":{source:"verifybar",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,verifybar:ODVerifyBar,originalMessage:discord.Message<boolean>},workers:"opendiscord:verifybar-autoclose-message"}
|
||||
|
||||
"openticket:error":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:string,layout:"simple"|"advanced"},workers:"openticket:error"},
|
||||
"openticket:error-option-missing":{source:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:ODTextCommandErrorMissingOption},workers:"openticket:error-option-missing"},
|
||||
"openticket:error-option-invalid":{source:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:ODTextCommandErrorInvalidOption},workers:"openticket:error-option-invalid"},
|
||||
"openticket:error-unknown-command":{source:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:ODTextCommandErrorUnknownCommand},workers:"openticket:error-unknown-command"},
|
||||
"openticket:error-no-permissions":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,permissions:ODPermissionEmbedType[]},workers:"openticket:error-no-permissions"},
|
||||
"openticket:error-no-permissions-cooldown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,until?:Date},workers:"openticket:error-no-permissions-cooldown"},
|
||||
"openticket:error-no-permissions-blacklisted":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-no-permissions-blacklisted"},
|
||||
"openticket:error-no-permissions-limits":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,limit:"global"|"global-user"|"option"|"option-user"},workers:"openticket:error-no-permissions-limits"},
|
||||
"openticket:error-responder-timeout":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-responder-timeout"},
|
||||
"openticket:error-ticket-unknown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-ticket-unknown"},
|
||||
"openticket:error-ticket-deprecated":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-ticket-deprecated"},
|
||||
"openticket:error-option-unknown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-option-unknown"},
|
||||
"openticket:error-panel-unknown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-panel-unknown"},
|
||||
"openticket:error-not-in-guild":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-not-in-guild"},
|
||||
"openticket:error-channel-rename":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"ticket-pin"|"ticket-unpin"|"ticket-rename"|"ticket-move"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,originalName:string,newName:string},workers:"openticket:error-channel-rename"},
|
||||
"openticket:error-ticket-busy":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:error-ticket-busy"},
|
||||
"opendiscord:error":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:string,layout:"simple"|"advanced"},workers:"opendiscord:error"},
|
||||
"opendiscord:error-option-missing":{source:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:ODTextCommandErrorMissingOption},workers:"opendiscord:error-option-missing"},
|
||||
"opendiscord:error-option-invalid":{source:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:ODTextCommandErrorInvalidOption},workers:"opendiscord:error-option-invalid"},
|
||||
"opendiscord:error-unknown-command":{source:"slash"|"text"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,error:ODTextCommandErrorUnknownCommand},workers:"opendiscord:error-unknown-command"},
|
||||
"opendiscord:error-no-permissions":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,permissions:ODPermissionEmbedType[]},workers:"opendiscord:error-no-permissions"},
|
||||
"opendiscord:error-no-permissions-cooldown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,until?:Date},workers:"opendiscord:error-no-permissions-cooldown"},
|
||||
"opendiscord:error-no-permissions-blacklisted":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-no-permissions-blacklisted"},
|
||||
"opendiscord:error-no-permissions-limits":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,limit:"global"|"global-user"|"option"|"option-user"},workers:"opendiscord:error-no-permissions-limits"},
|
||||
"opendiscord:error-responder-timeout":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-responder-timeout"},
|
||||
"opendiscord:error-ticket-unknown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-ticket-unknown"},
|
||||
"opendiscord:error-ticket-deprecated":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-ticket-deprecated"},
|
||||
"opendiscord:error-option-unknown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-option-unknown"},
|
||||
"opendiscord:error-panel-unknown":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-panel-unknown"},
|
||||
"opendiscord:error-not-in-guild":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-not-in-guild"},
|
||||
"opendiscord:error-channel-rename":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"ticket-pin"|"ticket-unpin"|"ticket-rename"|"ticket-move"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User,originalName:string,newName:string},workers:"opendiscord:error-channel-rename"},
|
||||
"opendiscord:error-ticket-busy":{source:"slash"|"text"|"button"|"dropdown"|"modal"|"other",params:{guild:discord.Guild|null,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:error-ticket-busy"},
|
||||
|
||||
"openticket:help-menu":{source:"slash"|"text"|"button"|"other",params:{mode:"slash"|"text",page:number},workers:"openticket:help-menu"},
|
||||
"opendiscord:help-menu":{source:"slash"|"text"|"button"|"other",params:{mode:"slash"|"text",page:number},workers:"opendiscord:help-menu"},
|
||||
|
||||
"openticket:stats-global":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:stats-global"},
|
||||
"openticket:stats-ticket":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,scopeData:ODTicket},workers:"openticket:stats-ticket"},
|
||||
"openticket:stats-user":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,scopeData:discord.User},workers:"openticket:stats-user"|"openticket:easter-egg"},
|
||||
"openticket:stats-reset":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,reason:string|null},workers:"openticket:stats-reset"},
|
||||
"openticket:stats-ticket-unknown":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,id:string},workers:"openticket:stats-ticket-unknown"},
|
||||
"opendiscord:stats-global":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:stats-global"},
|
||||
"opendiscord:stats-ticket":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,scopeData:ODTicket},workers:"opendiscord:stats-ticket"},
|
||||
"opendiscord:stats-user":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,scopeData:discord.User},workers:"opendiscord:stats-user"|"opendiscord:easter-egg"},
|
||||
"opendiscord:stats-reset":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,reason:string|null},workers:"opendiscord:stats-reset"},
|
||||
"opendiscord:stats-ticket-unknown":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,id:string},workers:"opendiscord:stats-ticket-unknown"},
|
||||
|
||||
"openticket:panel":{source:"slash"|"text"|"auto-update"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel},workers:"openticket:panel-layout"|"openticket:panel-components"},
|
||||
"openticket:panel-ready":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel},workers:"openticket:panel-ready"},
|
||||
"opendiscord:panel":{source:"slash"|"text"|"auto-update"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel},workers:"opendiscord:panel-layout"|"opendiscord:panel-components"},
|
||||
"opendiscord:panel-ready":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,panel:ODPanel},workers:"opendiscord:panel-ready"},
|
||||
|
||||
"openticket:ticket-created":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:ticket-created"},
|
||||
"openticket:ticket-created-dm":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:ticket-created-dm"},
|
||||
"openticket:ticket-created-logs":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:ticket-created-logs"},
|
||||
"openticket:ticket-message":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:ticket-message-layout"|"openticket:ticket-message-components"|"openticket:ticket-message-disable-components"},
|
||||
"openticket:close-message":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"autoclose"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:close-message"},
|
||||
"openticket:reopen-message":{source:"slash"|"text"|"ticket-message"|"close-message"|"autoclose-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:reopen-message"},
|
||||
"openticket:delete-message":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:delete-message"},
|
||||
"openticket:claim-message":{source:"slash"|"text"|"ticket-message"|"unclaim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:claim-message"},
|
||||
"openticket:unclaim-message":{source:"slash"|"text"|"ticket-message"|"claim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:unclaim-message"},
|
||||
"openticket:pin-message":{source:"slash"|"text"|"ticket-message"|"unpin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:pin-message"},
|
||||
"openticket:unpin-message":{source:"slash"|"text"|"ticket-message"|"pin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:unpin-message"},
|
||||
"openticket:rename-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:string},workers:"openticket:rename-message"},
|
||||
"openticket:move-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:ODTicketOption},workers:"openticket:move-message"},
|
||||
"openticket:add-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:discord.User},workers:"openticket:add-message"},
|
||||
"openticket:remove-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:discord.User},workers:"openticket:remove-message"},
|
||||
"openticket:ticket-action-dm":{source:"slash"|"text"|"ticket-message"|"close-message"|"reopen-message"|"delete-message"|"claim-message"|"unclaim-message"|"pin-message"|"unpin-message"|"autoclose-message"|"autoclose"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"close"|"reopen"|"delete"|"claim"|"unclaim"|"pin"|"unpin"|"rename"|"move"|"add"|"remove",ticket:ODTicket,reason:string|null,additionalData:null|string|discord.User|ODTicketOption},workers:"openticket:ticket-action-dm"},
|
||||
"openticket:ticket-action-logs":{source:"slash"|"text"|"ticket-message"|"close-message"|"reopen-message"|"delete-message"|"claim-message"|"unclaim-message"|"pin-message"|"unpin-message"|"autoclose-message"|"autoclose"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"close"|"reopen"|"delete"|"claim"|"unclaim"|"pin"|"unpin"|"rename"|"move"|"add"|"remove",ticket:ODTicket,reason:string|null,additionalData:null|string|discord.User|ODTicketOption},workers:"openticket:ticket-action-logs"},
|
||||
"opendiscord:ticket-created":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:ticket-created"},
|
||||
"opendiscord:ticket-created-dm":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:ticket-created-dm"},
|
||||
"opendiscord:ticket-created-logs":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:ticket-created-logs"},
|
||||
"opendiscord:ticket-message":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:ticket-message-layout"|"opendiscord:ticket-message-components"|"opendiscord:ticket-message-disable-components"},
|
||||
"opendiscord:close-message":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"autoclose"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:close-message"},
|
||||
"opendiscord:reopen-message":{source:"slash"|"text"|"ticket-message"|"close-message"|"autoclose-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:reopen-message"},
|
||||
"opendiscord:delete-message":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:delete-message"},
|
||||
"opendiscord:claim-message":{source:"slash"|"text"|"ticket-message"|"unclaim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:claim-message"},
|
||||
"opendiscord:unclaim-message":{source:"slash"|"text"|"ticket-message"|"claim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:unclaim-message"},
|
||||
"opendiscord:pin-message":{source:"slash"|"text"|"ticket-message"|"unpin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:pin-message"},
|
||||
"opendiscord:unpin-message":{source:"slash"|"text"|"ticket-message"|"pin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:unpin-message"},
|
||||
"opendiscord:rename-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:string},workers:"opendiscord:rename-message"},
|
||||
"opendiscord:move-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:ODTicketOption},workers:"opendiscord:move-message"},
|
||||
"opendiscord:add-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:discord.User},workers:"opendiscord:add-message"},
|
||||
"opendiscord:remove-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null,data:discord.User},workers:"opendiscord:remove-message"},
|
||||
"opendiscord:ticket-action-dm":{source:"slash"|"text"|"ticket-message"|"close-message"|"reopen-message"|"delete-message"|"claim-message"|"unclaim-message"|"pin-message"|"unpin-message"|"autoclose-message"|"autoclose"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"close"|"reopen"|"delete"|"claim"|"unclaim"|"pin"|"unpin"|"rename"|"move"|"add"|"remove",ticket:ODTicket,reason:string|null,additionalData:null|string|discord.User|ODTicketOption},workers:"opendiscord:ticket-action-dm"},
|
||||
"opendiscord:ticket-action-logs":{source:"slash"|"text"|"ticket-message"|"close-message"|"reopen-message"|"delete-message"|"claim-message"|"unclaim-message"|"pin-message"|"unpin-message"|"autoclose-message"|"autoclose"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"close"|"reopen"|"delete"|"claim"|"unclaim"|"pin"|"unpin"|"rename"|"move"|"add"|"remove",ticket:ODTicket,reason:string|null,additionalData:null|string|discord.User|ODTicketOption},workers:"opendiscord:ticket-action-logs"},
|
||||
|
||||
"openticket:blacklist-view":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User},workers:"openticket:blacklist-view"},
|
||||
"openticket:blacklist-get":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,data:discord.User},workers:"openticket:blacklist-get"},
|
||||
"openticket:blacklist-add":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,data:discord.User,reason:string|null},workers:"openticket:blacklist-add"},
|
||||
"openticket:blacklist-remove":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,data:discord.User,reason:string|null},workers:"openticket:blacklist-remove"},
|
||||
"openticket:blacklist-dm":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"add"|"remove",data:discord.User,reason:string|null},workers:"openticket:blacklist-dm"},
|
||||
"openticket:blacklist-logs":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"add"|"remove",data:discord.User,reason:string|null},workers:"openticket:blacklist-logs"},
|
||||
"opendiscord:blacklist-view":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User},workers:"opendiscord:blacklist-view"},
|
||||
"opendiscord:blacklist-get":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,data:discord.User},workers:"opendiscord:blacklist-get"},
|
||||
"opendiscord:blacklist-add":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,data:discord.User,reason:string|null},workers:"opendiscord:blacklist-add"},
|
||||
"opendiscord:blacklist-remove":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,data:discord.User,reason:string|null},workers:"opendiscord:blacklist-remove"},
|
||||
"opendiscord:blacklist-dm":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"add"|"remove",data:discord.User,reason:string|null},workers:"opendiscord:blacklist-dm"},
|
||||
"opendiscord:blacklist-logs":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,mode:"add"|"remove",data:discord.User,reason:string|null},workers:"opendiscord:blacklist-logs"},
|
||||
|
||||
"openticket:transcript-text-ready":{source:"channel"|"creator-dm"|"participant-dm"|"active-admin-dm"|"every-admin-dm"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{contents:string}>,result:ODTranscriptCompilerCompileResult<{contents:string}>},workers:"openticket:transcript-text-ready"},
|
||||
"openticket:transcript-html-ready":{source:"channel"|"creator-dm"|"participant-dm"|"active-admin-dm"|"every-admin-dm"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{url:string}>,result:ODTranscriptCompilerCompileResult<{url:string}>},workers:"openticket:transcript-html-ready"},
|
||||
"openticket:transcript-html-progress":{source:"channel"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{url:string}>,remaining:number},workers:"openticket:transcript-html-progress"},
|
||||
"openticket:transcript-error":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<any>,reason:string|null},workers:"openticket:transcript-error"},
|
||||
"opendiscord:transcript-text-ready":{source:"channel"|"creator-dm"|"participant-dm"|"active-admin-dm"|"every-admin-dm"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{contents:string}>,result:ODTranscriptCompilerCompileResult<{contents:string}>},workers:"opendiscord:transcript-text-ready"},
|
||||
"opendiscord:transcript-html-ready":{source:"channel"|"creator-dm"|"participant-dm"|"active-admin-dm"|"every-admin-dm"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{url:string}>,result:ODTranscriptCompilerCompileResult<{url:string}>},workers:"opendiscord:transcript-html-ready"},
|
||||
"opendiscord:transcript-html-progress":{source:"channel"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<{url:string}>,remaining:number},workers:"opendiscord:transcript-html-progress"},
|
||||
"opendiscord:transcript-error":{source:"slash"|"text"|"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"autodelete"|"clear"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,compiler:ODTranscriptCompiler<any>,reason:string|null},workers:"opendiscord:transcript-error"},
|
||||
|
||||
"openticket:reaction-role":{source:"panel-button"|"other",params:{guild:discord.Guild,user:discord.User,role:ODRole,result:ODRoleUpdateResult[]},workers:"openticket:reaction-role"},
|
||||
"openticket:clear-verify-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"openticket:clear-verify-message"},
|
||||
"openticket:clear-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"openticket:clear-message"},
|
||||
"openticket:clear-logs":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"openticket:clear-logs"},
|
||||
"opendiscord:reaction-role":{source:"panel-button"|"other",params:{guild:discord.Guild,user:discord.User,role:ODRole,result:ODRoleUpdateResult[]},workers:"opendiscord:reaction-role"},
|
||||
"opendiscord:clear-verify-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"opendiscord:clear-verify-message"},
|
||||
"opendiscord:clear-message":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"opendiscord:clear-message"},
|
||||
"opendiscord:clear-logs":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,filter:ODTicketClearFilter,list:string[]},workers:"opendiscord:clear-logs"},
|
||||
|
||||
"openticket:autoclose-message":{source:"timeout"|"leave"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:autoclose-message"},
|
||||
"openticket:autodelete-message":{source:"timeout"|"leave"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:autodelete-message"},
|
||||
"openticket:autoclose-enable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,time:number,reason:string|null},workers:"openticket:autoclose-enable"},
|
||||
"openticket:autodelete-enable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,time:number,reason:string|null},workers:"openticket:autodelete-enable"},
|
||||
"openticket:autoclose-disable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:autoclose-disable"},
|
||||
"openticket:autodelete-disable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"openticket:autodelete-disable"},
|
||||
"opendiscord:autoclose-message":{source:"timeout"|"leave"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:autoclose-message"},
|
||||
"opendiscord:autodelete-message":{source:"timeout"|"leave"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:autodelete-message"},
|
||||
"opendiscord:autoclose-enable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,time:number,reason:string|null},workers:"opendiscord:autoclose-enable"},
|
||||
"opendiscord:autodelete-enable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,time:number,reason:string|null},workers:"opendiscord:autodelete-enable"},
|
||||
"opendiscord:autoclose-disable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:autoclose-disable"},
|
||||
"opendiscord:autodelete-disable":{source:"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.GuildTextBasedChannel,user:discord.User,ticket:ODTicket,reason:string|null},workers:"opendiscord:autodelete-disable"},
|
||||
}
|
||||
|
||||
/**## ODMessageManager_Default `default_class`
|
||||
@@ -475,14 +475,14 @@ export class ODMessage_Default<Source extends string, Params, WorkerIds extends
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODModalManagerIds_Default {
|
||||
"openticket:ticket-questions":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,option:ODTicketOption},workers:"openticket:ticket-questions"}
|
||||
"openticket:close-ticket-reason":{source:"ticket-message"|"reopen-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:close-ticket-reason"}
|
||||
"openticket:reopen-ticket-reason":{source:"ticket-message"|"close-message"|"autoclose-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:reopen-ticket-reason"}
|
||||
"openticket:delete-ticket-reason":{source:"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:delete-ticket-reason"}
|
||||
"openticket:claim-ticket-reason":{source:"ticket-message"|"unclaim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:claim-ticket-reason"}
|
||||
"openticket:unclaim-ticket-reason":{source:"ticket-message"|"claim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:unclaim-ticket-reason"}
|
||||
"openticket:pin-ticket-reason":{source:"ticket-message"|"unpin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:pin-ticket-reason"}
|
||||
"openticket:unpin-ticket-reason":{source:"ticket-message"|"pin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"openticket:unpin-ticket-reason"}
|
||||
"opendiscord:ticket-questions":{source:"panel-button"|"panel-dropdown"|"slash"|"text"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,option:ODTicketOption},workers:"opendiscord:ticket-questions"}
|
||||
"opendiscord:close-ticket-reason":{source:"ticket-message"|"reopen-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:close-ticket-reason"}
|
||||
"opendiscord:reopen-ticket-reason":{source:"ticket-message"|"close-message"|"autoclose-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:reopen-ticket-reason"}
|
||||
"opendiscord:delete-ticket-reason":{source:"ticket-message"|"reopen-message"|"close-message"|"autoclose-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:delete-ticket-reason"}
|
||||
"opendiscord:claim-ticket-reason":{source:"ticket-message"|"unclaim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:claim-ticket-reason"}
|
||||
"opendiscord:unclaim-ticket-reason":{source:"ticket-message"|"claim-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:unclaim-ticket-reason"}
|
||||
"opendiscord:pin-ticket-reason":{source:"ticket-message"|"unpin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:pin-ticket-reason"}
|
||||
"opendiscord:unpin-ticket-reason":{source:"ticket-message"|"pin-message"|"other",params:{guild:discord.Guild,channel:discord.TextBasedChannel,user:discord.User,ticket:ODTicket},workers:"opendiscord:unpin-ticket-reason"}
|
||||
}
|
||||
|
||||
/**## ODModalManager_Default `default_class`
|
||||
|
||||
@@ -11,11 +11,11 @@ import ansis from "ansis"
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODCheckerManagerIds_Default {
|
||||
"openticket:general":ODChecker,
|
||||
"openticket:questions":ODChecker,
|
||||
"openticket:options":ODChecker,
|
||||
"openticket:panels":ODChecker,
|
||||
"openticket:transcripts":ODChecker
|
||||
"opendiscord:general":ODChecker,
|
||||
"opendiscord:questions":ODChecker,
|
||||
"opendiscord:options":ODChecker,
|
||||
"opendiscord:panels":ODChecker,
|
||||
"opendiscord:transcripts":ODChecker
|
||||
}
|
||||
|
||||
/**## ODCheckerManager_Default `default_class`
|
||||
@@ -75,19 +75,19 @@ export class ODCheckerRenderer_Default extends ODCheckerRenderer {
|
||||
getComponents(compact:boolean, renderEmpty:boolean, translation:ODCheckerTranslationRegister_Default, data:ODCheckerResult): string[] {
|
||||
const tm = translation
|
||||
const t = {
|
||||
headerOpenticket:tm.get("other","openticket:header-openticket") ?? "OPEN TICKET",
|
||||
headerConfigchecker:tm.get("other","openticket:header-configchecker") ?? "CONFIG CHECKER",
|
||||
headerDescription:tm.get("other","openticket:header-description") ?? "check for errors in your config files!",
|
||||
footerError:tm.get("other","openticket:footer-error") ?? "the bot won't start until all {0}'s are fixed!",
|
||||
footerWarning:tm.get("other","openticket:footer-warning") ?? "it's recommended to fix all {0}'s before starting!",
|
||||
footerSupport:tm.get("other","openticket:footer-support") ?? "SUPPORT: {0} - DOCS: {1}",
|
||||
error:tm.get("other","openticket:type-error") ?? "[ERROR]",
|
||||
warning:tm.get("other","openticket:type-warning") ?? "[WARNING]",
|
||||
info:tm.get("other","openticket:type-info") ?? "[INFO]",
|
||||
compactInfo:tm.get("other","openticket:compact-information") ?? "use {0} for more information!",
|
||||
dataPath:tm.get("other","openticket:data-path") ?? "path",
|
||||
dataDocs:tm.get("other","openticket:data-docs") ?? "docs",
|
||||
dataMessage:tm.get("other","openticket:data-message") ?? "message"
|
||||
headerOpenticket:tm.get("other","opendiscord:header-openticket") ?? "OPEN TICKET",
|
||||
headerConfigchecker:tm.get("other","opendiscord:header-configchecker") ?? "CONFIG CHECKER",
|
||||
headerDescription:tm.get("other","opendiscord:header-description") ?? "check for errors in your config files!",
|
||||
footerError:tm.get("other","opendiscord:footer-error") ?? "the bot won't start until all {0}'s are fixed!",
|
||||
footerWarning:tm.get("other","opendiscord:footer-warning") ?? "it's recommended to fix all {0}'s before starting!",
|
||||
footerSupport:tm.get("other","opendiscord:footer-support") ?? "SUPPORT: {0} - DOCS: {1}",
|
||||
error:tm.get("other","opendiscord:type-error") ?? "[ERROR]",
|
||||
warning:tm.get("other","opendiscord:type-warning") ?? "[WARNING]",
|
||||
info:tm.get("other","opendiscord:type-info") ?? "[INFO]",
|
||||
compactInfo:tm.get("other","opendiscord:compact-information") ?? "use {0} for more information!",
|
||||
dataPath:tm.get("other","opendiscord:data-path") ?? "path",
|
||||
dataDocs:tm.get("other","opendiscord:data-docs") ?? "docs",
|
||||
dataMessage:tm.get("other","opendiscord:data-message") ?? "message"
|
||||
}
|
||||
const hasErrors = data.messages.filter((m) => m.type == "error").length > 0
|
||||
const hasWarnings = data.messages.filter((m) => m.type == "warning").length > 0
|
||||
@@ -213,19 +213,19 @@ export class ODCheckerRenderer_Default extends ODCheckerRenderer {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export type ODCheckerTranslationRegisterOtherIds_Default = (
|
||||
"openticket:header-openticket"|
|
||||
"openticket:header-configchecker"|
|
||||
"openticket:header-description"|
|
||||
"openticket:type-error"|
|
||||
"openticket:type-warning"|
|
||||
"openticket:type-info"|
|
||||
"openticket:data-path"|
|
||||
"openticket:data-docs"|
|
||||
"openticket:data-message"|
|
||||
"openticket:compact-information"|
|
||||
"openticket:footer-error"|
|
||||
"openticket:footer-warning"|
|
||||
"openticket:footer-support"
|
||||
"opendiscord:header-openticket"|
|
||||
"opendiscord:header-configchecker"|
|
||||
"opendiscord:header-description"|
|
||||
"opendiscord:type-error"|
|
||||
"opendiscord:type-warning"|
|
||||
"opendiscord:type-info"|
|
||||
"opendiscord:data-path"|
|
||||
"opendiscord:data-docs"|
|
||||
"opendiscord:data-message"|
|
||||
"opendiscord:compact-information"|
|
||||
"opendiscord:footer-error"|
|
||||
"opendiscord:footer-warning"|
|
||||
"opendiscord:footer-support"
|
||||
)
|
||||
|
||||
/**## ODCheckerTranslationRegisterMessageIds_Default `interface`
|
||||
@@ -233,73 +233,73 @@ export type ODCheckerTranslationRegisterOtherIds_Default = (
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export type ODCheckerTranslationRegisterMessageIds_Default = (
|
||||
"openticket:invalid-type"|
|
||||
"openticket:property-missing"|
|
||||
"openticket:property-optional"|
|
||||
"openticket:object-disabled"|
|
||||
"openticket:null-invalid"|
|
||||
"openticket:switch-invalid-type"|
|
||||
"openticket:object-switch-invalid-type"|
|
||||
"opendiscord:invalid-type"|
|
||||
"opendiscord:property-missing"|
|
||||
"opendiscord:property-optional"|
|
||||
"opendiscord:object-disabled"|
|
||||
"opendiscord:null-invalid"|
|
||||
"opendiscord:switch-invalid-type"|
|
||||
"opendiscord:object-switch-invalid-type"|
|
||||
|
||||
"openticket:string-too-short"|
|
||||
"openticket:string-too-long"|
|
||||
"openticket:string-length-invalid"|
|
||||
"openticket:string-starts-with"|
|
||||
"openticket:string-ends-with"|
|
||||
"openticket:string-contains"|
|
||||
"openticket:string-choices"|
|
||||
"openticket:string-regex"|
|
||||
"opendiscord:string-too-short"|
|
||||
"opendiscord:string-too-long"|
|
||||
"opendiscord:string-length-invalid"|
|
||||
"opendiscord:string-starts-with"|
|
||||
"opendiscord:string-ends-with"|
|
||||
"opendiscord:string-contains"|
|
||||
"opendiscord:string-choices"|
|
||||
"opendiscord:string-regex"|
|
||||
|
||||
"openticket:number-too-short"|
|
||||
"openticket:number-too-long"|
|
||||
"openticket:number-length-invalid"|
|
||||
"openticket:number-too-small"|
|
||||
"openticket:number-too-large"|
|
||||
"openticket:number-not-equal"|
|
||||
"openticket:number-step"|
|
||||
"openticket:number-step-offset"|
|
||||
"openticket:number-starts-with"|
|
||||
"openticket:number-ends-with"|
|
||||
"openticket:number-contains"|
|
||||
"openticket:number-choices"|
|
||||
"openticket:number-float"|
|
||||
"openticket:number-negative"|
|
||||
"openticket:number-positive"|
|
||||
"openticket:number-zero"|
|
||||
"opendiscord:number-too-short"|
|
||||
"opendiscord:number-too-long"|
|
||||
"opendiscord:number-length-invalid"|
|
||||
"opendiscord:number-too-small"|
|
||||
"opendiscord:number-too-large"|
|
||||
"opendiscord:number-not-equal"|
|
||||
"opendiscord:number-step"|
|
||||
"opendiscord:number-step-offset"|
|
||||
"opendiscord:number-starts-with"|
|
||||
"opendiscord:number-ends-with"|
|
||||
"opendiscord:number-contains"|
|
||||
"opendiscord:number-choices"|
|
||||
"opendiscord:number-float"|
|
||||
"opendiscord:number-negative"|
|
||||
"opendiscord:number-positive"|
|
||||
"opendiscord:number-zero"|
|
||||
|
||||
"openticket:boolean-true"|
|
||||
"openticket:boolean-false"|
|
||||
"opendiscord:boolean-true"|
|
||||
"opendiscord:boolean-false"|
|
||||
|
||||
"openticket:array-empty-disabled"|
|
||||
"openticket:array-empty-required"|
|
||||
"openticket:array-too-short"|
|
||||
"openticket:array-too-long"|
|
||||
"openticket:array-length-invalid"|
|
||||
"openticket:array-invalid-types"|
|
||||
"openticket:array-double"|
|
||||
"opendiscord:array-empty-disabled"|
|
||||
"opendiscord:array-empty-required"|
|
||||
"opendiscord:array-too-short"|
|
||||
"opendiscord:array-too-long"|
|
||||
"opendiscord:array-length-invalid"|
|
||||
"opendiscord:array-invalid-types"|
|
||||
"opendiscord:array-double"|
|
||||
|
||||
"openticket:discord-invalid-id"|
|
||||
"openticket:discord-invalid-id-options"|
|
||||
"openticket:discord-invalid-token"|
|
||||
"openticket:color-invalid"|
|
||||
"openticket:emoji-too-short"|
|
||||
"openticket:emoji-too-long"|
|
||||
"openticket:emoji-custom"|
|
||||
"openticket:emoji-invalid"|
|
||||
"openticket:url-invalid"|
|
||||
"openticket:url-invalid-http"|
|
||||
"openticket:url-invalid-protocol"|
|
||||
"openticket:url-invalid-hostname"|
|
||||
"openticket:url-invalid-extension"|
|
||||
"openticket:url-invalid-path"|
|
||||
"openticket:id-not-unique"|
|
||||
"openticket:id-non-existent"|
|
||||
"opendiscord:discord-invalid-id"|
|
||||
"opendiscord:discord-invalid-id-options"|
|
||||
"opendiscord:discord-invalid-token"|
|
||||
"opendiscord:color-invalid"|
|
||||
"opendiscord:emoji-too-short"|
|
||||
"opendiscord:emoji-too-long"|
|
||||
"opendiscord:emoji-custom"|
|
||||
"opendiscord:emoji-invalid"|
|
||||
"opendiscord:url-invalid"|
|
||||
"opendiscord:url-invalid-http"|
|
||||
"opendiscord:url-invalid-protocol"|
|
||||
"opendiscord:url-invalid-hostname"|
|
||||
"opendiscord:url-invalid-extension"|
|
||||
"opendiscord:url-invalid-path"|
|
||||
"opendiscord:id-not-unique"|
|
||||
"opendiscord:id-non-existent"|
|
||||
|
||||
"openticket:invalid-language"|
|
||||
"openticket:invalid-button"|
|
||||
"openticket:unused-option"|
|
||||
"openticket:unused-question"|
|
||||
"openticket:dropdown-option"
|
||||
"opendiscord:invalid-language"|
|
||||
"opendiscord:invalid-button"|
|
||||
"opendiscord:unused-option"|
|
||||
"opendiscord:unused-question"|
|
||||
"opendiscord:dropdown-option"
|
||||
)
|
||||
|
||||
/**## ODCheckerTranslationRegister_Default `default_class`
|
||||
@@ -346,9 +346,9 @@ export class ODCheckerTranslationRegister_Default extends ODCheckerTranslationRe
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODCheckerFunctionManagerIds_Default {
|
||||
"openticket:unused-options":ODCheckerFunction,
|
||||
"openticket:unused-questions":ODCheckerFunction,
|
||||
"openticket:dropdown-options":ODCheckerFunction
|
||||
"opendiscord:unused-options":ODCheckerFunction,
|
||||
"opendiscord:unused-questions":ODCheckerFunction,
|
||||
"opendiscord:dropdown-options":ODCheckerFunction
|
||||
}
|
||||
|
||||
/**## ODCheckerFunctionManager_Default `default_class`
|
||||
|
||||
@@ -20,25 +20,25 @@ export class ODClientManager_Default extends ODClientManager {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODSlashCommandManagerIds_Default {
|
||||
"openticket:help":ODSlashCommand,
|
||||
"openticket:panel":ODSlashCommand,
|
||||
"openticket:ticket":ODSlashCommand,
|
||||
"openticket:close":ODSlashCommand,
|
||||
"openticket:delete":ODSlashCommand,
|
||||
"openticket:reopen":ODSlashCommand,
|
||||
"openticket:claim":ODSlashCommand,
|
||||
"openticket:unclaim":ODSlashCommand,
|
||||
"openticket:pin":ODSlashCommand,
|
||||
"openticket:unpin":ODSlashCommand,
|
||||
"openticket:move":ODSlashCommand,
|
||||
"openticket:rename":ODSlashCommand,
|
||||
"openticket:add":ODSlashCommand,
|
||||
"openticket:remove":ODSlashCommand,
|
||||
"openticket:blacklist":ODSlashCommand,
|
||||
"openticket:stats":ODSlashCommand,
|
||||
"openticket:clear":ODSlashCommand,
|
||||
"openticket:autoclose":ODSlashCommand,
|
||||
"openticket:autodelete":ODSlashCommand,
|
||||
"opendiscord:help":ODSlashCommand,
|
||||
"opendiscord:panel":ODSlashCommand,
|
||||
"opendiscord:ticket":ODSlashCommand,
|
||||
"opendiscord:close":ODSlashCommand,
|
||||
"opendiscord:delete":ODSlashCommand,
|
||||
"opendiscord:reopen":ODSlashCommand,
|
||||
"opendiscord:claim":ODSlashCommand,
|
||||
"opendiscord:unclaim":ODSlashCommand,
|
||||
"opendiscord:pin":ODSlashCommand,
|
||||
"opendiscord:unpin":ODSlashCommand,
|
||||
"opendiscord:move":ODSlashCommand,
|
||||
"opendiscord:rename":ODSlashCommand,
|
||||
"opendiscord:add":ODSlashCommand,
|
||||
"opendiscord:remove":ODSlashCommand,
|
||||
"opendiscord:blacklist":ODSlashCommand,
|
||||
"opendiscord:stats":ODSlashCommand,
|
||||
"opendiscord:clear":ODSlashCommand,
|
||||
"opendiscord:autoclose":ODSlashCommand,
|
||||
"opendiscord:autodelete":ODSlashCommand,
|
||||
}
|
||||
|
||||
/**## ODSlashCommandManager_Default `default_class`
|
||||
@@ -82,33 +82,33 @@ export class ODSlashCommandManager_Default extends ODSlashCommandManager {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODTextCommandManagerIds_Default {
|
||||
"openticket:dump":ODTextCommand,
|
||||
"openticket:help":ODTextCommand,
|
||||
"openticket:panel":ODTextCommand,
|
||||
"openticket:close":ODTextCommand,
|
||||
"openticket:delete":ODTextCommand,
|
||||
"openticket:reopen":ODTextCommand,
|
||||
"openticket:claim":ODTextCommand,
|
||||
"openticket:unclaim":ODTextCommand,
|
||||
"openticket:pin":ODTextCommand,
|
||||
"openticket:unpin":ODTextCommand,
|
||||
"openticket:move":ODTextCommand,
|
||||
"openticket:rename":ODTextCommand,
|
||||
"openticket:add":ODTextCommand,
|
||||
"openticket:remove":ODTextCommand,
|
||||
"openticket:blacklist-view":ODTextCommand,
|
||||
"openticket:blacklist-add":ODTextCommand,
|
||||
"openticket:blacklist-remove":ODTextCommand,
|
||||
"openticket:blacklist-get":ODTextCommand,
|
||||
"openticket:stats-global":ODTextCommand,
|
||||
"openticket:stats-reset":ODTextCommand,
|
||||
"openticket:stats-ticket":ODTextCommand,
|
||||
"openticket:stats-user":ODTextCommand,
|
||||
"openticket:clear":ODTextCommand,
|
||||
"openticket:autoclose-disable":ODTextCommand,
|
||||
"openticket:autoclose-enable":ODTextCommand,
|
||||
"openticket:autodelete-disable":ODTextCommand,
|
||||
"openticket:autodelete-enable":ODTextCommand
|
||||
"opendiscord:dump":ODTextCommand,
|
||||
"opendiscord:help":ODTextCommand,
|
||||
"opendiscord:panel":ODTextCommand,
|
||||
"opendiscord:close":ODTextCommand,
|
||||
"opendiscord:delete":ODTextCommand,
|
||||
"opendiscord:reopen":ODTextCommand,
|
||||
"opendiscord:claim":ODTextCommand,
|
||||
"opendiscord:unclaim":ODTextCommand,
|
||||
"opendiscord:pin":ODTextCommand,
|
||||
"opendiscord:unpin":ODTextCommand,
|
||||
"opendiscord:move":ODTextCommand,
|
||||
"opendiscord:rename":ODTextCommand,
|
||||
"opendiscord:add":ODTextCommand,
|
||||
"opendiscord:remove":ODTextCommand,
|
||||
"opendiscord:blacklist-view":ODTextCommand,
|
||||
"opendiscord:blacklist-add":ODTextCommand,
|
||||
"opendiscord:blacklist-remove":ODTextCommand,
|
||||
"opendiscord:blacklist-get":ODTextCommand,
|
||||
"opendiscord:stats-global":ODTextCommand,
|
||||
"opendiscord:stats-reset":ODTextCommand,
|
||||
"opendiscord:stats-ticket":ODTextCommand,
|
||||
"opendiscord:stats-user":ODTextCommand,
|
||||
"opendiscord:clear":ODTextCommand,
|
||||
"opendiscord:autoclose-disable":ODTextCommand,
|
||||
"opendiscord:autoclose-enable":ODTextCommand,
|
||||
"opendiscord:autodelete-disable":ODTextCommand,
|
||||
"opendiscord:autodelete-enable":ODTextCommand
|
||||
}
|
||||
|
||||
/**## ODTextCommandManager_Default `default_class`
|
||||
|
||||
@@ -9,22 +9,22 @@ import { ODCode, ODCodeManager } from "../modules/code"
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODCodeManagerIds_Default {
|
||||
"openticket:command-error-handling":ODCode,
|
||||
"openticket:start-listening-interactions":ODCode,
|
||||
"openticket:panel-database-cleaner":ODCode,
|
||||
"openticket:suffix-database-cleaner":ODCode,
|
||||
"openticket:option-database-cleaner":ODCode,
|
||||
"openticket:user-database-cleaner":ODCode,
|
||||
"openticket:ticket-database-cleaner":ODCode,
|
||||
"openticket:panel-auto-update":ODCode,
|
||||
"openticket:ticket-saver":ODCode,
|
||||
"openticket:blacklist-saver":ODCode,
|
||||
"openticket:auto-role-on-join":ODCode,
|
||||
"openticket:autoclose-timeout":ODCode,
|
||||
"openticket:autoclose-leave":ODCode,
|
||||
"openticket:autodelete-timeout":ODCode,
|
||||
"openticket:autodelete-leave":ODCode,
|
||||
"openticket:ticket-anti-busy":ODCode,
|
||||
"opendiscord:command-error-handling":ODCode,
|
||||
"opendiscord:start-listening-interactions":ODCode,
|
||||
"opendiscord:panel-database-cleaner":ODCode,
|
||||
"opendiscord:suffix-database-cleaner":ODCode,
|
||||
"opendiscord:option-database-cleaner":ODCode,
|
||||
"opendiscord:user-database-cleaner":ODCode,
|
||||
"opendiscord:ticket-database-cleaner":ODCode,
|
||||
"opendiscord:panel-auto-update":ODCode,
|
||||
"opendiscord:ticket-saver":ODCode,
|
||||
"opendiscord:blacklist-saver":ODCode,
|
||||
"opendiscord:auto-role-on-join":ODCode,
|
||||
"opendiscord:autoclose-timeout":ODCode,
|
||||
"opendiscord:autoclose-leave":ODCode,
|
||||
"opendiscord:autodelete-timeout":ODCode,
|
||||
"opendiscord:autodelete-leave":ODCode,
|
||||
"opendiscord:ticket-anti-busy":ODCode,
|
||||
}
|
||||
|
||||
/**## ODCodeManager_Default `default_class`
|
||||
|
||||
@@ -12,11 +12,11 @@ import { ODRoleUpdateMode } from "../openticket/role"
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODConfigManagerIds_Default {
|
||||
"openticket:general":ODJsonConfig_DefaultGeneral,
|
||||
"openticket:options":ODJsonConfig_DefaultOptions,
|
||||
"openticket:panels":ODJsonConfig_DefaultPanels,
|
||||
"openticket:questions":ODJsonConfig_DefaultQuestions,
|
||||
"openticket:transcripts":ODJsonConfig_DefaultTranscripts
|
||||
"opendiscord:general":ODJsonConfig_DefaultGeneral,
|
||||
"opendiscord:options":ODJsonConfig_DefaultOptions,
|
||||
"opendiscord:panels":ODJsonConfig_DefaultPanels,
|
||||
"opendiscord:questions":ODJsonConfig_DefaultQuestions,
|
||||
"opendiscord:transcripts":ODJsonConfig_DefaultTranscripts
|
||||
}
|
||||
|
||||
/**## ODConfigManager_Default `default_class`
|
||||
@@ -102,7 +102,7 @@ export class ODJsonConfig_DefaultGeneral extends ODJsonConfig {
|
||||
|
||||
/**The main (hex) color used in almost every embed in the bot. */
|
||||
mainColor:discord.ColorResolvable,
|
||||
/**The language to use. Can be the id of the language or the id without the prefix when using `openticket:...`. */
|
||||
/**The language to use. Can be the id of the language or the id without the prefix when using `opendiscord:...`. */
|
||||
language:string,
|
||||
/**The prefix used in all text-commands. */
|
||||
prefix:string,
|
||||
|
||||
@@ -9,7 +9,7 @@ import { ODLiveStatusUrlSource, ODLiveStatusManager, ODLiveStatusSource } from "
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODLiveStatusManagerIds_Default {
|
||||
"openticket:default-djdj-dev":ODLiveStatusUrlSource
|
||||
"opendiscord:default-djdj-dev":ODLiveStatusUrlSource
|
||||
}
|
||||
|
||||
/**## ODLiveStatusManager_Default `default_class`
|
||||
|
||||
@@ -11,11 +11,11 @@ import { ODOptionJson } from "../openticket/option"
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODDatabaseManagerIds_Default {
|
||||
"openticket:global":ODFormattedJsonDatabase_DefaultGlobal,
|
||||
"openticket:stats":ODFormattedJsonDatabase,
|
||||
"openticket:tickets":ODFormattedJsonDatabase_DefaultTickets,
|
||||
"openticket:users":ODFormattedJsonDatabase_DefaultUsers,
|
||||
"openticket:options":ODFormattedJsonDatabase_DefaultOptions,
|
||||
"opendiscord:global":ODFormattedJsonDatabase_DefaultGlobal,
|
||||
"opendiscord:stats":ODFormattedJsonDatabase,
|
||||
"opendiscord:tickets":ODFormattedJsonDatabase_DefaultTickets,
|
||||
"opendiscord:users":ODFormattedJsonDatabase_DefaultUsers,
|
||||
"opendiscord:options":ODFormattedJsonDatabase_DefaultOptions,
|
||||
}
|
||||
|
||||
/**## ODDatabaseManager_Default `default_class`
|
||||
@@ -52,10 +52,10 @@ export class ODDatabaseManager_Default extends ODDatabaseManager {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODFormattedJsonDatabaseIds_DefaultGlobal {
|
||||
"openticket:panel-update":string,
|
||||
"openticket:option-suffix-counter":number,
|
||||
"openticket:option-suffix-history":string[],
|
||||
"openticket:last-version":string
|
||||
"opendiscord:panel-update":string,
|
||||
"opendiscord:option-suffix-counter":number,
|
||||
"opendiscord:option-suffix-history":string[],
|
||||
"opendiscord:last-version":string
|
||||
}
|
||||
|
||||
/**## ODFormattedJsonDatabase_DefaultGlobal `default_class`
|
||||
@@ -106,7 +106,7 @@ export class ODFormattedJsonDatabase_DefaultGlobal extends ODFormattedJsonDataba
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODFormattedJsonDatabaseIds_DefaultTickets {
|
||||
"openticket:ticket":ODTicketJson
|
||||
"opendiscord:ticket":ODTicketJson
|
||||
}
|
||||
|
||||
/**## ODFormattedJsonDatabase_DefaultTickets `default_class`
|
||||
@@ -157,7 +157,7 @@ export class ODFormattedJsonDatabase_DefaultTickets extends ODFormattedJsonDatab
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODFormattedJsonDatabaseIds_DefaultUsers {
|
||||
"openticket:blacklist":ODTicketJson
|
||||
"opendiscord:blacklist":ODTicketJson
|
||||
}
|
||||
|
||||
/**## ODFormattedJsonDatabase_DefaultUsers `default_class`
|
||||
@@ -209,7 +209,7 @@ export class ODFormattedJsonDatabase_DefaultUsers extends ODFormattedJsonDatabas
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODFormattedJsonDatabaseIds_DefaultOptions {
|
||||
"openticket:used-option":ODOptionJson
|
||||
"opendiscord:used-option":ODOptionJson
|
||||
}
|
||||
|
||||
/**## ODFormattedJsonDatabase_DefaultOptions `default_class`
|
||||
|
||||
@@ -9,20 +9,20 @@ import { ODFlagManager, ODFlag } from "../modules/flag"
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODFlagManagerIds_Default {
|
||||
"openticket:no-migration":ODFlag,
|
||||
"openticket:dev-config":ODFlag,
|
||||
"openticket:dev-database":ODFlag,
|
||||
"openticket:debug":ODFlag,
|
||||
"openticket:crash":ODFlag,
|
||||
"openticket:no-transcripts":ODFlag,
|
||||
"openticket:no-checker":ODFlag,
|
||||
"openticket:checker":ODFlag,
|
||||
"openticket:no-easter":ODFlag,
|
||||
"openticket:no-plugins":ODFlag,
|
||||
"openticket:soft-plugins":ODFlag,
|
||||
"openticket:force-slash-update":ODFlag,
|
||||
"openticket:no-compile":ODFlag,
|
||||
"openticket:compile-only":ODFlag,
|
||||
"opendiscord:no-migration":ODFlag,
|
||||
"opendiscord:dev-config":ODFlag,
|
||||
"opendiscord:dev-database":ODFlag,
|
||||
"opendiscord:debug":ODFlag,
|
||||
"opendiscord:crash":ODFlag,
|
||||
"opendiscord:no-transcripts":ODFlag,
|
||||
"opendiscord:no-checker":ODFlag,
|
||||
"opendiscord:checker":ODFlag,
|
||||
"opendiscord:no-easter":ODFlag,
|
||||
"opendiscord:no-plugins":ODFlag,
|
||||
"opendiscord:soft-plugins":ODFlag,
|
||||
"opendiscord:force-slash-update":ODFlag,
|
||||
"opendiscord:no-compile":ODFlag,
|
||||
"opendiscord:compile-only":ODFlag,
|
||||
}
|
||||
|
||||
/**## ODFlagManager_Default `default_class`
|
||||
|
||||
@@ -9,13 +9,13 @@ import { ODHelpMenuCategory, ODHelpMenuCommandComponent, ODHelpMenuComponent, OD
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODHelpMenuManagerIds_Default {
|
||||
"openticket:general":ODHelpMenuCategory_DefaultGeneral,
|
||||
"openticket:ticket-basic":ODHelpMenuCategory_DefaultTicketBasic,
|
||||
"openticket:ticket-advanced":ODHelpMenuCategory_DefaultTicketAdvanced,
|
||||
"openticket:ticket-user":ODHelpMenuCategory_DefaultTicketUser,
|
||||
"openticket:admin":ODHelpMenuCategory_DefaultAdmin,
|
||||
"openticket:advanced":ODHelpMenuCategory_DefaultAdvanced,
|
||||
"openticket:extra":ODHelpMenuCategory_DefaultExtra
|
||||
"opendiscord:general":ODHelpMenuCategory_DefaultGeneral,
|
||||
"opendiscord:ticket-basic":ODHelpMenuCategory_DefaultTicketBasic,
|
||||
"opendiscord:ticket-advanced":ODHelpMenuCategory_DefaultTicketAdvanced,
|
||||
"opendiscord:ticket-user":ODHelpMenuCategory_DefaultTicketUser,
|
||||
"opendiscord:admin":ODHelpMenuCategory_DefaultAdmin,
|
||||
"opendiscord:advanced":ODHelpMenuCategory_DefaultAdvanced,
|
||||
"opendiscord:extra":ODHelpMenuCategory_DefaultExtra
|
||||
}
|
||||
|
||||
/**## ODHelpMenuManager_Default `default_class`
|
||||
@@ -52,15 +52,15 @@ export class ODHelpMenuManager_Default extends ODHelpMenuManager {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODHelpMenuManagerCategoryIds_DefaultGeneral {
|
||||
"openticket:help":ODHelpMenuCommandComponent,
|
||||
"openticket:ticket":ODHelpMenuCommandComponent|null
|
||||
"opendiscord:help":ODHelpMenuCommandComponent,
|
||||
"opendiscord:ticket":ODHelpMenuCommandComponent|null
|
||||
}
|
||||
|
||||
/**## ODHelpMenuCategory_DefaultGeneral `default_class`
|
||||
* This is a special class that adds type definitions & typescript to the ODHelpMenuManager class.
|
||||
* It doesn't add any extra features!
|
||||
*
|
||||
* This default class is made for the `openticket:general` category in `opendiscord.helpmenu`!
|
||||
* This default class is made for the `opendiscord:general` category in `opendiscord.helpmenu`!
|
||||
*/
|
||||
export class ODHelpMenuCategory_DefaultGeneral extends ODHelpMenuCategory {
|
||||
get<HelpMenuCategoryId extends keyof ODHelpMenuManagerCategoryIds_DefaultGeneral>(id:HelpMenuCategoryId): ODHelpMenuManagerCategoryIds_DefaultGeneral[HelpMenuCategoryId]
|
||||
@@ -90,16 +90,16 @@ export class ODHelpMenuCategory_DefaultGeneral extends ODHelpMenuCategory {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODHelpMenuManagerCategoryIds_DefaultTicketBasic {
|
||||
"openticket:close":ODHelpMenuCommandComponent,
|
||||
"openticket:delete":ODHelpMenuCommandComponent,
|
||||
"openticket:reopen":ODHelpMenuCommandComponent
|
||||
"opendiscord:close":ODHelpMenuCommandComponent,
|
||||
"opendiscord:delete":ODHelpMenuCommandComponent,
|
||||
"opendiscord:reopen":ODHelpMenuCommandComponent
|
||||
}
|
||||
|
||||
/**## ODHelpMenuCategory_DefaultTicketBasic `default_class`
|
||||
* This is a special class that adds type definitions & typescript to the ODHelpMenuManager class.
|
||||
* It doesn't add any extra features!
|
||||
*
|
||||
* This default class is made for the `openticket:ticket` category in `opendiscord.helpmenu`!
|
||||
* This default class is made for the `opendiscord:ticket` category in `opendiscord.helpmenu`!
|
||||
*/
|
||||
export class ODHelpMenuCategory_DefaultTicketBasic extends ODHelpMenuCategory {
|
||||
get<HelpMenuCategoryId extends keyof ODHelpMenuManagerCategoryIds_DefaultTicketBasic>(id:HelpMenuCategoryId): ODHelpMenuManagerCategoryIds_DefaultTicketBasic[HelpMenuCategoryId]
|
||||
@@ -129,17 +129,17 @@ export class ODHelpMenuCategory_DefaultTicketBasic extends ODHelpMenuCategory {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODHelpMenuManagerCategoryIds_DefaultTicketAdvanced {
|
||||
"openticket:pin":ODHelpMenuCommandComponent,
|
||||
"openticket:unpin":ODHelpMenuCommandComponent,
|
||||
"openticket:move":ODHelpMenuCommandComponent,
|
||||
"openticket:rename":ODHelpMenuCommandComponent
|
||||
"opendiscord:pin":ODHelpMenuCommandComponent,
|
||||
"opendiscord:unpin":ODHelpMenuCommandComponent,
|
||||
"opendiscord:move":ODHelpMenuCommandComponent,
|
||||
"opendiscord:rename":ODHelpMenuCommandComponent
|
||||
}
|
||||
|
||||
/**## ODHelpMenuCategory_DefaultTicketAdvanced `default_class`
|
||||
* This is a special class that adds type definitions & typescript to the ODHelpMenuManager class.
|
||||
* It doesn't add any extra features!
|
||||
*
|
||||
* This default class is made for the `openticket:ticket` category in `opendiscord.helpmenu`!
|
||||
* This default class is made for the `opendiscord:ticket` category in `opendiscord.helpmenu`!
|
||||
*/
|
||||
export class ODHelpMenuCategory_DefaultTicketAdvanced extends ODHelpMenuCategory {
|
||||
get<HelpMenuCategoryId extends keyof ODHelpMenuManagerCategoryIds_DefaultTicketAdvanced>(id:HelpMenuCategoryId): ODHelpMenuManagerCategoryIds_DefaultTicketAdvanced[HelpMenuCategoryId]
|
||||
@@ -169,17 +169,17 @@ export class ODHelpMenuCategory_DefaultTicketAdvanced extends ODHelpMenuCategory
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODHelpMenuManagerCategoryIds_DefaultTicketUser {
|
||||
"openticket:claim":ODHelpMenuCommandComponent,
|
||||
"openticket:unclaim":ODHelpMenuCommandComponent,
|
||||
"openticket:add":ODHelpMenuCommandComponent,
|
||||
"openticket:remove":ODHelpMenuCommandComponent
|
||||
"opendiscord:claim":ODHelpMenuCommandComponent,
|
||||
"opendiscord:unclaim":ODHelpMenuCommandComponent,
|
||||
"opendiscord:add":ODHelpMenuCommandComponent,
|
||||
"opendiscord:remove":ODHelpMenuCommandComponent
|
||||
}
|
||||
|
||||
/**## ODHelpMenuCategory_DefaultTicketUser `default_class`
|
||||
* This is a special class that adds type definitions & typescript to the ODHelpMenuManager class.
|
||||
* It doesn't add any extra features!
|
||||
*
|
||||
* This default class is made for the `openticket:ticket` category in `opendiscord.helpmenu`!
|
||||
* This default class is made for the `opendiscord:ticket` category in `opendiscord.helpmenu`!
|
||||
*/
|
||||
export class ODHelpMenuCategory_DefaultTicketUser extends ODHelpMenuCategory {
|
||||
get<HelpMenuCategoryId extends keyof ODHelpMenuManagerCategoryIds_DefaultTicketUser>(id:HelpMenuCategoryId): ODHelpMenuManagerCategoryIds_DefaultTicketUser[HelpMenuCategoryId]
|
||||
@@ -209,18 +209,18 @@ export class ODHelpMenuCategory_DefaultTicketUser extends ODHelpMenuCategory {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODHelpMenuManagerCategoryIds_DefaultAdmin {
|
||||
"openticket:panel":ODHelpMenuCommandComponent,
|
||||
"openticket:blacklist-view":ODHelpMenuCommandComponent,
|
||||
"openticket:blacklist-add":ODHelpMenuCommandComponent,
|
||||
"openticket:blacklist-remove":ODHelpMenuCommandComponent,
|
||||
"openticket:blacklist-get":ODHelpMenuCommandComponent
|
||||
"opendiscord:panel":ODHelpMenuCommandComponent,
|
||||
"opendiscord:blacklist-view":ODHelpMenuCommandComponent,
|
||||
"opendiscord:blacklist-add":ODHelpMenuCommandComponent,
|
||||
"opendiscord:blacklist-remove":ODHelpMenuCommandComponent,
|
||||
"opendiscord:blacklist-get":ODHelpMenuCommandComponent
|
||||
}
|
||||
|
||||
/**## ODHelpMenuCategory_DefaultAdmin `default_class`
|
||||
* This is a special class that adds type definitions & typescript to the ODHelpMenuManager class.
|
||||
* It doesn't add any extra features!
|
||||
*
|
||||
* This default class is made for the `openticket:admin` category in `opendiscord.helpmenu`!
|
||||
* This default class is made for the `opendiscord:admin` category in `opendiscord.helpmenu`!
|
||||
*/
|
||||
export class ODHelpMenuCategory_DefaultAdmin extends ODHelpMenuCategory {
|
||||
get<HelpMenuCategoryId extends keyof ODHelpMenuManagerCategoryIds_DefaultAdmin>(id:HelpMenuCategoryId): ODHelpMenuManagerCategoryIds_DefaultAdmin[HelpMenuCategoryId]
|
||||
@@ -250,19 +250,19 @@ export class ODHelpMenuCategory_DefaultAdmin extends ODHelpMenuCategory {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODHelpMenuManagerCategoryIds_DefaultAdvanced {
|
||||
"openticket:stats-global":ODHelpMenuCommandComponent,
|
||||
"openticket:stats-reset":ODHelpMenuCommandComponent,
|
||||
"openticket:stats-ticket":ODHelpMenuCommandComponent,
|
||||
"openticket:stats-user":ODHelpMenuCommandComponent,
|
||||
"openticket:autoclose-disable":ODHelpMenuCommandComponent,
|
||||
"openticket:autoclose-enable":ODHelpMenuCommandComponent
|
||||
"opendiscord:stats-global":ODHelpMenuCommandComponent,
|
||||
"opendiscord:stats-reset":ODHelpMenuCommandComponent,
|
||||
"opendiscord:stats-ticket":ODHelpMenuCommandComponent,
|
||||
"opendiscord:stats-user":ODHelpMenuCommandComponent,
|
||||
"opendiscord:autoclose-disable":ODHelpMenuCommandComponent,
|
||||
"opendiscord:autoclose-enable":ODHelpMenuCommandComponent
|
||||
}
|
||||
|
||||
/**## ODHelpMenuCategory_DefaultAdvanced `default_class`
|
||||
* This is a special class that adds type definitions & typescript to the ODHelpMenuManager class.
|
||||
* It doesn't add any extra features!
|
||||
*
|
||||
* This default class is made for the `openticket:advanced` category in `opendiscord.helpmenu`!
|
||||
* This default class is made for the `opendiscord:advanced` category in `opendiscord.helpmenu`!
|
||||
*/
|
||||
export class ODHelpMenuCategory_DefaultAdvanced extends ODHelpMenuCategory {
|
||||
get<HelpMenuCategoryId extends keyof ODHelpMenuManagerCategoryIds_DefaultAdvanced>(id:HelpMenuCategoryId): ODHelpMenuManagerCategoryIds_DefaultAdvanced[HelpMenuCategoryId]
|
||||
@@ -297,7 +297,7 @@ export interface ODHelpMenuManagerCategoryIds_DefaultExtra {}
|
||||
* This is a special class that adds type definitions & typescript to the ODHelpMenuManager class.
|
||||
* It doesn't add any extra features!
|
||||
*
|
||||
* This default class is made for the `openticket:general` category in `opendiscord.helpmenu`!
|
||||
* This default class is made for the `opendiscord:general` category in `opendiscord.helpmenu`!
|
||||
*/
|
||||
export class ODHelpMenuCategory_DefaultExtra extends ODHelpMenuCategory {
|
||||
get<HelpMenuCategoryId extends keyof ODHelpMenuManagerCategoryIds_DefaultExtra>(id:HelpMenuCategoryId): ODHelpMenuManagerCategoryIds_DefaultExtra[HelpMenuCategoryId]
|
||||
|
||||
@@ -444,29 +444,29 @@ export type ODLanguageManagerTranslations_Default = (
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODLanguageManagerIds_Default {
|
||||
"openticket:custom":ODLanguage,
|
||||
"openticket:english":ODLanguage,
|
||||
"openticket:dutch":ODLanguage,
|
||||
"openticket:portuguese":ODLanguage,
|
||||
"openticket:czech":ODLanguage,
|
||||
"openticket:german":ODLanguage,
|
||||
"openticket:catalan":ODLanguage,
|
||||
"openticket:hungarian":ODLanguage,
|
||||
"openticket:spanish":ODLanguage,
|
||||
"openticket:romanian":ODLanguage,
|
||||
"openticket:ukrainian":ODLanguage,
|
||||
"openticket:indonesian":ODLanguage,
|
||||
"openticket:italian":ODLanguage,
|
||||
"openticket:estonian":ODLanguage,
|
||||
"openticket:finnish":ODLanguage,
|
||||
"openticket:danish":ODLanguage,
|
||||
"openticket:thai":ODLanguage,
|
||||
"openticket:turkish":ODLanguage,
|
||||
"openticket:french":ODLanguage,
|
||||
"openticket:arabic":ODLanguage,
|
||||
"openticket:hindi":ODLanguage,
|
||||
"openticket:lithuanian":ODLanguage,
|
||||
"openticket:polish":ODLanguage,
|
||||
"opendiscord:custom":ODLanguage,
|
||||
"opendiscord:english":ODLanguage,
|
||||
"opendiscord:dutch":ODLanguage,
|
||||
"opendiscord:portuguese":ODLanguage,
|
||||
"opendiscord:czech":ODLanguage,
|
||||
"opendiscord:german":ODLanguage,
|
||||
"opendiscord:catalan":ODLanguage,
|
||||
"opendiscord:hungarian":ODLanguage,
|
||||
"opendiscord:spanish":ODLanguage,
|
||||
"opendiscord:romanian":ODLanguage,
|
||||
"opendiscord:ukrainian":ODLanguage,
|
||||
"opendiscord:indonesian":ODLanguage,
|
||||
"opendiscord:italian":ODLanguage,
|
||||
"opendiscord:estonian":ODLanguage,
|
||||
"opendiscord:finnish":ODLanguage,
|
||||
"opendiscord:danish":ODLanguage,
|
||||
"opendiscord:thai":ODLanguage,
|
||||
"opendiscord:turkish":ODLanguage,
|
||||
"opendiscord:french":ODLanguage,
|
||||
"opendiscord:arabic":ODLanguage,
|
||||
"opendiscord:hindi":ODLanguage,
|
||||
"opendiscord:lithuanian":ODLanguage,
|
||||
"opendiscord:polish":ODLanguage,
|
||||
//ADD NEW LANGUAGES HERE!!!
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ export class ODPermissionManager_Default extends ODPermissionManager {
|
||||
}
|
||||
|
||||
/**## ODPermissionEmbedType `type`
|
||||
* This type contains all types available in the `openticket:no-permissions` embed.
|
||||
* This type contains all types available in the `opendiscord:no-permissions` embed.
|
||||
*/
|
||||
export type ODPermissionEmbedType = (
|
||||
"developer"|
|
||||
|
||||
@@ -10,8 +10,8 @@ import * as discord from "discord.js"
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODPostManagerIds_Default {
|
||||
"openticket:logs":ODPost<discord.GuildTextBasedChannel>|null,
|
||||
"openticket:transcripts":ODPost<discord.GuildTextBasedChannel>|null
|
||||
"opendiscord:logs":ODPost<discord.GuildTextBasedChannel>|null,
|
||||
"opendiscord:transcripts":ODPost<discord.GuildTextBasedChannel>|null
|
||||
}
|
||||
|
||||
/**## ODPostManager_Default `default_class`
|
||||
|
||||
@@ -89,12 +89,12 @@ export class ODProgressBarRenderer_Default extends ODProgressBarRenderer<ODProgr
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODProgressBarRendererManagerIds_Default {
|
||||
"openticket:value-renderer":ODProgressBarRenderer_Default,
|
||||
"openticket:fraction-renderer":ODProgressBarRenderer_Default,
|
||||
"openticket:percentage-renderer":ODProgressBarRenderer_Default,
|
||||
"openticket:time-ms-renderer":ODProgressBarRenderer_Default,
|
||||
"openticket:time-sec-renderer":ODProgressBarRenderer_Default,
|
||||
"openticket:time-min-renderer":ODProgressBarRenderer_Default,
|
||||
"opendiscord:value-renderer":ODProgressBarRenderer_Default,
|
||||
"opendiscord:fraction-renderer":ODProgressBarRenderer_Default,
|
||||
"opendiscord:percentage-renderer":ODProgressBarRenderer_Default,
|
||||
"opendiscord:time-ms-renderer":ODProgressBarRenderer_Default,
|
||||
"opendiscord:time-sec-renderer":ODProgressBarRenderer_Default,
|
||||
"opendiscord:time-min-renderer":ODProgressBarRenderer_Default,
|
||||
}
|
||||
|
||||
/**## ODProgressBarRendererManager_Default `default_class`
|
||||
@@ -131,9 +131,9 @@ export class ODProgressBarRendererManager_Default extends ODProgressBarRendererM
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODProgressBarManagerIds_Default {
|
||||
"openticket:slash-command-remove":ODManualProgressBar,
|
||||
"openticket:slash-command-create":ODManualProgressBar,
|
||||
"openticket:slash-command-update":ODManualProgressBar,
|
||||
"opendiscord:slash-command-remove":ODManualProgressBar,
|
||||
"opendiscord:slash-command-create":ODManualProgressBar,
|
||||
"opendiscord:slash-command-update":ODManualProgressBar,
|
||||
}
|
||||
|
||||
/**## ODProgressBarManager_Default `default_class`
|
||||
|
||||
@@ -23,28 +23,28 @@ export class ODResponderManager_Default extends ODResponderManager {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODCommandResponderManagerIds_Default {
|
||||
"openticket:help":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:help"|"openticket:logs"},
|
||||
"openticket:stats":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:stats"|"openticket:logs"},
|
||||
"openticket:panel":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:panel"|"openticket:logs"},
|
||||
"openticket:ticket":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:ticket"|"openticket:logs"},
|
||||
"openticket:blacklist":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:blacklist"|"openticket:discord-logs"|"openticket:logs"},
|
||||
"opendiscord:help":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:help"|"opendiscord:logs"},
|
||||
"opendiscord:stats":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:stats"|"opendiscord:logs"},
|
||||
"opendiscord:panel":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:panel"|"opendiscord:logs"},
|
||||
"opendiscord:ticket":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:ticket"|"opendiscord:logs"},
|
||||
"opendiscord:blacklist":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:blacklist"|"opendiscord:discord-logs"|"opendiscord:logs"},
|
||||
|
||||
"openticket:close":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:close"|"openticket:logs"},
|
||||
"openticket:reopen":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:reopen"|"openticket:logs"},
|
||||
"openticket:delete":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:delete"|"openticket:logs"},
|
||||
"openticket:claim":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:claim"|"openticket:logs"},
|
||||
"openticket:unclaim":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:unclaim"|"openticket:logs"},
|
||||
"openticket:pin":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:pin"|"openticket:logs"},
|
||||
"openticket:unpin":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:unpin"|"openticket:logs"},
|
||||
"opendiscord:close":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:close"|"opendiscord:logs"},
|
||||
"opendiscord:reopen":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:reopen"|"opendiscord:logs"},
|
||||
"opendiscord:delete":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:delete"|"opendiscord:logs"},
|
||||
"opendiscord:claim":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:claim"|"opendiscord:logs"},
|
||||
"opendiscord:unclaim":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:unclaim"|"opendiscord:logs"},
|
||||
"opendiscord:pin":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:pin"|"opendiscord:logs"},
|
||||
"opendiscord:unpin":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:unpin"|"opendiscord:logs"},
|
||||
|
||||
"openticket:rename":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:rename"|"openticket:logs"},
|
||||
"openticket:move":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:move"|"openticket:logs"},
|
||||
"openticket:add":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:add"|"openticket:logs"},
|
||||
"openticket:remove":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:remove"|"openticket:logs"},
|
||||
"openticket:clear":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:clear"|"openticket:logs"},
|
||||
"opendiscord:rename":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:rename"|"opendiscord:logs"},
|
||||
"opendiscord:move":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:move"|"opendiscord:logs"},
|
||||
"opendiscord:add":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:add"|"opendiscord:logs"},
|
||||
"opendiscord:remove":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:remove"|"opendiscord:logs"},
|
||||
"opendiscord:clear":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:clear"|"opendiscord:logs"},
|
||||
|
||||
"openticket:autoclose":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:autoclose"|"openticket:logs"},
|
||||
"openticket:autodelete":{source:"slash"|"text",params:{},workers:"openticket:permissions"|"openticket:autodelete"|"openticket:logs"},
|
||||
"opendiscord:autoclose":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:autoclose"|"opendiscord:logs"},
|
||||
"opendiscord:autodelete":{source:"slash"|"text",params:{},workers:"opendiscord:permissions"|"opendiscord:autodelete"|"opendiscord:logs"},
|
||||
}
|
||||
|
||||
/**## ODCommandResponderManager_Default `default_class`
|
||||
@@ -91,27 +91,27 @@ export class ODCommandResponder_Default<Source extends "slash"|"text", Params, W
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODButtonResponderManagerIds_Default {
|
||||
"openticket:verifybar-success":{source:"button",params:{},workers:"openticket:handle-verifybar"},
|
||||
"openticket:verifybar-failure":{source:"button",params:{},workers:"openticket:handle-verifybar"},
|
||||
"opendiscord:verifybar-success":{source:"button",params:{},workers:"opendiscord:handle-verifybar"},
|
||||
"opendiscord:verifybar-failure":{source:"button",params:{},workers:"opendiscord:handle-verifybar"},
|
||||
|
||||
"openticket:help-menu-switch":{source:"button",params:{},workers:"openticket:update-help-menu"},
|
||||
"openticket:help-menu-previous":{source:"button",params:{},workers:"openticket:update-help-menu"},
|
||||
"openticket:help-menu-next":{source:"button",params:{},workers:"openticket:update-help-menu"},
|
||||
"opendiscord:help-menu-switch":{source:"button",params:{},workers:"opendiscord:update-help-menu"},
|
||||
"opendiscord:help-menu-previous":{source:"button",params:{},workers:"opendiscord:update-help-menu"},
|
||||
"opendiscord:help-menu-next":{source:"button",params:{},workers:"opendiscord:update-help-menu"},
|
||||
|
||||
"openticket:ticket-option":{source:"button",params:{},workers:"openticket:ticket-option"},
|
||||
"openticket:role-option":{source:"button",params:{},workers:"openticket:role-option"},
|
||||
"opendiscord:ticket-option":{source:"button",params:{},workers:"opendiscord:ticket-option"},
|
||||
"opendiscord:role-option":{source:"button",params:{},workers:"opendiscord:role-option"},
|
||||
|
||||
"openticket:claim-ticket":{source:"button",params:{},workers:"openticket:claim-ticket"},
|
||||
"openticket:unclaim-ticket":{source:"button",params:{},workers:"openticket:unclaim-ticket"},
|
||||
"openticket:pin-ticket":{source:"button",params:{},workers:"openticket:pin-ticket"},
|
||||
"openticket:unpin-ticket":{source:"button",params:{},workers:"openticket:unpin-ticket"},
|
||||
"openticket:close-ticket":{source:"button",params:{},workers:"openticket:close-ticket"},
|
||||
"openticket:reopen-ticket":{source:"button",params:{},workers:"openticket:reopen-ticket"},
|
||||
"openticket:delete-ticket":{source:"button",params:{},workers:"openticket:delete-ticket"},
|
||||
"opendiscord:claim-ticket":{source:"button",params:{},workers:"opendiscord:claim-ticket"},
|
||||
"opendiscord:unclaim-ticket":{source:"button",params:{},workers:"opendiscord:unclaim-ticket"},
|
||||
"opendiscord:pin-ticket":{source:"button",params:{},workers:"opendiscord:pin-ticket"},
|
||||
"opendiscord:unpin-ticket":{source:"button",params:{},workers:"opendiscord:unpin-ticket"},
|
||||
"opendiscord:close-ticket":{source:"button",params:{},workers:"opendiscord:close-ticket"},
|
||||
"opendiscord:reopen-ticket":{source:"button",params:{},workers:"opendiscord:reopen-ticket"},
|
||||
"opendiscord:delete-ticket":{source:"button",params:{},workers:"opendiscord:delete-ticket"},
|
||||
|
||||
"openticket:transcript-error-retry":{source:"button",params:{},workers:"openticket:permissions"|"openticket:delete-ticket"|"openticket:logs"},
|
||||
"openticket:transcript-error-continue":{source:"button",params:{},workers:"openticket:permissions"|"openticket:delete-ticket"|"openticket:logs"},
|
||||
"openticket:clear-continue":{source:"button",params:{},workers:"openticket:clear-continue"},
|
||||
"opendiscord:transcript-error-retry":{source:"button",params:{},workers:"opendiscord:permissions"|"opendiscord:delete-ticket"|"opendiscord:logs"},
|
||||
"opendiscord:transcript-error-continue":{source:"button",params:{},workers:"opendiscord:permissions"|"opendiscord:delete-ticket"|"opendiscord:logs"},
|
||||
"opendiscord:clear-continue":{source:"button",params:{},workers:"opendiscord:clear-continue"},
|
||||
}
|
||||
|
||||
/**## ODButtonResponderManager_Default `default_class`
|
||||
@@ -158,7 +158,7 @@ export class ODButtonResponder_Default<Source extends string, Params, WorkerIds
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODDropdownResponderManagerIds_Default {
|
||||
"openticket:panel-dropdown-tickets":{source:"dropdown",params:{},workers:"openticket:panel-dropdown-tickets"},
|
||||
"opendiscord:panel-dropdown-tickets":{source:"dropdown",params:{},workers:"opendiscord:panel-dropdown-tickets"},
|
||||
}
|
||||
|
||||
/**## ODDropdownResponderManager_Default `default_class`
|
||||
@@ -205,14 +205,14 @@ export class ODDropdownResponder_Default<Source extends string, Params, WorkerId
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODModalResponderManagerIds_Default {
|
||||
"openticket:ticket-questions":{source:"modal",params:{},workers:"openticket:ticket-questions"},
|
||||
"openticket:close-ticket-reason":{source:"modal",params:{},workers:"openticket:close-ticket-reason"},
|
||||
"openticket:reopen-ticket-reason":{source:"modal",params:{},workers:"openticket:reopen-ticket-reason"},
|
||||
"openticket:delete-ticket-reason":{source:"modal",params:{},workers:"openticket:delete-ticket-reason"},
|
||||
"openticket:claim-ticket-reason":{source:"modal",params:{},workers:"openticket:claim-ticket-reason"},
|
||||
"openticket:unclaim-ticket-reason":{source:"modal",params:{},workers:"openticket:unclaim-ticket-reason"},
|
||||
"openticket:pin-ticket-reason":{source:"modal",params:{},workers:"openticket:pin-ticket-reason"},
|
||||
"openticket:unpin-ticket-reason":{source:"modal",params:{},workers:"openticket:unpin-ticket-reason"},
|
||||
"opendiscord:ticket-questions":{source:"modal",params:{},workers:"opendiscord:ticket-questions"},
|
||||
"opendiscord:close-ticket-reason":{source:"modal",params:{},workers:"opendiscord:close-ticket-reason"},
|
||||
"opendiscord:reopen-ticket-reason":{source:"modal",params:{},workers:"opendiscord:reopen-ticket-reason"},
|
||||
"opendiscord:delete-ticket-reason":{source:"modal",params:{},workers:"opendiscord:delete-ticket-reason"},
|
||||
"opendiscord:claim-ticket-reason":{source:"modal",params:{},workers:"opendiscord:claim-ticket-reason"},
|
||||
"opendiscord:unclaim-ticket-reason":{source:"modal",params:{},workers:"opendiscord:unclaim-ticket-reason"},
|
||||
"opendiscord:pin-ticket-reason":{source:"modal",params:{},workers:"opendiscord:pin-ticket-reason"},
|
||||
"opendiscord:unpin-ticket-reason":{source:"modal",params:{},workers:"opendiscord:unpin-ticket-reason"},
|
||||
}
|
||||
|
||||
/**## ODModalResponderManager_Default `default_class`
|
||||
|
||||
@@ -9,13 +9,13 @@ import { ODStartScreenCategoryComponent, ODStartScreenComponent, ODStartScreenFl
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODStartScreenManagerIds_Default {
|
||||
"openticket:logo":ODStartScreenLogoComponent,
|
||||
"openticket:header":ODStartScreenHeaderComponent,
|
||||
"openticket:flags":ODStartScreenFlagsCategoryComponent,
|
||||
"openticket:plugins":ODStartScreenPluginsCategoryComponent,
|
||||
"openticket:stats":ODStartScreenPropertiesCategoryComponent,
|
||||
"openticket:livestatus":ODStartScreenLiveStatusCategoryComponent,
|
||||
"openticket:logs":ODStartScreenCategoryComponent
|
||||
"opendiscord:logo":ODStartScreenLogoComponent,
|
||||
"opendiscord:header":ODStartScreenHeaderComponent,
|
||||
"opendiscord:flags":ODStartScreenFlagsCategoryComponent,
|
||||
"opendiscord:plugins":ODStartScreenPluginsCategoryComponent,
|
||||
"opendiscord:stats":ODStartScreenPropertiesCategoryComponent,
|
||||
"opendiscord:livestatus":ODStartScreenLiveStatusCategoryComponent,
|
||||
"opendiscord:logs":ODStartScreenCategoryComponent
|
||||
}
|
||||
|
||||
/**## ODStartScreenManager_Default `default_class`
|
||||
|
||||
@@ -10,11 +10,11 @@ import { ODStatScope, ODStatGlobalScope, ODStatsManager, ODStat, ODBasicStat, OD
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODStatsManagerIds_Default {
|
||||
"openticket:global":ODStatGlobalScope_DefaultGlobal,
|
||||
"openticket:system":ODStatGlobalScope_DefaultSystem,
|
||||
"openticket:user":ODStatScope_DefaultUser,
|
||||
"openticket:ticket":ODStatScope_DefaultTicket,
|
||||
"openticket:participants":ODStatScope_DefaultParticipants
|
||||
"opendiscord:global":ODStatGlobalScope_DefaultGlobal,
|
||||
"opendiscord:system":ODStatGlobalScope_DefaultSystem,
|
||||
"opendiscord:user":ODStatScope_DefaultUser,
|
||||
"opendiscord:ticket":ODStatScope_DefaultTicket,
|
||||
"opendiscord:participants":ODStatScope_DefaultParticipants
|
||||
}
|
||||
|
||||
/**## ODStatsManager_Default `default_class`
|
||||
@@ -51,24 +51,24 @@ export class ODStatsManager_Default extends ODStatsManager {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODStatGlobalScopeIds_DefaultGlobal {
|
||||
"openticket:tickets-created":ODBasicStat,
|
||||
"openticket:tickets-closed":ODBasicStat,
|
||||
"openticket:tickets-deleted":ODBasicStat,
|
||||
"openticket:tickets-reopened":ODBasicStat,
|
||||
"openticket:tickets-autoclosed":ODBasicStat,
|
||||
"openticket:tickets-autodeleted":ODBasicStat,
|
||||
"openticket:tickets-claimed":ODBasicStat,
|
||||
"openticket:tickets-pinned":ODBasicStat,
|
||||
"openticket:tickets-moved":ODBasicStat,
|
||||
"openticket:users-blacklisted":ODBasicStat,
|
||||
"openticket:transcripts-created":ODBasicStat
|
||||
"opendiscord:tickets-created":ODBasicStat,
|
||||
"opendiscord:tickets-closed":ODBasicStat,
|
||||
"opendiscord:tickets-deleted":ODBasicStat,
|
||||
"opendiscord:tickets-reopened":ODBasicStat,
|
||||
"opendiscord:tickets-autoclosed":ODBasicStat,
|
||||
"opendiscord:tickets-autodeleted":ODBasicStat,
|
||||
"opendiscord:tickets-claimed":ODBasicStat,
|
||||
"opendiscord:tickets-pinned":ODBasicStat,
|
||||
"opendiscord:tickets-moved":ODBasicStat,
|
||||
"opendiscord:users-blacklisted":ODBasicStat,
|
||||
"opendiscord:transcripts-created":ODBasicStat
|
||||
}
|
||||
|
||||
/**## ODStatGlobalScope_DefaultGlobal `default_class`
|
||||
* This is a special class that adds type definitions & typescript to the ODStatsManager class.
|
||||
* It doesn't add any extra features!
|
||||
*
|
||||
* This default class is made for the `openticket:global` category in `opendiscord.stats`!
|
||||
* This default class is made for the `opendiscord:global` category in `opendiscord.stats`!
|
||||
*/
|
||||
export class ODStatGlobalScope_DefaultGlobal extends ODStatGlobalScope {
|
||||
get<StatsId extends keyof ODStatGlobalScopeIds_DefaultGlobal>(id:StatsId): ODStatGlobalScopeIds_DefaultGlobal[StatsId]
|
||||
@@ -119,15 +119,15 @@ export class ODStatGlobalScope_DefaultGlobal extends ODStatGlobalScope {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODStatGlobalScopeIds_DefaultSystem {
|
||||
"openticket:startup-date":ODDynamicStat,
|
||||
"openticket:version":ODDynamicStat
|
||||
"opendiscord:startup-date":ODDynamicStat,
|
||||
"opendiscord:version":ODDynamicStat
|
||||
}
|
||||
|
||||
/**## ODStatGlobalScope_DefaultSystem `default_class`
|
||||
* This is a special class that adds type definitions & typescript to the ODStatsManager class.
|
||||
* It doesn't add any extra features!
|
||||
*
|
||||
* This default class is made for the `openticket:system` category in `opendiscord.stats`!
|
||||
* This default class is made for the `opendiscord:system` category in `opendiscord.stats`!
|
||||
*/
|
||||
export class ODStatGlobalScope_DefaultSystem extends ODStatGlobalScope {
|
||||
get<StatsId extends keyof ODStatGlobalScopeIds_DefaultSystem>(id:StatsId): ODStatGlobalScopeIds_DefaultSystem[StatsId]
|
||||
@@ -178,24 +178,24 @@ export class ODStatGlobalScope_DefaultSystem extends ODStatGlobalScope {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODStatScopeIds_DefaultUser {
|
||||
"openticket:name":ODDynamicStat,
|
||||
"openticket:role":ODDynamicStat,
|
||||
"openticket:tickets-created":ODBasicStat,
|
||||
"openticket:tickets-closed":ODBasicStat,
|
||||
"openticket:tickets-deleted":ODBasicStat,
|
||||
"openticket:tickets-reopened":ODBasicStat,
|
||||
"openticket:tickets-claimed":ODBasicStat,
|
||||
"openticket:tickets-pinned":ODBasicStat,
|
||||
"openticket:tickets-moved":ODBasicStat,
|
||||
"openticket:users-blacklisted":ODBasicStat,
|
||||
"openticket:transcripts-created":ODBasicStat
|
||||
"opendiscord:name":ODDynamicStat,
|
||||
"opendiscord:role":ODDynamicStat,
|
||||
"opendiscord:tickets-created":ODBasicStat,
|
||||
"opendiscord:tickets-closed":ODBasicStat,
|
||||
"opendiscord:tickets-deleted":ODBasicStat,
|
||||
"opendiscord:tickets-reopened":ODBasicStat,
|
||||
"opendiscord:tickets-claimed":ODBasicStat,
|
||||
"opendiscord:tickets-pinned":ODBasicStat,
|
||||
"opendiscord:tickets-moved":ODBasicStat,
|
||||
"opendiscord:users-blacklisted":ODBasicStat,
|
||||
"opendiscord:transcripts-created":ODBasicStat
|
||||
}
|
||||
|
||||
/**## ODStatScope_DefaultUser `default_class`
|
||||
* This is a special class that adds type definitions & typescript to the ODStatsManager class.
|
||||
* It doesn't add any extra features!
|
||||
*
|
||||
* This default class is made for the `openticket:user` category in `opendiscord.stats`!
|
||||
* This default class is made for the `opendiscord:user` category in `opendiscord.stats`!
|
||||
*/
|
||||
export class ODStatScope_DefaultUser extends ODStatScope {
|
||||
get<StatsId extends keyof ODStatScopeIds_DefaultUser>(id:StatsId): ODStatScopeIds_DefaultUser[StatsId]
|
||||
@@ -246,19 +246,19 @@ export class ODStatScope_DefaultUser extends ODStatScope {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODStatScopeIds_DefaultTicket {
|
||||
"openticket:name":ODDynamicStat,
|
||||
"openticket:status":ODDynamicStat,
|
||||
"openticket:claimed":ODDynamicStat,
|
||||
"openticket:pinned":ODDynamicStat,
|
||||
"openticket:creation-date":ODDynamicStat,
|
||||
"openticket:creator":ODDynamicStat
|
||||
"opendiscord:name":ODDynamicStat,
|
||||
"opendiscord:status":ODDynamicStat,
|
||||
"opendiscord:claimed":ODDynamicStat,
|
||||
"opendiscord:pinned":ODDynamicStat,
|
||||
"opendiscord:creation-date":ODDynamicStat,
|
||||
"opendiscord:creator":ODDynamicStat
|
||||
}
|
||||
|
||||
/**## ODStatScope_DefaultTicket `default_class`
|
||||
* This is a special class that adds type definitions & typescript to the ODStatsManager class.
|
||||
* It doesn't add any extra features!
|
||||
*
|
||||
* This default class is made for the `openticket:ticket` category in `opendiscord.stats`!
|
||||
* This default class is made for the `opendiscord:ticket` category in `opendiscord.stats`!
|
||||
*/
|
||||
export class ODStatScope_DefaultTicket extends ODStatScope {
|
||||
get<StatsId extends keyof ODStatScopeIds_DefaultTicket>(id:StatsId): ODStatScopeIds_DefaultTicket[StatsId]
|
||||
@@ -309,14 +309,14 @@ export class ODStatScope_DefaultTicket extends ODStatScope {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODStatScopeIds_DefaultParticipants {
|
||||
"openticket:participants":ODDynamicStat
|
||||
"opendiscord:participants":ODDynamicStat
|
||||
}
|
||||
|
||||
/**## ODStatScope_DefaultParticipants `default_class`
|
||||
* This is a special class that adds type definitions & typescript to the ODStatsManager class.
|
||||
* It doesn't add any extra features!
|
||||
*
|
||||
* This default class is made for the `openticket:participants` category in `opendiscord.stats`!
|
||||
* This default class is made for the `opendiscord:participants` category in `opendiscord.stats`!
|
||||
*/
|
||||
export class ODStatScope_DefaultParticipants extends ODStatScope {
|
||||
get<StatsId extends keyof ODStatScopeIds_DefaultParticipants>(id:StatsId): ODStatScopeIds_DefaultParticipants[StatsId]
|
||||
|
||||
@@ -12,23 +12,23 @@ import * as discord from "discord.js"
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODVerifyBarManagerIds_Default {
|
||||
"openticket:claim-ticket-ticket-message":{successWorkerIds:"openticket:permissions"|"openticket:claim-ticket",failureWorkerIds:"openticket:back-to-ticket-message"},
|
||||
"openticket:claim-ticket-unclaim-message":{successWorkerIds:"openticket:permissions"|"openticket:claim-ticket",failureWorkerIds:"openticket:back-to-unclaim-message"},
|
||||
"openticket:unclaim-ticket-ticket-message":{successWorkerIds:"openticket:permissions"|"openticket:unclaim-ticket",failureWorkerIds:"openticket:back-to-ticket-message"},
|
||||
"openticket:unclaim-ticket-claim-message":{successWorkerIds:"openticket:permissions"|"openticket:unclaim-ticket",failureWorkerIds:"openticket:back-to-claim-message"},
|
||||
"openticket:pin-ticket-ticket-message":{successWorkerIds:"openticket:permissions"|"openticket:pin-ticket",failureWorkerIds:"openticket:back-to-ticket-message"},
|
||||
"openticket:pin-ticket-unpin-message":{successWorkerIds:"openticket:permissions"|"openticket:pin-ticket",failureWorkerIds:"openticket:back-to-unpin-message"},
|
||||
"openticket:unpin-ticket-ticket-message":{successWorkerIds:"openticket:permissions"|"openticket:unpin-ticket",failureWorkerIds:"openticket:back-to-ticket-message"},
|
||||
"openticket:unpin-ticket-pin-message":{successWorkerIds:"openticket:permissions"|"openticket:unpin-ticket",failureWorkerIds:"openticket:back-to-pin-message"},
|
||||
"openticket:close-ticket-ticket-message":{successWorkerIds:"openticket:permissions"|"openticket:close-ticket",failureWorkerIds:"openticket:back-to-ticket-message"},
|
||||
"openticket:close-ticket-reopen-message":{successWorkerIds:"openticket:permissions"|"openticket:close-ticket",failureWorkerIds:"openticket:back-to-reopen-message"},
|
||||
"openticket:reopen-ticket-ticket-message":{successWorkerIds:"openticket:permissions"|"openticket:reopen-ticket",failureWorkerIds:"openticket:back-to-ticket-message"},
|
||||
"openticket:reopen-ticket-close-message":{successWorkerIds:"openticket:permissions"|"openticket:reopen-ticket",failureWorkerIds:"openticket:back-to-close-message"},
|
||||
"openticket:reopen-ticket-autoclose-message":{successWorkerIds:"openticket:permissions"|"openticket:reopen-ticket",failureWorkerIds:"openticket:back-to-autoclose-message"},
|
||||
"openticket:delete-ticket-ticket-message":{successWorkerIds:"openticket:permissions"|"openticket:delete-ticket",failureWorkerIds:"openticket:back-to-ticket-message"}
|
||||
"openticket:delete-ticket-close-message":{successWorkerIds:"openticket:permissions"|"openticket:delete-ticket",failureWorkerIds:"openticket:back-to-close-message"}
|
||||
"openticket:delete-ticket-reopen-message":{successWorkerIds:"openticket:permissions"|"openticket:delete-ticket",failureWorkerIds:"openticket:back-to-reopen-message"}
|
||||
"openticket:delete-ticket-autoclose-message":{successWorkerIds:"openticket:permissions"|"openticket:delete-ticket",failureWorkerIds:"openticket:back-to-autoclose-message"}
|
||||
"opendiscord:claim-ticket-ticket-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:claim-ticket",failureWorkerIds:"opendiscord:back-to-ticket-message"},
|
||||
"opendiscord:claim-ticket-unclaim-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:claim-ticket",failureWorkerIds:"opendiscord:back-to-unclaim-message"},
|
||||
"opendiscord:unclaim-ticket-ticket-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:unclaim-ticket",failureWorkerIds:"opendiscord:back-to-ticket-message"},
|
||||
"opendiscord:unclaim-ticket-claim-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:unclaim-ticket",failureWorkerIds:"opendiscord:back-to-claim-message"},
|
||||
"opendiscord:pin-ticket-ticket-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:pin-ticket",failureWorkerIds:"opendiscord:back-to-ticket-message"},
|
||||
"opendiscord:pin-ticket-unpin-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:pin-ticket",failureWorkerIds:"opendiscord:back-to-unpin-message"},
|
||||
"opendiscord:unpin-ticket-ticket-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:unpin-ticket",failureWorkerIds:"opendiscord:back-to-ticket-message"},
|
||||
"opendiscord:unpin-ticket-pin-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:unpin-ticket",failureWorkerIds:"opendiscord:back-to-pin-message"},
|
||||
"opendiscord:close-ticket-ticket-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:close-ticket",failureWorkerIds:"opendiscord:back-to-ticket-message"},
|
||||
"opendiscord:close-ticket-reopen-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:close-ticket",failureWorkerIds:"opendiscord:back-to-reopen-message"},
|
||||
"opendiscord:reopen-ticket-ticket-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:reopen-ticket",failureWorkerIds:"opendiscord:back-to-ticket-message"},
|
||||
"opendiscord:reopen-ticket-close-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:reopen-ticket",failureWorkerIds:"opendiscord:back-to-close-message"},
|
||||
"opendiscord:reopen-ticket-autoclose-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:reopen-ticket",failureWorkerIds:"opendiscord:back-to-autoclose-message"},
|
||||
"opendiscord:delete-ticket-ticket-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:delete-ticket",failureWorkerIds:"opendiscord:back-to-ticket-message"}
|
||||
"opendiscord:delete-ticket-close-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:delete-ticket",failureWorkerIds:"opendiscord:back-to-close-message"}
|
||||
"opendiscord:delete-ticket-reopen-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:delete-ticket",failureWorkerIds:"opendiscord:back-to-reopen-message"}
|
||||
"opendiscord:delete-ticket-autoclose-message":{successWorkerIds:"opendiscord:permissions"|"opendiscord:delete-ticket",failureWorkerIds:"opendiscord:back-to-autoclose-message"}
|
||||
}
|
||||
|
||||
/**## ODVerifyBarManager_Default `default_class`
|
||||
|
||||
@@ -130,12 +130,12 @@ export class ODMain {
|
||||
|
||||
constructor(){
|
||||
this.versions = new ODVersionManager_Default()
|
||||
this.versions.add(ODVersion.fromString("openticket:version","v4.0.0"))
|
||||
this.versions.add(ODVersion.fromString("openticket:api","v1.0.0"))
|
||||
this.versions.add(ODVersion.fromString("openticket:transcripts","v2.0.0"))
|
||||
this.versions.add(ODVersion.fromString("openticket:livestatus","v2.0.0"))
|
||||
this.versions.add(ODVersion.fromString("opendiscord:version","v4.0.0"))
|
||||
this.versions.add(ODVersion.fromString("opendiscord:api","v1.0.0"))
|
||||
this.versions.add(ODVersion.fromString("opendiscord:transcripts","v2.0.0"))
|
||||
this.versions.add(ODVersion.fromString("opendiscord:livestatus","v2.0.0"))
|
||||
|
||||
this.debugfile = new ODDebugFileManager("./","otdebug.txt",5000,this.versions.get("openticket:version"))
|
||||
this.debugfile = new ODDebugFileManager("./","otdebug.txt",5000,this.versions.get("opendiscord:version"))
|
||||
this.console = new ODConsoleManager(100,this.debugfile)
|
||||
this.debug = new ODDebugger(this.console)
|
||||
this.events = new ODEventManager_Default(this.debug)
|
||||
|
||||
@@ -46,9 +46,6 @@ export type ODInterfaceWithPartialProperty<Interface,Key extends keyof Interface
|
||||
* It can only contain the following characters: `a-z`, `A-Z`, `0-9`, `:`, `-` & `_`
|
||||
*
|
||||
* You can use this class to assign a unique id when creating configs, databases, languages & more!
|
||||
* @example
|
||||
* const id = new api.ODId("openticket:test-id") //this is valid
|
||||
* const id = new api.ODId("example%id?") //this is invalid
|
||||
*/
|
||||
export class ODId {
|
||||
/**The full value of this `ODId` as a `string`. */
|
||||
|
||||
@@ -105,7 +105,7 @@ export interface ODComponentBuildResult {
|
||||
export class ODButtonManager extends ODManagerWithSafety<ODButton<string,any>> {
|
||||
constructor(debug:ODDebugger){
|
||||
super(() => {
|
||||
return new ODButton("openticket:unknown-button",(instance,params,source,cancel) => {
|
||||
return new ODButton("opendiscord:unknown-button",(instance,params,source,cancel) => {
|
||||
instance.setCustomId("od:unknown-button")
|
||||
instance.setMode("button")
|
||||
instance.setColor("red")
|
||||
@@ -255,7 +255,7 @@ export class ODButton<Source extends string,Params> extends ODBuilderImplementat
|
||||
export class ODDropdownManager extends ODManagerWithSafety<ODDropdown<string,any>> {
|
||||
constructor(debug:ODDebugger){
|
||||
super(() => {
|
||||
return new ODDropdown("openticket:unknown-dropdown",(instance,params,source,cancel) => {
|
||||
return new ODDropdown("opendiscord:unknown-dropdown",(instance,params,source,cancel) => {
|
||||
instance.setCustomId("od:unknown-dropdown")
|
||||
instance.setType("string")
|
||||
instance.setPlaceholder("❌ <ODError:Unknown Dropdown>")
|
||||
@@ -509,7 +509,7 @@ export class ODDropdown<Source extends string,Params> extends ODBuilderImplement
|
||||
export class ODFileManager extends ODManagerWithSafety<ODFile<string,any>> {
|
||||
constructor(debug:ODDebugger){
|
||||
super(() => {
|
||||
return new ODFile("openticket:unknown-file",(instance,params,source,cancel) => {
|
||||
return new ODFile("opendiscord:unknown-file",(instance,params,source,cancel) => {
|
||||
instance.setName("openticket_unknown-file.txt")
|
||||
instance.setDescription("❌ <ODError:Unknown File>")
|
||||
instance.setContents("Couldn't find file in registery `opendiscord.builders.files`")
|
||||
@@ -632,8 +632,8 @@ export class ODFile<Source extends string,Params> extends ODBuilderImplementatio
|
||||
export class ODEmbedManager extends ODManagerWithSafety<ODEmbed<string,any>> {
|
||||
constructor(debug:ODDebugger){
|
||||
super(() => {
|
||||
return new ODEmbed("openticket:unknown-embed",(instance,params,source,cancel) => {
|
||||
instance.setFooter("openticket:unknown-embed")
|
||||
return new ODEmbed("opendiscord:unknown-embed",(instance,params,source,cancel) => {
|
||||
instance.setFooter("opendiscord:unknown-embed")
|
||||
instance.setColor("#ff0000")
|
||||
instance.setTitle("❌ <ODError:Unknown Embed>")
|
||||
instance.setDescription("Couldn't find embed in registery `opendiscord.builders.embeds`")
|
||||
@@ -846,7 +846,7 @@ export class ODEmbed<Source extends string,Params> extends ODBuilderImplementati
|
||||
export class ODMessageManager extends ODManagerWithSafety<ODMessage<string,any>> {
|
||||
constructor(debug:ODDebugger){
|
||||
super(() => {
|
||||
return new ODMessage("openticket:unknown-message",(instance,params,source,cancel) => {
|
||||
return new ODMessage("opendiscord:unknown-message",(instance,params,source,cancel) => {
|
||||
instance.setContent("**❌ <ODError:Unknown Message>**\nCouldn't find message in registery `opendiscord.builders.messages`")
|
||||
cancel()
|
||||
})
|
||||
@@ -1087,7 +1087,7 @@ export class ODMessage<Source extends string,Params> extends ODBuilderImplementa
|
||||
export class ODModalManager extends ODManagerWithSafety<ODModal<string,any>> {
|
||||
constructor(debug:ODDebugger){
|
||||
super(() => {
|
||||
return new ODModal("openticket:unknown-modal",(instance,params,source,cancel) => {
|
||||
return new ODModal("opendiscord:unknown-modal",(instance,params,source,cancel) => {
|
||||
instance.setCustomId("od:unknown-modal")
|
||||
instance.setTitle("❌ <ODError:Unknown Modal>")
|
||||
instance.setQuestions(
|
||||
|
||||
@@ -442,7 +442,7 @@ export class ODCheckerObjectStructure extends ODCheckerStructure {
|
||||
|
||||
//check type & options
|
||||
if (typeof value != "object"){
|
||||
checker.createMessage("openticket:invalid-type","error","This property needs to be the type: object!",lt,null,["object"],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:invalid-type","error","This property needs to be the type: object!",lt,null,["object"],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -463,9 +463,9 @@ export class ODCheckerObjectStructure extends ODCheckerStructure {
|
||||
if (typeof value[child.key] == "undefined"){
|
||||
if (!child.optional){
|
||||
localQuit = true
|
||||
checker.createMessage("openticket:property-missing","error",`The property "${child.key}" is mising from this object!`,lt,null,[`"${child.key}"`],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:property-missing","error",`The property "${child.key}" is mising from this object!`,lt,null,[`"${child.key}"`],this.id,(this.options.docs ?? null))
|
||||
}else{
|
||||
checker.createMessage("openticket:property-optional","info",`The property "${child.key}" is optional in this object!`,lt,null,[`"${child.key}"`],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:property-optional","info",`The property "${child.key}" is optional in this object!`,lt,null,[`"${child.key}"`],this.id,(this.options.docs ?? null))
|
||||
}
|
||||
}else if (!child.checker.check(checker,value[child.key],localLt)) localQuit = true
|
||||
})
|
||||
@@ -515,31 +515,31 @@ export class ODCheckerStringStructure extends ODCheckerStructure {
|
||||
|
||||
//check type & options
|
||||
if (typeof value != "string"){
|
||||
checker.createMessage("openticket:invalid-type","error","This property needs to be the type: string!",lt,null,["string"],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:invalid-type","error","This property needs to be the type: string!",lt,null,["string"],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.minLength != "undefined" && value.length < this.options.minLength){
|
||||
checker.createMessage("openticket:string-too-short","error",`This string can't be shorter than ${this.options.minLength} characters!`,lt,null,[this.options.minLength.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:string-too-short","error",`This string can't be shorter than ${this.options.minLength} characters!`,lt,null,[this.options.minLength.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.maxLength != "undefined" && value.length > this.options.maxLength){
|
||||
checker.createMessage("openticket:string-too-long","error",`This string can't be longer than ${this.options.maxLength} characters!`,lt,null,[this.options.maxLength.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:string-too-long","error",`This string can't be longer than ${this.options.maxLength} characters!`,lt,null,[this.options.maxLength.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.length != "undefined" && value.length !== this.options.length){
|
||||
checker.createMessage("openticket:string-length-invalid","error",`This string needs to be ${this.options.length} characters long!`,lt,null,[this.options.length.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:string-length-invalid","error",`This string needs to be ${this.options.length} characters long!`,lt,null,[this.options.length.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.startsWith != "undefined" && !value.startsWith(this.options.startsWith)){
|
||||
checker.createMessage("openticket:string-starts-with","error",`This string needs to start with "${this.options.startsWith}"!`,lt,null,[`"${this.options.startsWith}"`],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:string-starts-with","error",`This string needs to start with "${this.options.startsWith}"!`,lt,null,[`"${this.options.startsWith}"`],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.endsWith != "undefined" && !value.endsWith(this.options.endsWith)){
|
||||
checker.createMessage("openticket:string-ends-with","error",`This string needs to end with "${this.options.endsWith}"!`,lt,null,[`"${this.options.endsWith}"`],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:string-ends-with","error",`This string needs to end with "${this.options.endsWith}"!`,lt,null,[`"${this.options.endsWith}"`],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.contains != "undefined" && !value.includes(this.options.contains)){
|
||||
checker.createMessage("openticket:string-contains","error",`This string needs to contain "${this.options.contains}"!`,lt,null,[`"${this.options.contains}"`],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:string-contains","error",`This string needs to contain "${this.options.contains}"!`,lt,null,[`"${this.options.contains}"`],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.choices != "undefined" && !this.options.choices.includes(value)){
|
||||
checker.createMessage("openticket:string-choices","error",`This string can only be one of the following values: "${this.options.choices.join(`", "`)}"!`,lt,null,[`"${this.options.choices.join(`", "`)}"`],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:string-choices","error",`This string can only be one of the following values: "${this.options.choices.join(`", "`)}"!`,lt,null,[`"${this.options.choices.join(`", "`)}"`],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.regex != "undefined" && !this.options.regex.test(value)){
|
||||
checker.createMessage("openticket:string-regex","error","This string is invalid!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:string-regex","error","This string is invalid!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else return super.check(checker,value,locationTrace)
|
||||
}
|
||||
@@ -603,53 +603,53 @@ export class ODCheckerNumberStructure extends ODCheckerStructure {
|
||||
|
||||
//check type & options
|
||||
if (typeof value != "number"){
|
||||
checker.createMessage("openticket:invalid-type","error","This property needs to be the type: number!",lt,null,["number"],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:invalid-type","error","This property needs to be the type: number!",lt,null,["number"],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.minLength != "undefined" && value.toString().length < this.options.minLength){
|
||||
checker.createMessage("openticket:number-too-short","error",`This number can't be shorter than ${this.options.minLength} characters!`,lt,null,[this.options.minLength.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-too-short","error",`This number can't be shorter than ${this.options.minLength} characters!`,lt,null,[this.options.minLength.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.maxLength != "undefined" && value.toString().length > this.options.maxLength){
|
||||
checker.createMessage("openticket:number-too-long","error",`This number can't be longer than ${this.options.maxLength} characters!`,lt,null,[this.options.maxLength.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-too-long","error",`This number can't be longer than ${this.options.maxLength} characters!`,lt,null,[this.options.maxLength.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.length != "undefined" && value.toString().length !== this.options.length){
|
||||
checker.createMessage("openticket:number-length-invalid","error",`This number needs to be ${this.options.length} characters long!`,lt,null,[this.options.length.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-length-invalid","error",`This number needs to be ${this.options.length} characters long!`,lt,null,[this.options.length.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.min != "undefined" && value < this.options.min){
|
||||
checker.createMessage("openticket:number-too-small","error",`This number needs to be at least ${this.options.min}!`,lt,null,[this.options.min.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-too-small","error",`This number needs to be at least ${this.options.min}!`,lt,null,[this.options.min.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.max != "undefined" && value > this.options.max){
|
||||
checker.createMessage("openticket:number-too-large","error",`This number needs to be at most ${this.options.max}!`,lt,null,[this.options.max.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-too-large","error",`This number needs to be at most ${this.options.max}!`,lt,null,[this.options.max.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.is != "undefined" && value == this.options.is){
|
||||
checker.createMessage("openticket:number-not-equal","error",`This number needs to be ${this.options.is}!`,lt,null,[this.options.is.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-not-equal","error",`This number needs to be ${this.options.is}!`,lt,null,[this.options.is.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.step != "undefined" && ((value - stepOffset) % this.options.step) !== 0){
|
||||
if (stepOffset > 0) checker.createMessage("openticket:number-step-offset","error",`This number needs to be a multiple of ${this.options.step} starting with ${stepOffset}!`,lt,null,[this.options.step.toString(),stepOffset.toString()],this.id,(this.options.docs ?? null))
|
||||
else checker.createMessage("openticket:number-step","error",`This number needs to be a multiple of ${this.options.step}!`,lt,null,[this.options.step.toString()],this.id,(this.options.docs ?? null))
|
||||
if (stepOffset > 0) checker.createMessage("opendiscord:number-step-offset","error",`This number needs to be a multiple of ${this.options.step} starting with ${stepOffset}!`,lt,null,[this.options.step.toString(),stepOffset.toString()],this.id,(this.options.docs ?? null))
|
||||
else checker.createMessage("opendiscord:number-step","error",`This number needs to be a multiple of ${this.options.step}!`,lt,null,[this.options.step.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.startsWith != "undefined" && !value.toString().startsWith(this.options.startsWith)){
|
||||
checker.createMessage("openticket:number-starts-with","error",`This number needs to start with "${this.options.startsWith}"!`,lt,null,[`"${this.options.startsWith}"`],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-starts-with","error",`This number needs to start with "${this.options.startsWith}"!`,lt,null,[`"${this.options.startsWith}"`],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.endsWith != "undefined" && !value.toString().endsWith(this.options.endsWith)){
|
||||
checker.createMessage("openticket:number-ends-with","error",`This number needs to end with "${this.options.endsWith}"!`,lt,null,[`"${this.options.endsWith}"`],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-ends-with","error",`This number needs to end with "${this.options.endsWith}"!`,lt,null,[`"${this.options.endsWith}"`],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.contains != "undefined" && !value.toString().includes(this.options.contains)){
|
||||
checker.createMessage("openticket:number-contains","error",`This number needs to contain "${this.options.contains}"!`,lt,null,[`"${this.options.contains}"`],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-contains","error",`This number needs to contain "${this.options.contains}"!`,lt,null,[`"${this.options.contains}"`],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.choices != "undefined" && !this.options.choices.includes(value)){
|
||||
checker.createMessage("openticket:number-choices","error",`This number can only be one of the following values: "${this.options.choices.join(`", "`)}"!`,lt,null,[`"${this.options.choices.join(`", "`)}"`],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-choices","error",`This number can only be one of the following values: "${this.options.choices.join(`", "`)}"!`,lt,null,[`"${this.options.choices.join(`", "`)}"`],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.floatAllowed != "undefined" && !this.options.floatAllowed && (value % 1) !== 0){
|
||||
checker.createMessage("openticket:number-float","error","This number can't be a decimal!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-float","error","This number can't be a decimal!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.negativeAllowed != "undefined" && value < 0){
|
||||
checker.createMessage("openticket:number-negative","error","This number can't be negative!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-negative","error","This number can't be negative!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.positiveAllowed != "undefined" && value > 0){
|
||||
checker.createMessage("openticket:number-positive","error","This number can't be positive!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-positive","error","This number can't be positive!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.zeroAllowed != "undefined" && value === 0){
|
||||
checker.createMessage("openticket:number-zero","error","This number can't be zero!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:number-zero","error","This number can't be zero!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else return super.check(checker,value,locationTrace)
|
||||
}
|
||||
@@ -682,13 +682,13 @@ export class ODCheckerBooleanStructure extends ODCheckerStructure {
|
||||
|
||||
//check type & options
|
||||
if (typeof value != "boolean"){
|
||||
checker.createMessage("openticket:invalid-type","error","This property needs to be the type: boolean!",lt,null,["boolean"],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:invalid-type","error","This property needs to be the type: boolean!",lt,null,["boolean"],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.trueAllowed != "undefined" && !this.options.trueAllowed && value == true){
|
||||
checker.createMessage("openticket:boolean-true","error","This boolean can't be true!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:boolean-true","error","This boolean can't be true!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.falseAllowed != "undefined" && !this.options.falseAllowed && value == false){
|
||||
checker.createMessage("openticket:boolean-false","error","This boolean can't be false!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:boolean-false","error","This boolean can't be false!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else return super.check(checker,value,locationTrace)
|
||||
}
|
||||
@@ -732,28 +732,28 @@ export class ODCheckerArrayStructure extends ODCheckerStructure {
|
||||
const lt = checker.locationTraceDeref(locationTrace)
|
||||
|
||||
if (!Array.isArray(value)){
|
||||
checker.createMessage("openticket:invalid-type","error","This property needs to be the type: array!",lt,null,["array"],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:invalid-type","error","This property needs to be the type: array!",lt,null,["array"],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.disableEmpty != "undefined" && this.options.disableEmpty && value.length == 0){
|
||||
checker.createMessage("openticket:array-empty-disabled","error","This array isn't allowed to be empty!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:array-empty-disabled","error","This array isn't allowed to be empty!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.emptyRequired != "undefined" && this.options.emptyRequired && value.length != 0){
|
||||
checker.createMessage("openticket:array-empty-required","error","This array is required to be empty!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:array-empty-required","error","This array is required to be empty!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.minLength != "undefined" && value.length < this.options.minLength){
|
||||
checker.createMessage("openticket:array-too-short","error",`This array needs to have a length of at least ${this.options.minLength}!`,lt,null,[this.options.minLength.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:array-too-short","error",`This array needs to have a length of at least ${this.options.minLength}!`,lt,null,[this.options.minLength.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.maxLength != "undefined" && value.length > this.options.maxLength){
|
||||
checker.createMessage("openticket:array-too-long","error",`This array needs to have a length of at most ${this.options.maxLength}!`,lt,null,[this.options.maxLength.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:array-too-long","error",`This array needs to have a length of at most ${this.options.maxLength}!`,lt,null,[this.options.maxLength.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.length != "undefined" && value.length == this.options.length){
|
||||
checker.createMessage("openticket:array-length-invalid","error",`This array needs to have a length of ${this.options.length}!`,lt,null,[this.options.length.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:array-length-invalid","error",`This array needs to have a length of ${this.options.length}!`,lt,null,[this.options.length.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.allowedTypes != "undefined" && !this.#arrayAllowedTypesCheck(value,this.options.allowedTypes)){
|
||||
checker.createMessage("openticket:array-invalid-types","error",`This array can only contain the following types: ${this.options.allowedTypes.join(", ")}!`,lt,null,[this.options.allowedTypes.join(", ").toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:array-invalid-types","error",`This array can only contain the following types: ${this.options.allowedTypes.join(", ")}!`,lt,null,[this.options.allowedTypes.join(", ").toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.options.allowDoubles != "undefined" && !this.options.allowDoubles && this.#arrayHasDoubles(value)){
|
||||
checker.createMessage("openticket:array-double","error","This array doesn't allow the same value twice!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:array-double","error","This array doesn't allow the same value twice!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else{
|
||||
//check all properties
|
||||
@@ -836,10 +836,10 @@ export class ODCheckerNullStructure extends ODCheckerStructure {
|
||||
|
||||
//check type & options
|
||||
if (typeof this.options.nullAllowed != "undefined" && !this.options.nullAllowed && value == null){
|
||||
checker.createMessage("openticket:null-invalid","error","This property can't be null!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:null-invalid","error","This property can't be null!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (value !== null){
|
||||
checker.createMessage("openticket:invalid-type","error","This property needs to be the type: null!",lt,null,["null"],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:invalid-type","error","This property needs to be the type: null!",lt,null,["null"],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else return super.check(checker,value,locationTrace)
|
||||
}
|
||||
@@ -909,7 +909,7 @@ export class ODCheckerTypeSwitchStructure extends ODCheckerStructure {
|
||||
return this.options.other.check(checker,value,lt)
|
||||
|
||||
}else if (this.options.allowedTypes && this.options.allowedTypes.length > 0){
|
||||
checker.createMessage("openticket:switch-invalid-type","error",`This needs to be one of the following types: ${this.options.allowedTypes.join(", ")}!`,lt,null,[this.options.allowedTypes.join(", ")],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:switch-invalid-type","error",`This needs to be one of the following types: ${this.options.allowedTypes.join(", ")}!`,lt,null,[this.options.allowedTypes.join(", ")],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else return super.check(checker,value,locationTrace)
|
||||
}
|
||||
@@ -950,7 +950,7 @@ export class ODCheckerObjectSwitchStructure extends ODCheckerStructure {
|
||||
if (this.options.objects){
|
||||
//check type & options
|
||||
if (typeof value != "object"){
|
||||
checker.createMessage("openticket:invalid-type","error","This property needs to be the type: object!",lt,null,["object"],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:invalid-type","error","This property needs to be the type: object!",lt,null,["object"],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -974,7 +974,7 @@ export class ODCheckerObjectSwitchStructure extends ODCheckerStructure {
|
||||
|
||||
//do local quit or check custom function
|
||||
if (!didSelectObject){
|
||||
checker.createMessage("openticket:object-switch-invalid-type","error",`This object needs to be one of the following types: ${this.options.objects.map((obj) => obj.name).join(", ")}!`,lt,null,[this.options.objects.map((obj) => obj.name).join(", ")],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:object-switch-invalid-type","error",`This object needs to be one of the following types: ${this.options.objects.map((obj) => obj.name).join(", ")}!`,lt,null,[this.options.objects.map((obj) => obj.name).join(", ")],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (localQuit){
|
||||
return false
|
||||
@@ -1012,12 +1012,12 @@ export class ODCheckerEnabledObjectStructure extends ODCheckerStructure {
|
||||
|
||||
if (typeof value != "object"){
|
||||
//value isn't an object
|
||||
checker.createMessage("openticket:invalid-type","error","This property needs to be the type: object!",lt,null,["object"],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:invalid-type","error","This property needs to be the type: object!",lt,null,["object"],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
|
||||
}else if (this.options.property && typeof value[this.options.property] == "undefined"){
|
||||
//property doesn't exist
|
||||
checker.createMessage("openticket:property-missing","error",`The property "${this.options.property}" is mising from this object!`,lt,null,[`"${this.options.property}"`],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:property-missing","error",`The property "${this.options.property}" is mising from this object!`,lt,null,[`"${this.options.property}"`],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
|
||||
}else if (this.options.property && value[this.options.property] === (typeof this.options.enabledValue == "undefined" ? true : this.options.enabledValue)){
|
||||
@@ -1027,7 +1027,7 @@ export class ODCheckerEnabledObjectStructure extends ODCheckerStructure {
|
||||
|
||||
}else{
|
||||
//this object is disabled
|
||||
if (this.options.property) checker.createMessage("openticket:object-disabled","info",`This object is disabled, enable it using "${this.options.property}"!`,lt,null,[`"${this.options.property}"`],this.id,(this.options.docs ?? null))
|
||||
if (this.options.property) checker.createMessage("opendiscord:object-disabled","info",`This object is disabled, enable it using "${this.options.property}"!`,lt,null,[`"${this.options.property}"`],this.id,(this.options.docs ?? null))
|
||||
return super.check(checker,value,locationTrace)
|
||||
}
|
||||
}
|
||||
@@ -1059,8 +1059,8 @@ export class ODCheckerCustomStructure_DiscordId extends ODCheckerStringStructure
|
||||
else if ((!emptyAllowed && value.length < 15) || value.length > 50 || !/^[0-9]*$/.test(value)){
|
||||
if (!(extraOptions.length > 0 && extraOptions.some((opt) => opt == value))){
|
||||
//value is not an id & not one of the extra options
|
||||
if (extraOptions.length > 0) checker.createMessage("openticket:discord-invalid-id-options","error",`This is an invalid discord ${type} id! You can also use one of these: ${extraOptions.join(", ")}!`,lt,null,[type,extraOptions.join(", ")],this.id,(this.options.docs ?? null))
|
||||
else checker.createMessage("openticket:discord-invalid-id","error",`This is an invalid discord ${type} id!`,lt,null,[type],this.id,(this.options.docs ?? null))
|
||||
if (extraOptions.length > 0) checker.createMessage("opendiscord:discord-invalid-id-options","error",`This is an invalid discord ${type} id! You can also use one of these: ${extraOptions.join(", ")}!`,lt,null,[type,extraOptions.join(", ")],this.id,(this.options.docs ?? null))
|
||||
else checker.createMessage("opendiscord:discord-invalid-id","error",`This is an invalid discord ${type} id!`,lt,null,[type],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else return true
|
||||
}
|
||||
@@ -1113,7 +1113,7 @@ export class ODCheckerCustomStructure_DiscordToken extends ODCheckerStringStruct
|
||||
const lt = checker.locationTraceDeref(locationTrace)
|
||||
|
||||
if (typeof value != "string" || !/^[A-Za-z0-9-_\.]+$/.test(value)){
|
||||
checker.createMessage("openticket:discord-invalid-token","error","This is an invalid discord token (syntactically)!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:discord-invalid-token","error","This is an invalid discord token (syntactically)!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}
|
||||
return true
|
||||
@@ -1146,7 +1146,7 @@ export class ODCheckerCustomStructure_HexColor extends ODCheckerStringStructure
|
||||
else if (emptyAllowed && value.length == 0){
|
||||
return true
|
||||
}else if ((!allowShortForm && !/^#[a-fA-F0-9]{6}$/.test(value)) || (allowShortForm && !/^#[a-fA-F0-9]{6}$/.test(value) && !/^#[a-fA-F0-9]{3}$/.test(value))){
|
||||
checker.createMessage("openticket:color-invalid","error","This is an invalid hex color!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:color-invalid","error","This is an invalid hex color!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else return true
|
||||
}
|
||||
@@ -1186,16 +1186,16 @@ export class ODCheckerCustomStructure_EmojiString extends ODCheckerStringStructu
|
||||
const emojiAmount = discordEmojiAmount+unicodeEmojiAmount
|
||||
|
||||
if (emojiAmount < minLength){
|
||||
checker.createMessage("openticket:emoji-too-short","error",`This string needs to have at least ${minLength} emoji's!`,lt,null,[maxLength.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:emoji-too-short","error",`This string needs to have at least ${minLength} emoji's!`,lt,null,[maxLength.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (emojiAmount > maxLength){
|
||||
checker.createMessage("openticket:emoji-too-long","error",`This string needs to have at most ${maxLength} emoji's!`,lt,null,[maxLength.toString()],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:emoji-too-long","error",`This string needs to have at most ${maxLength} emoji's!`,lt,null,[maxLength.toString()],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (!allowCustomDiscordEmoji && /<a?:[^:]*:[0-9]+>/.test(value)){
|
||||
checker.createMessage("openticket:emoji-custom","error",`This emoji can't be a custom discord emoji!`,lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:emoji-custom","error",`This emoji can't be a custom discord emoji!`,lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (!/^(?:\p{Emoji}|\p{Emoji_Component}|(?:<a?:[^:]*:[0-9]+>))*$/u.test(value)){
|
||||
checker.createMessage("openticket:emoji-invalid","error","This is an invalid emoji!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:emoji-invalid","error","This is an invalid emoji!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}
|
||||
return true
|
||||
@@ -1247,25 +1247,25 @@ export class ODCheckerCustomStructure_UrlString extends ODCheckerStringStructure
|
||||
else if (emptyAllowed && value.length == 0){
|
||||
return true
|
||||
}else if (!this.#urlIsValid(value)){
|
||||
checker.createMessage("openticket:url-invalid","error","This url is invalid!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:url-invalid","error","This url is invalid!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.urlSettings.allowHttp != "undefined" && !this.urlSettings.allowHttp && !/^(https:\/\/)/.test(value)){
|
||||
checker.createMessage("openticket:url-invalid-http","error","This url can only use the https:// protocol!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:url-invalid-http","error","This url can only use the https:// protocol!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (!/^(http(s)?:\/\/)/.test(value)){
|
||||
checker.createMessage("openticket:url-invalid-protocol","error","This url can only use the http:// & https:// protocols!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:url-invalid-protocol","error","This url can only use the http:// & https:// protocols!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.urlSettings.allowedHostnames != "undefined" && !this.#urlHasValidHostname(value,this.urlSettings.allowedHostnames)){
|
||||
checker.createMessage("openticket:url-invalid-hostname","error","This url has a disallowed hostname!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:url-invalid-hostname","error","This url has a disallowed hostname!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.urlSettings.allowedExtensions != "undefined" && !this.#urlHasValidExtension(value,this.urlSettings.allowedExtensions)){
|
||||
checker.createMessage("openticket:url-invalid-extension","error",`This url has an invalid extension! Choose between: ${this.urlSettings.allowedExtensions.join(", ")}!"`,lt,null,[this.urlSettings.allowedExtensions.join(", ")],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:url-invalid-extension","error",`This url has an invalid extension! Choose between: ${this.urlSettings.allowedExtensions.join(", ")}!"`,lt,null,[this.urlSettings.allowedExtensions.join(", ")],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.urlSettings.allowedPaths != "undefined" && !this.#urlHasValidPath(value,this.urlSettings.allowedPaths)){
|
||||
checker.createMessage("openticket:url-invalid-path","error","This url has an invalid path!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:url-invalid-path","error","This url has an invalid path!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else if (typeof this.urlSettings.regex != "undefined" && !this.urlSettings.regex.test(value)){
|
||||
checker.createMessage("openticket:url-invalid","error","This url is invalid!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:url-invalid","error","This url is invalid!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else return true
|
||||
}
|
||||
@@ -1351,7 +1351,7 @@ export class ODCheckerCustomStructure_UniqueId extends ODCheckerStringStructure
|
||||
const uniqueArray: string[] = (checker.storage.get(source,scope) === null) ? [] : checker.storage.get(source,scope)
|
||||
if (uniqueArray.includes(value)){
|
||||
//unique id already exists => throw error
|
||||
checker.createMessage("openticket:id-not-unique","error","This id isn't unique, use another id instead!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:id-not-unique","error","This id isn't unique, use another id instead!",lt,null,[],this.id,(this.options.docs ?? null))
|
||||
return false
|
||||
}else{
|
||||
//unique id doesn't exists => add to list
|
||||
@@ -1405,7 +1405,7 @@ export class ODCheckerCustomStructure_UniqueIdArray extends ODCheckerArrayStruct
|
||||
}
|
||||
}else{
|
||||
//doesn't exist
|
||||
checker.createMessage("openticket:id-non-existent","error",`The id "${id}" doesn't exist!`,localLt,null,[`"${id}"`],this.id,(this.options.docs ?? null))
|
||||
checker.createMessage("opendiscord:id-non-existent","error",`The id "${id}" doesn't exist!`,localLt,null,[`"${id}"`],this.id,(this.options.docs ?? null))
|
||||
localQuit = true
|
||||
}
|
||||
})
|
||||
|
||||
@@ -501,8 +501,8 @@ export class ODLiveStatusSource extends ODManagerData {
|
||||
const validMessages: ODLiveStatusSourceData[] = []
|
||||
|
||||
//parse data from ODMain
|
||||
const currentVersion: string = main.versions.get("openticket:version").toString(true)
|
||||
const usingSlashCommands: boolean = main.configs.get("openticket:general").data.slashCommands
|
||||
const currentVersion: string = main.versions.get("opendiscord:version").toString(true)
|
||||
const usingSlashCommands: boolean = main.configs.get("opendiscord:general").data.slashCommands
|
||||
const usingTranscripts: false|"text"|"html" = false as false|"text"|"html" //TODO
|
||||
const currentLanguage: string = main.languages.getCurrentLanguageId()
|
||||
const usingPlugins: boolean = (main.plugins.getLength() > 0)
|
||||
|
||||
@@ -252,7 +252,7 @@ export class ODDefaultsManager {
|
||||
languageLoading:true,
|
||||
languageInitiating:true,
|
||||
languageSelection:true,
|
||||
backupLanguage:"openticket:english",
|
||||
backupLanguage:"opendiscord:english",
|
||||
languageList:[],
|
||||
|
||||
checkerLoading:true,
|
||||
|
||||
@@ -50,7 +50,7 @@ export interface ODOptionDataJson {
|
||||
export interface ODOptionJson {
|
||||
/**The id of this option. */
|
||||
id:string,
|
||||
/**The type of this option. (e.g. `openticket:ticket`, `openticket:website`, `openticket:role`) */
|
||||
/**The type of this option. (e.g. `opendiscord:ticket`, `opendiscord:website`, `opendiscord:role`) */
|
||||
type:string,
|
||||
/**The version of Open Ticket used to create this option & store it in the database. */
|
||||
version:string,
|
||||
@@ -68,7 +68,7 @@ export interface ODOptionJson {
|
||||
export class ODOption extends ODManager<ODOptionData<ODValidJsonType>> {
|
||||
/**The id of this option. (from the config) */
|
||||
id:ODId
|
||||
/**The type of this option. (e.g. `openticket:ticket`, `openticket:website`, `openticket:role`) */
|
||||
/**The type of this option. (e.g. `opendiscord:ticket`, `opendiscord:website`, `opendiscord:role`) */
|
||||
type: string
|
||||
|
||||
constructor(id:ODValidId, type:string, data:ODOptionData<ODValidJsonType>[]){
|
||||
@@ -138,51 +138,51 @@ export class ODOptionData<DataType extends ODValidJsonType> extends ODManagerDat
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODTicketOptionIds {
|
||||
"openticket:name":ODOptionData<string>,
|
||||
"openticket:description":ODOptionData<string>,
|
||||
"opendiscord:name":ODOptionData<string>,
|
||||
"opendiscord:description":ODOptionData<string>,
|
||||
|
||||
"openticket:button-emoji":ODOptionData<string>,
|
||||
"openticket:button-label":ODOptionData<string>,
|
||||
"openticket:button-color":ODOptionData<ODValidButtonColor>,
|
||||
"opendiscord:button-emoji":ODOptionData<string>,
|
||||
"opendiscord:button-label":ODOptionData<string>,
|
||||
"opendiscord:button-color":ODOptionData<ODValidButtonColor>,
|
||||
|
||||
"openticket:admins":ODOptionData<string[]>,
|
||||
"openticket:admins-readonly":ODOptionData<string[]>,
|
||||
"openticket:allow-blacklisted-users":ODOptionData<boolean>,
|
||||
"openticket:questions":ODOptionData<string[]>,
|
||||
"opendiscord:admins":ODOptionData<string[]>,
|
||||
"opendiscord:admins-readonly":ODOptionData<string[]>,
|
||||
"opendiscord:allow-blacklisted-users":ODOptionData<boolean>,
|
||||
"opendiscord:questions":ODOptionData<string[]>,
|
||||
|
||||
"openticket:channel-prefix":ODOptionData<string>,
|
||||
"openticket:channel-suffix":ODOptionData<"user-name"|"user-id"|"random-number"|"random-hex"|"counter-dynamic"|"counter-fixed">,
|
||||
"openticket:channel-category":ODOptionData<string>,
|
||||
"openticket:channel-category-closed":ODOptionData<string>,
|
||||
"openticket:channel-category-backup":ODOptionData<string>,
|
||||
"openticket:channel-categories-claimed":ODOptionData<{user:string,category:string}[]>,
|
||||
"openticket:channel-description":ODOptionData<string>,
|
||||
"opendiscord:channel-prefix":ODOptionData<string>,
|
||||
"opendiscord:channel-suffix":ODOptionData<"user-name"|"user-id"|"random-number"|"random-hex"|"counter-dynamic"|"counter-fixed">,
|
||||
"opendiscord:channel-category":ODOptionData<string>,
|
||||
"opendiscord:channel-category-closed":ODOptionData<string>,
|
||||
"opendiscord:channel-category-backup":ODOptionData<string>,
|
||||
"opendiscord:channel-categories-claimed":ODOptionData<{user:string,category:string}[]>,
|
||||
"opendiscord:channel-description":ODOptionData<string>,
|
||||
|
||||
"openticket:dm-message-enabled":ODOptionData<boolean>,
|
||||
"openticket:dm-message-text":ODOptionData<string>,
|
||||
"openticket:dm-message-embed":ODOptionData<ODJsonConfig_DefaultOptionEmbedSettingsType>,
|
||||
"opendiscord:dm-message-enabled":ODOptionData<boolean>,
|
||||
"opendiscord:dm-message-text":ODOptionData<string>,
|
||||
"opendiscord:dm-message-embed":ODOptionData<ODJsonConfig_DefaultOptionEmbedSettingsType>,
|
||||
|
||||
"openticket:ticket-message-enabled":ODOptionData<boolean>,
|
||||
"openticket:ticket-message-text":ODOptionData<string>,
|
||||
"openticket:ticket-message-embed":ODOptionData<ODJsonConfig_DefaultOptionEmbedSettingsType>,
|
||||
"openticket:ticket-message-ping":ODOptionData<ODJsonConfig_DefaultOptionPingSettingsType>,
|
||||
"opendiscord:ticket-message-enabled":ODOptionData<boolean>,
|
||||
"opendiscord:ticket-message-text":ODOptionData<string>,
|
||||
"opendiscord:ticket-message-embed":ODOptionData<ODJsonConfig_DefaultOptionEmbedSettingsType>,
|
||||
"opendiscord:ticket-message-ping":ODOptionData<ODJsonConfig_DefaultOptionPingSettingsType>,
|
||||
|
||||
"openticket:autoclose-enable-hours":ODOptionData<boolean>,
|
||||
"openticket:autoclose-enable-leave":ODOptionData<boolean>,
|
||||
"openticket:autoclose-disable-claim":ODOptionData<boolean>,
|
||||
"openticket:autoclose-hours":ODOptionData<number>,
|
||||
"opendiscord:autoclose-enable-hours":ODOptionData<boolean>,
|
||||
"opendiscord:autoclose-enable-leave":ODOptionData<boolean>,
|
||||
"opendiscord:autoclose-disable-claim":ODOptionData<boolean>,
|
||||
"opendiscord:autoclose-hours":ODOptionData<number>,
|
||||
|
||||
"openticket:autodelete-enable-days":ODOptionData<boolean>,
|
||||
"openticket:autodelete-enable-leave":ODOptionData<boolean>,
|
||||
"openticket:autodelete-disable-claim":ODOptionData<boolean>,
|
||||
"openticket:autodelete-days":ODOptionData<number>,
|
||||
"opendiscord:autodelete-enable-days":ODOptionData<boolean>,
|
||||
"opendiscord:autodelete-enable-leave":ODOptionData<boolean>,
|
||||
"opendiscord:autodelete-disable-claim":ODOptionData<boolean>,
|
||||
"opendiscord:autodelete-days":ODOptionData<number>,
|
||||
|
||||
"openticket:cooldown-enabled":ODOptionData<boolean>,
|
||||
"openticket:cooldown-minutes":ODOptionData<number>,
|
||||
"opendiscord:cooldown-enabled":ODOptionData<boolean>,
|
||||
"opendiscord:cooldown-minutes":ODOptionData<number>,
|
||||
|
||||
"openticket:limits-enabled":ODOptionData<boolean>,
|
||||
"openticket:limits-maximum-global":ODOptionData<number>,
|
||||
"openticket:limits-maximum-user":ODOptionData<number>
|
||||
"opendiscord:limits-enabled":ODOptionData<boolean>,
|
||||
"opendiscord:limits-maximum-global":ODOptionData<number>,
|
||||
"opendiscord:limits-maximum-user":ODOptionData<number>
|
||||
}
|
||||
|
||||
/**## ODTicketOption `class`
|
||||
@@ -193,10 +193,10 @@ export interface ODTicketOptionIds {
|
||||
* Use this option to create a new ticket!
|
||||
*/
|
||||
export class ODTicketOption extends ODOption {
|
||||
type: "openticket:ticket" = "openticket:ticket"
|
||||
type: "opendiscord:ticket" = "opendiscord:ticket"
|
||||
|
||||
constructor(id:ODValidId, data:ODOptionData<ODValidJsonType>[]){
|
||||
super(id,"openticket:ticket",data)
|
||||
super(id,"opendiscord:ticket",data)
|
||||
}
|
||||
|
||||
get<OptionId extends keyof ODTicketOptionIds>(id:OptionId): ODTicketOptionIds[OptionId]
|
||||
@@ -230,13 +230,13 @@ export class ODTicketOption extends ODOption {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODWebsiteOptionIds {
|
||||
"openticket:name":ODOptionData<string>,
|
||||
"openticket:description":ODOptionData<string>,
|
||||
"opendiscord:name":ODOptionData<string>,
|
||||
"opendiscord:description":ODOptionData<string>,
|
||||
|
||||
"openticket:button-emoji":ODOptionData<string>,
|
||||
"openticket:button-label":ODOptionData<string>,
|
||||
"opendiscord:button-emoji":ODOptionData<string>,
|
||||
"opendiscord:button-label":ODOptionData<string>,
|
||||
|
||||
"openticket:url":ODOptionData<string>,
|
||||
"opendiscord:url":ODOptionData<string>,
|
||||
}
|
||||
|
||||
/**## ODWebsiteOption `class`
|
||||
@@ -247,10 +247,10 @@ export interface ODWebsiteOptionIds {
|
||||
* Use this option to create a button which links to a website!
|
||||
*/
|
||||
export class ODWebsiteOption extends ODOption {
|
||||
type: "openticket:website" = "openticket:website"
|
||||
type: "opendiscord:website" = "opendiscord:website"
|
||||
|
||||
constructor(id:ODValidId, data:ODOptionData<ODValidJsonType>[]){
|
||||
super(id,"openticket:website",data)
|
||||
super(id,"opendiscord:website",data)
|
||||
}
|
||||
|
||||
get<OptionId extends keyof ODWebsiteOptionIds>(id:OptionId): ODWebsiteOptionIds[OptionId]
|
||||
@@ -284,17 +284,17 @@ export class ODWebsiteOption extends ODOption {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODRoleOptionIds {
|
||||
"openticket:name":ODOptionData<string>,
|
||||
"openticket:description":ODOptionData<string>,
|
||||
"opendiscord:name":ODOptionData<string>,
|
||||
"opendiscord:description":ODOptionData<string>,
|
||||
|
||||
"openticket:button-emoji":ODOptionData<string>,
|
||||
"openticket:button-label":ODOptionData<string>,
|
||||
"openticket:button-color":ODOptionData<ODValidButtonColor>,
|
||||
"opendiscord:button-emoji":ODOptionData<string>,
|
||||
"opendiscord:button-label":ODOptionData<string>,
|
||||
"opendiscord:button-color":ODOptionData<ODValidButtonColor>,
|
||||
|
||||
"openticket:roles":ODOptionData<string[]>,
|
||||
"openticket:mode":ODOptionData<ODRoleUpdateMode>,
|
||||
"openticket:remove-roles-on-add":ODOptionData<string[]>,
|
||||
"openticket:add-on-join":ODOptionData<boolean>
|
||||
"opendiscord:roles":ODOptionData<string[]>,
|
||||
"opendiscord:mode":ODOptionData<ODRoleUpdateMode>,
|
||||
"opendiscord:remove-roles-on-add":ODOptionData<string[]>,
|
||||
"opendiscord:add-on-join":ODOptionData<boolean>
|
||||
}
|
||||
|
||||
/**## ODRoleOption `class`
|
||||
@@ -305,10 +305,10 @@ export interface ODRoleOptionIds {
|
||||
* Use this option to create a button for reaction roles!
|
||||
*/
|
||||
export class ODRoleOption extends ODOption {
|
||||
type: "openticket:role" = "openticket:role"
|
||||
type: "opendiscord:role" = "opendiscord:role"
|
||||
|
||||
constructor(id:ODValidId, data:ODOptionData<ODValidJsonType>[]){
|
||||
super(id,"openticket:role",data)
|
||||
super(id,"opendiscord:role",data)
|
||||
}
|
||||
|
||||
get<OptionId extends keyof ODRoleOptionIds>(id:OptionId): ODRoleOptionIds[OptionId]
|
||||
@@ -424,13 +424,13 @@ export class ODOptionCounterDynamicSuffix extends ODOptionSuffix {
|
||||
|
||||
/**Initialize the database for this suffix. */
|
||||
async #init(){
|
||||
if (!await this.database.exists("openticket:option-suffix-counter",this.option.id.value)) await this.database.set("openticket:option-suffix-counter",this.option.id.value,0)
|
||||
if (!await this.database.exists("opendiscord:option-suffix-counter",this.option.id.value)) await this.database.set("opendiscord:option-suffix-counter",this.option.id.value,0)
|
||||
}
|
||||
getSuffix(user:discord.User): string {
|
||||
const rawCurrentValue = this.database.get("openticket:option-suffix-counter",this.option.id.value)
|
||||
const rawCurrentValue = this.database.get("opendiscord:option-suffix-counter",this.option.id.value)
|
||||
const currentValue = (typeof rawCurrentValue != "number") ? 0 : rawCurrentValue
|
||||
const newValue = currentValue+1
|
||||
this.database.set("openticket:option-suffix-counter",this.option.id.value,newValue)
|
||||
this.database.set("opendiscord:option-suffix-counter",this.option.id.value,newValue)
|
||||
return newValue.toString()
|
||||
}
|
||||
}
|
||||
@@ -454,14 +454,14 @@ export class ODOptionCounterFixedSuffix extends ODOptionSuffix {
|
||||
|
||||
/**Initialize the database for this suffix. */
|
||||
async #init(){
|
||||
if (!await this.database.exists("openticket:option-suffix-counter",this.option.id.value)) await this.database.set("openticket:option-suffix-counter",this.option.id.value,0)
|
||||
if (!await this.database.exists("opendiscord:option-suffix-counter",this.option.id.value)) await this.database.set("opendiscord:option-suffix-counter",this.option.id.value,0)
|
||||
}
|
||||
getSuffix(user:discord.User): string {
|
||||
const rawCurrentValue = this.database.get("openticket:option-suffix-counter",this.option.id.value)
|
||||
const rawCurrentValue = this.database.get("opendiscord:option-suffix-counter",this.option.id.value)
|
||||
const currentValue = (typeof rawCurrentValue != "number") ? 0 : rawCurrentValue
|
||||
const newValue = (currentValue >= 9999) ? 0 : currentValue+1
|
||||
|
||||
this.database.set("openticket:option-suffix-counter",this.option.id.value,newValue)
|
||||
this.database.set("opendiscord:option-suffix-counter",this.option.id.value,newValue)
|
||||
if (newValue.toString().length == 1) return "000"+newValue.toString()
|
||||
else if (newValue.toString().length == 2) return "00"+newValue.toString()
|
||||
else if (newValue.toString().length == 3) return "0"+newValue.toString()
|
||||
@@ -488,7 +488,7 @@ export class ODOptionRandomNumberSuffix extends ODOptionSuffix {
|
||||
|
||||
/**Initialize the database for this suffix. */
|
||||
async #init(){
|
||||
if (!await this.database.exists("openticket:option-suffix-history",this.option.id.value)) await this.database.set("openticket:option-suffix-history",this.option.id.value,[])
|
||||
if (!await this.database.exists("opendiscord:option-suffix-history",this.option.id.value)) await this.database.set("opendiscord:option-suffix-history",this.option.id.value,[])
|
||||
}
|
||||
/**Get a unique number for this suffix. */
|
||||
#generateUniqueValue(history:string[]): string {
|
||||
@@ -502,12 +502,12 @@ export class ODOptionRandomNumberSuffix extends ODOptionSuffix {
|
||||
else return number
|
||||
}
|
||||
getSuffix(user:discord.User): string {
|
||||
const rawCurrentValues = this.database.get("openticket:option-suffix-history",this.option.id.value)
|
||||
const rawCurrentValues = this.database.get("opendiscord:option-suffix-history",this.option.id.value)
|
||||
const currentValues = ((Array.isArray(rawCurrentValues)) ? rawCurrentValues : []) as string[]
|
||||
const newValue = this.#generateUniqueValue(currentValues)
|
||||
currentValues.push(newValue)
|
||||
if (currentValues.length > 50) currentValues.shift()
|
||||
this.database.set("openticket:option-suffix-history",this.option.id.value,currentValues)
|
||||
this.database.set("opendiscord:option-suffix-history",this.option.id.value,currentValues)
|
||||
return newValue
|
||||
}
|
||||
}
|
||||
@@ -531,7 +531,7 @@ export class ODOptionRandomHexSuffix extends ODOptionSuffix {
|
||||
|
||||
/**Initialize the database for this suffix. */
|
||||
async #init(){
|
||||
if (!await this.database.exists("openticket:option-suffix-history",this.option.id.value)) await this.database.set("openticket:option-suffix-history",this.option.id.value,[])
|
||||
if (!await this.database.exists("opendiscord:option-suffix-history",this.option.id.value)) await this.database.set("opendiscord:option-suffix-history",this.option.id.value,[])
|
||||
}
|
||||
/**Get a unique hex-string for this suffix. */
|
||||
#generateUniqueValue(history:string[]): string {
|
||||
@@ -540,12 +540,12 @@ export class ODOptionRandomHexSuffix extends ODOptionSuffix {
|
||||
else return hex
|
||||
}
|
||||
getSuffix(user:discord.User): string {
|
||||
const rawCurrentValues = this.database.get("openticket:option-suffix-history",this.option.id.value)
|
||||
const rawCurrentValues = this.database.get("opendiscord:option-suffix-history",this.option.id.value)
|
||||
const currentValues = ((Array.isArray(rawCurrentValues)) ? rawCurrentValues : []) as string[]
|
||||
const newValue = this.#generateUniqueValue(currentValues)
|
||||
currentValues.push(newValue)
|
||||
if (currentValues.length > 50) currentValues.shift()
|
||||
this.database.set("openticket:option-suffix-history",this.option.id.value,currentValues)
|
||||
this.database.set("opendiscord:option-suffix-history",this.option.id.value,currentValues)
|
||||
return newValue
|
||||
}
|
||||
}
|
||||
@@ -54,23 +54,23 @@ export interface ODPanelJson {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODPanelIds {
|
||||
"openticket:name":ODPanelData<string>,
|
||||
"openticket:options":ODPanelData<string[]>,
|
||||
"openticket:dropdown":ODPanelData<boolean>,
|
||||
"opendiscord:name":ODPanelData<string>,
|
||||
"opendiscord:options":ODPanelData<string[]>,
|
||||
"opendiscord:dropdown":ODPanelData<boolean>,
|
||||
|
||||
"openticket:text":ODPanelData<string>,
|
||||
"openticket:embed":ODPanelData<ODJsonConfig_DefaultPanelEmbedSettingsType>,
|
||||
"opendiscord:text":ODPanelData<string>,
|
||||
"opendiscord:embed":ODPanelData<ODJsonConfig_DefaultPanelEmbedSettingsType>,
|
||||
|
||||
"openticket:dropdown-placeholder":ODPanelData<string>,
|
||||
"opendiscord:dropdown-placeholder":ODPanelData<string>,
|
||||
|
||||
"openticket:enable-max-tickets-warning-text":ODPanelData<boolean>,
|
||||
"openticket:enable-max-tickets-warning-embed":ODPanelData<boolean>,
|
||||
"opendiscord:enable-max-tickets-warning-text":ODPanelData<boolean>,
|
||||
"opendiscord:enable-max-tickets-warning-embed":ODPanelData<boolean>,
|
||||
|
||||
"openticket:describe-options-layout":ODPanelData<"simple"|"normal"|"detailed">,
|
||||
"openticket:describe-options-custom-title":ODPanelData<string>,
|
||||
"openticket:describe-options-in-text":ODPanelData<boolean>,
|
||||
"openticket:describe-options-in-embed-fields":ODPanelData<boolean>,
|
||||
"openticket:describe-options-in-embed-description":ODPanelData<boolean>
|
||||
"opendiscord:describe-options-layout":ODPanelData<"simple"|"normal"|"detailed">,
|
||||
"opendiscord:describe-options-custom-title":ODPanelData<string>,
|
||||
"opendiscord:describe-options-in-text":ODPanelData<boolean>,
|
||||
"opendiscord:describe-options-in-embed-fields":ODPanelData<boolean>,
|
||||
"opendiscord:describe-options-in-embed-description":ODPanelData<boolean>
|
||||
}
|
||||
|
||||
/**## ODPanel `class`
|
||||
|
||||
@@ -60,7 +60,7 @@ export interface ODQuestionJson {
|
||||
export class ODQuestion extends ODManager<ODQuestionData<ODValidJsonType>> {
|
||||
/**The id of this question. (from the config) */
|
||||
id:ODId
|
||||
/**The type of this question (e.g. `openticket:short` or `openticket:paragraph`) */
|
||||
/**The type of this question (e.g. `opendiscord:short` or `opendiscord:paragraph`) */
|
||||
type: string
|
||||
|
||||
constructor(id:ODValidId, type:string, data:ODQuestionData<ODValidJsonType>[]){
|
||||
@@ -130,13 +130,13 @@ export class ODQuestionData<DataType extends ODValidJsonType> extends ODManagerD
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODShortQuestionIds {
|
||||
"openticket:name":ODQuestionData<string>,
|
||||
"openticket:required":ODQuestionData<boolean>,
|
||||
"openticket:placeholder":ODQuestionData<string>,
|
||||
"opendiscord:name":ODQuestionData<string>,
|
||||
"opendiscord:required":ODQuestionData<boolean>,
|
||||
"opendiscord:placeholder":ODQuestionData<string>,
|
||||
|
||||
"openticket:length-enabled":ODQuestionData<boolean>,
|
||||
"openticket:length-min":ODQuestionData<number>,
|
||||
"openticket:length-max":ODQuestionData<number>
|
||||
"opendiscord:length-enabled":ODQuestionData<boolean>,
|
||||
"opendiscord:length-min":ODQuestionData<number>,
|
||||
"opendiscord:length-max":ODQuestionData<number>
|
||||
}
|
||||
|
||||
/**## ODShortQuestion `class`
|
||||
@@ -147,10 +147,10 @@ export interface ODShortQuestionIds {
|
||||
* Use this question in an option to add a short text field to the modal!
|
||||
*/
|
||||
export class ODShortQuestion extends ODQuestion {
|
||||
type: "openticket:short" = "openticket:short"
|
||||
type: "opendiscord:short" = "opendiscord:short"
|
||||
|
||||
constructor(id:ODValidId, data:ODQuestionData<ODValidJsonType>[]){
|
||||
super(id,"openticket:short",data)
|
||||
super(id,"opendiscord:short",data)
|
||||
}
|
||||
|
||||
get<QuestionId extends keyof ODShortQuestionIds>(id:QuestionId): ODShortQuestionIds[QuestionId]
|
||||
@@ -184,13 +184,13 @@ export class ODShortQuestion extends ODQuestion {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODParagraphQuestionIds {
|
||||
"openticket:name":ODQuestionData<string>,
|
||||
"openticket:required":ODQuestionData<boolean>,
|
||||
"openticket:placeholder":ODQuestionData<string>,
|
||||
"opendiscord:name":ODQuestionData<string>,
|
||||
"opendiscord:required":ODQuestionData<boolean>,
|
||||
"opendiscord:placeholder":ODQuestionData<string>,
|
||||
|
||||
"openticket:length-enabled":ODQuestionData<boolean>,
|
||||
"openticket:length-min":ODQuestionData<number>,
|
||||
"openticket:length-max":ODQuestionData<number>
|
||||
"opendiscord:length-enabled":ODQuestionData<boolean>,
|
||||
"opendiscord:length-min":ODQuestionData<number>,
|
||||
"opendiscord:length-max":ODQuestionData<number>
|
||||
}
|
||||
|
||||
/**## ODParagraphQuestion `class`
|
||||
@@ -201,10 +201,10 @@ export interface ODParagraphQuestionIds {
|
||||
* Use this question in an option to add a paragraph text field to the modal!
|
||||
*/
|
||||
export class ODParagraphQuestion extends ODQuestion {
|
||||
type: "openticket:paragraph" = "openticket:paragraph"
|
||||
type: "opendiscord:paragraph" = "opendiscord:paragraph"
|
||||
|
||||
constructor(id:ODValidId, data:ODQuestionData<ODValidJsonType>[]){
|
||||
super(id,"openticket:paragraph",data)
|
||||
super(id,"opendiscord:paragraph",data)
|
||||
}
|
||||
|
||||
get<QuestionId extends keyof ODParagraphQuestionIds>(id:QuestionId): ODParagraphQuestionIds[QuestionId]
|
||||
|
||||
@@ -54,10 +54,10 @@ export interface ODRoleJson {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODRoleIds {
|
||||
"openticket:roles":ODRoleData<string[]>,
|
||||
"openticket:mode":ODRoleData<ODRoleUpdateMode>,
|
||||
"openticket:remove-roles-on-add":ODRoleData<string[]>,
|
||||
"openticket:add-on-join":ODRoleData<boolean>
|
||||
"opendiscord:roles":ODRoleData<string[]>,
|
||||
"opendiscord:mode":ODRoleData<ODRoleUpdateMode>,
|
||||
"opendiscord:remove-roles-on-add":ODRoleData<string[]>,
|
||||
"opendiscord:add-on-join":ODRoleData<boolean>
|
||||
}
|
||||
|
||||
/**## ODRole `class`
|
||||
|
||||
@@ -49,7 +49,7 @@ export class ODTicketManager extends ODManager<ODTicket> {
|
||||
}
|
||||
/**Get the main ticket message of a ticket channel when found. */
|
||||
async getTicketMessage(ticket:ODTicket): Promise<discord.Message<true>|null> {
|
||||
const msgId = ticket.get("openticket:ticket-message").value
|
||||
const msgId = ticket.get("opendiscord:ticket-message").value
|
||||
if (!this.#guild || !msgId) return null
|
||||
try {
|
||||
const channel = await this.getTicketChannel(ticket)
|
||||
@@ -64,22 +64,22 @@ export class ODTicketManager extends ODManager<ODTicket> {
|
||||
if (!this.#guild) return null
|
||||
try {
|
||||
if (user == "creator"){
|
||||
const creatorId = ticket.get("openticket:opened-by").value
|
||||
const creatorId = ticket.get("opendiscord:opened-by").value
|
||||
if (!creatorId) return null
|
||||
else return (await this.#guild.client.users.fetch(creatorId))
|
||||
|
||||
}else if (user == "closer"){
|
||||
const closerId = ticket.get("openticket:closed-by").value
|
||||
const closerId = ticket.get("opendiscord:closed-by").value
|
||||
if (!closerId) return null
|
||||
else return (await this.#guild.client.users.fetch(closerId))
|
||||
|
||||
}else if (user == "claimer"){
|
||||
const claimerId = ticket.get("openticket:claimed-by").value
|
||||
const claimerId = ticket.get("opendiscord:claimed-by").value
|
||||
if (!claimerId) return null
|
||||
else return (await this.#guild.client.users.fetch(claimerId))
|
||||
|
||||
}else if (user == "pinner"){
|
||||
const pinnerId = ticket.get("openticket:pinned-by").value
|
||||
const pinnerId = ticket.get("opendiscord:pinned-by").value
|
||||
if (!pinnerId) return null
|
||||
else return (await this.#guild.client.users.fetch(pinnerId))
|
||||
|
||||
@@ -94,14 +94,14 @@ export class ODTicketManager extends ODManager<ODTicket> {
|
||||
if (!channel) return null
|
||||
|
||||
//add creator
|
||||
const creatorId = ticket.get("openticket:opened-by").value
|
||||
const creatorId = ticket.get("opendiscord:opened-by").value
|
||||
if (creatorId){
|
||||
const creator = await this.#client.fetchUser(creatorId)
|
||||
if (creator) final.push({user:creator,role:"creator"})
|
||||
}
|
||||
|
||||
//add participants
|
||||
const participants = ticket.get("openticket:participants").value.filter((p) => p.type == "user")
|
||||
const participants = ticket.get("opendiscord:participants").value.filter((p) => p.type == "user")
|
||||
for (const p of participants){
|
||||
if (!final.find((u) => u.user.id == p.id)){
|
||||
const participant = await this.#client.fetchUser(p.id)
|
||||
@@ -110,7 +110,7 @@ export class ODTicketManager extends ODManager<ODTicket> {
|
||||
}
|
||||
|
||||
//add admin roles
|
||||
const roles = ticket.get("openticket:participants").value.filter((p) => p.type == "role")
|
||||
const roles = ticket.get("opendiscord:participants").value.filter((p) => p.type == "role")
|
||||
for (const r of roles){
|
||||
const role = await this.#client.fetchGuildRole(channel.guild,r.id)
|
||||
if (role){
|
||||
@@ -154,35 +154,35 @@ export interface ODTicketJson {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODTicketIds {
|
||||
"openticket:busy":ODTicketData<boolean>,
|
||||
"openticket:ticket-message":ODTicketData<string|null>,
|
||||
"openticket:participants":ODTicketData<{type:"role"|"user",id:string}[]>,
|
||||
"openticket:channel-suffix":ODTicketData<string>,
|
||||
"opendiscord:busy":ODTicketData<boolean>,
|
||||
"opendiscord:ticket-message":ODTicketData<string|null>,
|
||||
"opendiscord:participants":ODTicketData<{type:"role"|"user",id:string}[]>,
|
||||
"opendiscord:channel-suffix":ODTicketData<string>,
|
||||
|
||||
"openticket:open":ODTicketData<boolean>,
|
||||
"openticket:opened-by":ODTicketData<string|null>,
|
||||
"openticket:opened-on":ODTicketData<number|null>,
|
||||
"openticket:closed":ODTicketData<boolean>,
|
||||
"openticket:closed-by":ODTicketData<string|null>,
|
||||
"openticket:closed-on":ODTicketData<number|null>,
|
||||
"openticket:claimed":ODTicketData<boolean>,
|
||||
"openticket:claimed-by":ODTicketData<string|null>,
|
||||
"openticket:claimed-on":ODTicketData<number|null>,
|
||||
"openticket:pinned":ODTicketData<boolean>,
|
||||
"openticket:pinned-by":ODTicketData<string|null>,
|
||||
"openticket:pinned-on":ODTicketData<number|null>,
|
||||
"openticket:for-deletion":ODTicketData<boolean>,
|
||||
"opendiscord:open":ODTicketData<boolean>,
|
||||
"opendiscord:opened-by":ODTicketData<string|null>,
|
||||
"opendiscord:opened-on":ODTicketData<number|null>,
|
||||
"opendiscord:closed":ODTicketData<boolean>,
|
||||
"opendiscord:closed-by":ODTicketData<string|null>,
|
||||
"opendiscord:closed-on":ODTicketData<number|null>,
|
||||
"opendiscord:claimed":ODTicketData<boolean>,
|
||||
"opendiscord:claimed-by":ODTicketData<string|null>,
|
||||
"opendiscord:claimed-on":ODTicketData<number|null>,
|
||||
"opendiscord:pinned":ODTicketData<boolean>,
|
||||
"opendiscord:pinned-by":ODTicketData<string|null>,
|
||||
"opendiscord:pinned-on":ODTicketData<number|null>,
|
||||
"opendiscord:for-deletion":ODTicketData<boolean>,
|
||||
|
||||
"openticket:category":ODTicketData<string|null>,
|
||||
"openticket:category-mode":ODTicketData<null|"normal"|"closed"|"backup"|"claimed">,
|
||||
"opendiscord:category":ODTicketData<string|null>,
|
||||
"opendiscord:category-mode":ODTicketData<null|"normal"|"closed"|"backup"|"claimed">,
|
||||
|
||||
"openticket:autoclose-enabled":ODTicketData<boolean>,
|
||||
"openticket:autoclose-hours":ODTicketData<number>,
|
||||
"openticket:autoclosed":ODTicketData<boolean>,
|
||||
"openticket:autodelete-enabled":ODTicketData<boolean>,
|
||||
"openticket:autodelete-days":ODTicketData<number>,
|
||||
"opendiscord:autoclose-enabled":ODTicketData<boolean>,
|
||||
"opendiscord:autoclose-hours":ODTicketData<number>,
|
||||
"opendiscord:autoclosed":ODTicketData<boolean>,
|
||||
"opendiscord:autodelete-enabled":ODTicketData<boolean>,
|
||||
"opendiscord:autodelete-days":ODTicketData<number>,
|
||||
|
||||
"openticket:answers":ODTicketData<{id:string,name:string,type:"short"|"paragraph",value:string|null}[]>,
|
||||
"opendiscord:answers":ODTicketData<{id:string,name:string,type:"short"|"paragraph",value:string|null}[]>,
|
||||
}
|
||||
|
||||
/**## ODTicket `class`
|
||||
|
||||
@@ -13,7 +13,7 @@ import * as discord from "discord.js"
|
||||
*
|
||||
* This class manages all transcript generators in the bot.
|
||||
*
|
||||
* The 2 default built-in transcript generators are: `openticket:html-compiler` & `openticket:text-compiler`.
|
||||
* The 2 default built-in transcript generators are: `opendiscord:html-compiler` & `opendiscord:text-compiler`.
|
||||
*/
|
||||
export class ODTranscriptManager extends ODManager<ODTranscriptCompiler<any>> {
|
||||
/**The manager responsible for collecting all messages in a channel. */
|
||||
@@ -119,8 +119,8 @@ export class ODTranscriptCompiler<Data extends object> extends ODManagerData {
|
||||
* It's used to generate typescript declarations for this class.
|
||||
*/
|
||||
export interface ODTranscriptCompilerIds {
|
||||
"openticket:html-compiler":ODTranscriptCompiler<{url:string}>,
|
||||
"openticket:text-compiler":ODTranscriptCompiler<{contents:string}>,
|
||||
"opendiscord:html-compiler":ODTranscriptCompiler<{url:string}>,
|
||||
"opendiscord:text-compiler":ODTranscriptCompiler<{contents:string}>,
|
||||
}
|
||||
|
||||
/**## ODTranscriptManager_Default `default_class`
|
||||
|
||||
Reference in New Issue
Block a user