{{define "cp_head"}}{{if not .PartialRequest}} YAGPDB - Yet another general purpose discord bot control panel
{{template "cp_nav" .}}
{{end}}{{end}} {{define "cp_footer"}}{{if not .PartialRequest}}
{{template "googleAnalytics" .}} {{end}}{{end}} {{/*Displays alerts*/}} {{define "cp_alerts"}}
{{if .Alerts}}
{{range .Alerts}}
{{.Message}}
{{end}}
{{end}}
{{end}} {{/* Argumens Channels - list of channels Selections - List of selections
  • */}} {{define "channel_options_multi"}} {{$selections := .Selections}} {{range .Channels}}{{if eq .Type 0}} {{end}}{{end}} {{end}} {{define "channel_options_multi_int"}} {{$selections := .Selections}} {{range .Channels}}{{if eq .Type 0}} {{end}}{{end}} {{end}} {{/*Help block for templating*/}} {{define "template_help"}}

    To include the user or server in the message you can use the template data included, the templating engine used is go's text/template
    Some quick examples: {{"{{"}}.User.Username{{"}}"}} - will be replaced by username, {{"{{"}}.Server.Name{{"}}"}} - Will be replaced by server name, {{"{{"}}.User.ID{{"}}"}} - The users id and so on..
    To mention the user for example you would do <@{{"{{"}}.User.ID{{"}}"}}>

    {{end}} {{/*Specific template helpers*/}} {{define "template_helper_user"}}{{"{{"}}.User.(ID/Username/Discriminator/Bot{{"}}"}}{{end}} {{define "template_helper_guild"}}{{"{{"}}.Server.(ID/Name/Icon/Owner/Permissions){{"}}"}}{{end}} {{define "set_roles"}}{{end}}