function hasPropertyimport { hasProperty } from "https://deno.land/x/discordeno@17.0.1/util/utils.ts"; hasProperty<T extends { }, Y extends PropertyKey = string>(obj: T, prop: Y): obj is T & Record<Y, unknown>TS save way to check if a property exists in an object Type ParametersT extends { }optionalY extends PropertyKey = stringParametersobj: Tprop: YReturnsobj is T & Record<Y, unknown>