Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GlobalChatJoinChannel

Joins the specified global chat channel.

ChName — name of the channel to join.

Sends a chat join packet to the server. The current active channel can be checked with GlobalChatActiveChannel.

Присоединяется к указанному каналу глобального чата.

ChName — название канала для подключения.

Отправляет серверу пакет присоединения к чату. Текущий активный канал можно проверить через GlobalChatActiveChannel.

Pascal

procedure GlobalChatJoinChannel(ChName: String);

Python

def GlobalChatJoinChannel(ChName: str) -> None: ...

Pascal Example

begin
  GlobalChatJoinChannel('General');
  Wait(500);
  if GlobalChatActiveChannel = 'General' then
    AddToSystemJournal('Joined General channel')
  else
    AddToSystemJournal('Failed to join');
end.

Python Example

GlobalChatJoinChannel('General')
Wait(500)
if GlobalChatActiveChannel() == 'General':
    AddToSystemJournal('Joined General channel')
else:
    AddToSystemJournal('Failed to join')

See Also

GlobalChatLeaveChannel, GlobalChatActiveChannel, GlobalChatChannelsList, GlobalChatSendMsg