2023-09-10 12:59:22 +01:00
|
|
|
import osu from "../../osuTyping";
|
|
|
|
import User from "../objects/User";
|
2023-08-20 13:03:01 +01:00
|
|
|
|
2023-09-10 12:59:22 +01:00
|
|
|
export default function TourneyMatchJoinChannel(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.Join(user);
|
|
|
|
}
|