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