Disconnects a client from the server, causing them to leave all channels they are in.


If the connection request was approved, this action will trigger the Connection > On disconnect event immediately. After the Disconnect event finishes, any local client data stored with the client is discarded.


Don't use the Disconnect action for unapproved connections.

During a Connection > On connect request event, don't use the Disconnect action, use the On interactive condition > Deny (for on [..] request) action to kick the client instead.


If using Disconnect for an unapproved connection:

  • In Relay Server, it will do nothing.
  • In Blue Server, it will work as expected. However, like Deny it will not trigger the On Disconnect event.
    You should not use Disconnect on the incoming connection during a connect request event, as it may cause undefined behavior on the server. Use the Deny action instead.