Binato/server/packets/TourneyMatchLeaveChannel.ts

10 lines
264 B
TypeScript
Raw Normal View History

2023-09-10 12:59:22 +01:00
import User from "../objects/User";
2023-08-20 13:03:01 +01:00
2023-09-10 12:59:22 +01:00
export default function TourneyMatchLeaveChannel(user:User, matchId:number) {
2023-08-20 13:03:01 +01:00
const match = user.shared.multiplayerManager.GetMatchById(matchId);
if (match === undefined) {
return;
}
match.matchChatChannel.Leave(user);
}