<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AAPI_SetActiveVoiceChannelBySessionID</id>
	<title>WoW:API SetActiveVoiceChannelBySessionID - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AAPI_SetActiveVoiceChannelBySessionID"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_SetActiveVoiceChannelBySessionID&amp;action=history"/>
	<updated>2026-06-02T01:44:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_SetActiveVoiceChannelBySessionID&amp;diff=17529&amp;oldid=prev</id>
		<title>Move page script: Move page script moved page API SetActiveVoiceChannelBySessionID to WoW:API SetActiveVoiceChannelBySessionID without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_SetActiveVoiceChannelBySessionID&amp;diff=17529&amp;oldid=prev"/>
		<updated>2023-08-15T04:47:16Z</updated>

		<summary type="html">&lt;p&gt;Move page script moved page &lt;a href=&quot;/wiki/WoW:API_SetActiveVoiceChannelBySessionID&quot; title=&quot;WoW:API SetActiveVoiceChannelBySessionID&quot;&gt;API SetActiveVoiceChannelBySessionID&lt;/a&gt; to &lt;a href=&quot;/wiki/WoW:API_SetActiveVoiceChannelBySessionID&quot; title=&quot;WoW:API SetActiveVoiceChannelBySessionID&quot;&gt;API SetActiveVoiceChannelBySessionID&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:47, 15 August 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key addonstu_asmw2:diff::1.12:old-17528:rev-17529 --&gt;
&lt;/table&gt;</summary>
		<author><name>Move page script</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_SetActiveVoiceChannelBySessionID&amp;diff=17528&amp;oldid=prev</id>
		<title>WoWWiki&gt;SolE: initial submit</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_SetActiveVoiceChannelBySessionID&amp;diff=17528&amp;oldid=prev"/>
		<updated>2007-10-11T07:56:00Z</updated>

		<summary type="html">&lt;p&gt;initial submit&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{wowapi}} __NOTOC__&lt;br /&gt;
&lt;br /&gt;
Set the active voice channel by providing an ID.&lt;br /&gt;
&amp;lt;!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --&amp;gt;&lt;br /&gt;
 successful = SetActiveVoiceChannelBySessionID(id)&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&amp;lt;!-- List each argument, together with its type --&amp;gt;&lt;br /&gt;
:;id : Number - Channel id. &lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
&amp;lt;!-- List each return value, together with its type --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:;success: Boolean - returns true/1 if channel was changed successfully.&lt;br /&gt;
&lt;br /&gt;
== Triggers Events ==&lt;br /&gt;
&amp;lt;!-- If this function triggers an event, name it here. If not, remove the entire section. --&amp;gt;&lt;br /&gt;
:* &amp;quot;[[Events/V#VOICE_SESSIONS_UPDATE|VOICE_SESSIONS_UPDATE]]&amp;quot;, fired if the function fires successfully and the active channel is switched.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;!-- If it helps, include an example here, though it&amp;#039;s not required if the usage is self-explanatory --&amp;gt;&lt;br /&gt;
 local success = SetActiveVoiceChannelBySessionID(2)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;Result&amp;#039;&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;!-- If it helps, include example results here, though they are not required. You&amp;#039;re allowed to cheat liberally since WoW isn&amp;#039;t a command line language. --&amp;gt;&lt;br /&gt;
 success = 1&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
&amp;lt;!-- Details not appropriate for the main description can go here. &lt;br /&gt;
     REMOVE the section if you&amp;#039;re just going to restate the intro line! --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Note: This function cannot place you in the channels under the &amp;#039;World&amp;#039; category (e.g. Trade, LookingForGroup).&lt;br /&gt;
&lt;br /&gt;
:Id is assigned when the client joins a channel, not by the order of the channels in the Voice Chat window. This means generic channels such as &amp;#039;Party&amp;#039; and &amp;#039;Battleground&amp;#039; will not have a static id if you join any number of custom channels before joining a party or battleground. If you wish to find the id of a channel use the [[API GetNumVoiceSessions|GetNumVoiceSessions]] and [[API GetVoiceSessionInfo|GetVoiceSessionInfo]] functions as shown below.&lt;br /&gt;
 function GetChannelIDByName(name)&lt;br /&gt;
    for id=1, GetNumVoiceSessions() do&lt;br /&gt;
       if name == GetVoiceSessionInfo(id) then&lt;br /&gt;
          return id&lt;br /&gt;
       end&lt;br /&gt;
    end&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t need to keep a reference of the id and simply wish to set a channel as active by name.&lt;br /&gt;
&lt;br /&gt;
 function SetChannelIDByName(name)&lt;br /&gt;
    for id=1, GetNumVoiceSessions() do&lt;br /&gt;
       if name == GetVoiceSessionInfo(id) then&lt;br /&gt;
          SetActiveVoiceChannelBySessionID(id)&lt;br /&gt;
          break&lt;br /&gt;
       end&lt;br /&gt;
    end&lt;br /&gt;
 end&lt;/div&gt;</summary>
		<author><name>WoWWiki&gt;SolE</name></author>
	</entry>
</feed>