import { ModernWarfare, platforms } from "call-of-duty-api";
try {
let data = await ModernWarfare.matchInfo(matchId: string, platform: platforms)
} catch(Error) {
//Handle Exception
}
import { Warzone, platforms } from "call-of-duty-api";
try {
let data = await Warzone.matchInfo(matchId: string, platform: platforms)
} catch(Error) {
//Handle Exception
}