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

GlobalChatLeaveChannel

Leaves the current global chat channel.

The method automatically determines the active channel name and sends a leave packet for it. No parameters are needed.

Покидает текущий канал глобального чата.

Метод автоматически определяет имя активного канала и отправляет пакет выхода из него. Параметры не требуются.

Pascal

procedure GlobalChatLeaveChannel;

Python

def GlobalChatLeaveChannel() -> None: ...

Pascal Example

begin
  if GlobalChatActiveChannel <> '' then
  begin
    AddToSystemJournal('Leaving channel: ' + GlobalChatActiveChannel);
    GlobalChatLeaveChannel;
  end;
end.

Python Example

if GlobalChatActiveChannel():
    AddToSystemJournal(f'Leaving channel: {GlobalChatActiveChannel()}')
    GlobalChatLeaveChannel()

See Also

GlobalChatJoinChannel, GlobalChatActiveChannel, GlobalChatChannelsList, GlobalChatSendMsg