Skip to content

Commit

Permalink
reference/templates: fix typos in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Clayell authored Aug 22, 2024
1 parent 33a094d commit eb08edd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/docs/reference/templates/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ There is also .Mention method available for channel, role, user structs/objects.
- Sends message to current channel `nil` and gets messageID to variable `$x`. Also adds reactions to this message. After
5 seconds, deletes that message. >

`{{$x := sendMessageRetID nil "Hello there!"}} {{addMessageReactions nil $x (cslice "👍" "👎") "`❤️`" }}
`{{$x := sendMessageRetID nil "Hello there!"}} {{addMessageReactions nil $x (cslice "👍" "👎") "❤️" }}
{{deleteMessage nil $x 5}}`

- To demonstrate `sleep` and slightly also `editMessage` functions. >\
Expand All @@ -359,7 +359,7 @@ something nice - you all are doing awesome!" "filename" currentTime.Weekday)}}`
`{{$mID := sendMessageRetID nil (complexMessage "content" "You know what is..." "silent" true "embed" (cembed "title"
"FUN!?" "color" 0xaa8900))}} {{sleep 3}} {{editMessage nil $mID (complexMessageEdit "embed" (cembed "title" "YAGPDB!"
"color" 0x89aa00) "content" "Yes, it's always working with...")}}{{sleep 3}}{{editMessage nil $mID (complexMessageEdit
"embed" nil` "content" "Will delete this message in a sec, goodbye YAG!"`)}}{{deleteMessage nil $mID 3}}`
"embed" nil "content" "Will delete this message in a sec, goodbye YAG!")}}{{deleteMessage nil $mID 3}}`

### Miscellaneous

Expand Down

0 comments on commit eb08edd

Please sign in to comment.