WoW:API ChatFrame ResolveChannelName

From AddOn Studio
Revision as of 18:49, 21 September 2018 by WoWWiki>Numynum (Created page with "{{Tlylink|ChatFrame.lua}} ChatFrame_ResolveChannelName('communityChannel') Resolves the internal community channel name into the short-name setup by the community admin ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

//www.townlong-yak.com/framexml/live/ChatFrame.lua

ChatFrame_ResolveChannelName('communityChannel')

Resolves the internal community channel name into the short-name setup by the community admin


Parameters

Arguments

('communityChannel')
communityChannel
String - The name of the (community) channel to resolve.

Returns

'communityShortName - channelName'
string containing the community channel's short-name
if the input doesn't follow the community format, the input is returned back
if the community isn't found, ' - ' is returned
if the channelName is General, then only communityShortName is returned

Example

ChatFrame_ResolveChannelName("Community:123456789:1");
-- Cname
ChatFrame_ResolveChannelName("4: Community:123456789:2");
-- Cname - subChannel
ChatFrame_ResolveChannelName("LocalDefense");
-- LocalDefense
ChatFrame_ResolveChannelName("3: LocalDefense");
-- 3: LocalDefense