Notice to all users

We are migrating towards a new forum system located at, as such this forum will become read-only on January 29, 2020

Results 1 to 3 of 3
  1. #1
    Join Date
    January 2009

    [C] ts3plugin_onMenuItemEvent : How do I get the channel id?

    How do I get the channel id when onMenuItemEvent is fired? Actually I am trying to get the id by using selectedItemID, but it is returning a weird long number.
    Last edited by Halfbax; September 17th, 2018 at 06:08 PM.

  2. #2
    Join Date
    April 2017
    If you want to get your own channel id you can do:

    anyID YourVariable1;
    ts3Functions.getClientID(serverConnectionHandlerID, &YourVariable1);
    uint64 YourVariable2;
    ts3Functions.getChannelOfClient(serverConnectionHandlerID, YourVariable1, &YourVariable2);

  3. #3
    Join Date
    September 2012
    The selectedItemID has different meaning based on the type parameter.
    If the type is equal to PLUGIN_MENU_TYPE_CHANNEL then the selectedItemID is the channel ID of the channel that the user clicked your menu item on.
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Channel Owners Cannot Give Channel Admin Or Edit Channel
    By Starrr in forum Permission System
    Replies: 3
    Last Post: July 15th, 2016, 09:52 PM
  2. Replies: 1
    Last Post: May 15th, 2013, 10:06 AM
  3. [Resolved] [REQUEST]Find channel in channel tree after connecting to Default Channel
    By Slater in forum Suggestions and Feedback
    Replies: 16
    Last Post: June 3rd, 2011, 02:21 PM
  4. Channel permission window and channel group display all clients with many sub channel
    By -{HGH}-GEN.Skylab in forum Suggestions and Feedback
    Replies: 1
    Last Post: July 30th, 2010, 09:15 AM
  5. Replies: 1
    Last Post: July 30th, 2010, 09:15 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