Binato/server/packets/TourneyMatchLeaveChannel.ts
2023-08-20 13:03:01 +01:00

10 lines
No EOL
260 B
TypeScript

import { User } from "../objects/User";
export function TourneyMatchLeaveChannel(user:User, matchId:number) {
const match = user.shared.multiplayerManager.GetMatchById(matchId);
if (match === undefined) {
return;
}
match.matchChatChannel.Leave(user);
}