Lore archive · Warcraft Wiki, 2023 dump
API GetChannelName
Last wiki revision 2022-08-01
Returns info for a chat channel. id, name, instanceID, isCommunitiesChannel = GetChannelName(id or name)
- id: - Channel ID to query, e.g. 1 for the chat channel currently addressable using /1.
- name: - Name of the channel to query, e.g. "Trade - City".
- id: - The ID of the channel, or 0 if the channel is not found.
- name: - The name of the channel, e.g. "Trade - Stormwind", or nil if the player is not in the queried channel.
- instanceID: - Index used to deduplicate channels. Usually zero, unless two channels with the same name exist.
- isCommunitiesChannel: - True if this is a Blizzard Communities channel, false if not.
- Note that querying GetChannelName("Trade - City") may return values which appear to be valid even while the player is not a city. Consider using to check whether you really have access to the Trade channel.
Source
https://warcraft.wiki.gg/wiki/API_GetChannelName · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.