SHARE
TWEET

Untitled

a guest Aug 10th, 2019 5 in 143 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void Subscribe()
  2. {
  3.             Ts3Instance.Notifications.ClientMoveForced += NotificationsOnClientMoveForced;
  4.             var channels = Ts3Instance.GetChannelList(false);
  5.             foreach (var channel in channels)
  6.             {
  7.                 var response = Ts3Instance.RegisterForNotifications(ServerNotifyRegisterEvent.Channel, channel.ChannelId);
  8.                 Console.WriteLine($"Subbed to channel {channel.Name} ({channel.ChannelId}) ERROR ID: {response.ErrorId}");
  9.             }
  10. }
  11. private void NotificationsOnClientMoveForced(object sender, ClientMovedByClientEventArgs e)
  12. {
  13.             Console.WriteLine($"You have been moved by {e.InvokerNickname}");
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top