function hasPropertyimport { hasProperty } from "https://dotland.deno.dev/x/discordeno@17.2.0/plugins/validations/deps.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>import hasPropertyimport { hasProperty } from "https://dotland.deno.dev/x/discordeno@17.2.0/plugins/validations/deps.ts";