Skip to main content
method EventHandler.prototype.changeChannel
import { EventHandler } from "https://deno.land/x/sono@v1.1/src/eventhandler.ts";

Changes the channel client is in

Parameters

packet: Packet
  • Message containing channel to change client to
client: Client
  • Client to change channel
channelsList: { [key: string]: Record<string, Client>; }
  • Object containing all channels in Sono server

Returns

{ [key: string]: Record<string, Client>; }