public static ChannelCreated ChannelCreate(Ts3FullClient cli, string name, string password, string neededTP, string phoname) { var cmd = new Ts3Command("channelcreate", new List <ICommandPart>() { new CommandParameter("channel_name", name), new CommandParameter("channel_password", Ts3Crypt.HashPassword(password)), new CommandParameter("channel_needed_talk_power", neededTP), new CommandParameter("channel_name_phonetic", phoname) }); var createdchan = cli.SendSpecialCommand(cmd, NotificationType.ChannelCreated).Notifications.Cast <ChannelCreated>(); foreach (var chan in createdchan) { Console.WriteLine("#{0} CID: {1} CNAME: {2}", cli.ClientId, chan.ChannelId, chan.Name); if (chan.Name == name) { return(chan); } } return(null); }