From 95428cd9cc6df2212a03f7573edade021c101e9f Mon Sep 17 00:00:00 2001 From: FaithInMotion Date: Tue, 13 Jun 2023 14:35:59 -0400 Subject: [PATCH] Update README.md Paragraph under References > Templates > Custom Types is incorrect at best. For instance, arrays are listed, but are not available to use. Wording updated. --- reference/templates/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/templates/README.md b/reference/templates/README.md index b63fee4..e2648f4 100644 --- a/reference/templates/README.md +++ b/reference/templates/README.md @@ -505,7 +505,7 @@ Trim markers: `{{- ... -}}`were used in above example because whitespace is cons ## Custom Types -Golang has built-in primitive data types (_int_, _string_, _bool_, _float64_, ...) and built-in composite data types (_array_, _slice_, _map_, ...) which also are used in custom commands. \ +Golang has built-in primitive data types (_int_, _string_, _bool_, _float64_, ...) and built-in composite data types (_array_, _slice_, _map_, ...). Arrays, while listed here, are not available as a valid datatype for custom commands. \ \ YAGPDB's templating "engine" has currently two user-defined, custom data types - _templates.Slice_ and _templates.SDict_. There are other custom data types used like _discordgo.Timestamp_, but these are outside of the main code of YAGPDB, so not explained here further. Type _time.Time_ is covered in its own [section](./#time).\ \