m
Move page script moved page API GetChannelName to WoW:API GetChannelName without leaving a redirect
(upgraded deprecated template) |
m (Move page script moved page API GetChannelName to WoW:API GetChannelName without leaving a redirect) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
Retrieves the id and the name from a specific channel. | Retrieves the id and the name from a specific channel. | ||
| Line 22: | Line 21: | ||
If the channel argument is the channel number (ie 6 or "6"), then the returned channel name is correct. | If the channel argument is the channel number (ie 6 or "6"), then the returned channel name is correct. | ||
The channel id returns correctly in both cases. | The channel id returns correctly in both cases. | ||
It's also worthy to note the strange behaviour of (at least) Trade channels. Login to a city, GetChannelName("Trade - City") will return the channel number it's on. Step outside the city, you'll leave the channel yet making that call again will return the channel number you *were* on. As such, it's not entirely reliable for detecting if you're in a trade enabled zone. | |||
---- | ---- | ||
| Line 40: | Line 41: | ||
: Retrieves the name from a specific channel. | : Retrieves the name from a specific channel. | ||
: Also returns a 3rd value, seems to always be 0 on enUS client, its purpose is unknown. | |||