Forum

Results 1 to 5 of 5
  1. #1
    Join Date
    July 2013
    Posts
    17

    Solved Get ChannelID of last created channel?

    Hello!
    I'm on a new Plugin for my Teamspeak Bot. Is there a possibility to get the ID of the last created Channel, made with
    flushChannelCreation();
    ?
    I need it to switch Users into it.

    greetings!

  2. #2
    Join Date
    October 2012
    Location
    Germany
    Posts
    553
    Hm either cache the amount of channels or name of the target, then act onNewChannelCreated if it is met, and reset the variable.

    Event callback might be slightly different, on the road.

  3. #3
    Join Date
    July 2013
    Posts
    17
    how should i filter the new channel id then? :-O

  4. #4
    Join Date
    October 2012
    Location
    Germany
    Posts
    553
    You use either the channel amount Counter or compare the newly created channels Name with the one you saved. if it matches, there's your channelid.
    alternatively use a properly created returncode on the flush and if onservererror error_ok getchannelidfromchannelnames.
    Last edited by Philosound; July 30th, 2013 at 02:54 PM.

  5. #5
    Join Date
    July 2013
    Posts
    17
    oh. it wasnt even that hard ^^
    thank you very much

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Resolved] Find out who created a channel
    By BrickTop in forum Permission System
    Replies: 3
    Last Post: April 25th, 2012, 03:01 PM
  2. How to check who created or edited channel?
    By AlexMan in forum Server Support
    Replies: 1
    Last Post: August 28th, 2011, 03:55 PM
  3. Channel created server callback : can't get parent channel id
    By maitredede in forum General Questions
    Replies: 0
    Last Post: July 14th, 2011, 12:29 PM
  4. [Resolved] created channels topic always set to channel name
    By Screech in forum Bug Reports [EN/DE]
    Replies: 1
    Last Post: January 26th, 2011, 08:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •