Adding on to what Seerah said:
The |T ... |t format is already partly populated in a table called ICON_LIST, so you can do something like this:
Lua Code:
SendChatMessage(ICON_LIST[1].."0|t".."Hello World"), 'CHANNEL', nil, 1)
Source: https://authors.curseforge.com/forum...chat?comment=4