Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultTicketMsg = "{{$embed := cembed `description` (joinStr `` `Welcome ` .User.Mention `\n\nPlease describe the reasoning for opening this ticket, include any information you think may be relevant such as proof, other third parties and so on.` " + DefaultTicketMsgClose + DefaultTicketMsgAddUser + ")}}\n{{sendMessage nil $embed}}" DefaultTicketMsgClose = "\n\"\\n\\nuse the following command to close the ticket\\n\"\n\"`-ticket close reason for closing here`\\n\\n\"" DefaultTicketMsgAddUser = "\n\"use the following command to add users to the ticket\\n\"\n\"`-ticket adduser @user`\"" )
View Source
const DBSchema = `` /* 1441-byte string literal not displayed */
View Source
const InTicketPerms = discordgo.PermissionSendMessages | discordgo.PermissionReadMessages
View Source
const TicketTXTDateFormat = "2006 Jan 02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func RegisterPlugin ¶
func RegisterPlugin()
func TicketLog ¶
func TicketLog(conf *models.TicketConfig, guildID int64, author *discordgo.User, embed *discordgo.MessageEmbed)
Types ¶
type Plugin ¶
type Plugin struct{}
func (*Plugin) AddCommands ¶
func (p *Plugin) AddCommands()
func (*Plugin) LoadServerHomeWidget ¶ added in v1.18.0
func (p *Plugin) LoadServerHomeWidget(w http.ResponseWriter, r *http.Request) (web.TemplateData, error)
func (*Plugin) PluginInfo ¶
func (p *Plugin) PluginInfo() *common.PluginInfo
Click to show internal directories.
Click to hide internal directories.