File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
content/docs/reference/templates Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -891,9 +891,12 @@ See [`createTicket`](functions#createticket) for creating a ticket.
891891
892892## Time
893893
894- Time and duration types use Go's time package library and its methods >
895- [ https://golang.org/pkg/time/#time ] ( https://golang.org/pkg/time/#Time ) and also this although slightly different syntax
896- all applies here > [ https://gobyexample.com/time ] ( https://gobyexample.com/time ) .
894+ Time and duration types use [ Go's time package] ( https://golang.org/pkg/time/#Time ) . Go by example lists [ some examples
895+ of using _ time.Time_ ] ( https://gobyexample.com/time ) in Go code, which can be referenced for similar use in YAGPDB's
896+ templates.
897+
898+ Some time types in the data that Discord API functions return instead use the _ discordgo.Timestamp_ type. These can be
899+ converted to _ time.Time_ with the ` .Parse ` method. These cases are mentioned in the type documentation on this page.
897900
898901| ** Field** | ** Description** |
899902| ------------- | ----------------------------------------------------------------------------------------------------------- |
You can’t perform that action at this time.
0 commit comments