Templates
Help › Custom commands › Templates
Templates
Responses in custom commands, welcome messages, and a few other places can include templates: small bits of code inside double curly braces that fill in names, count things, or make decisions.
{{.User.Username}} has been here since {{.Member.JoinedAt}}.
Templates use the Go template language. If you've never written code, start by copying simple examples and changing one thing at a time.
- Syntax and data: how templates are written and what information is available.
- Functions: the actions templates can perform.
- Custom embeds: making nicer looking messages.