import { Utils } from "https://deno.land/x/discord_api_types@0.37.15/v9.ts";
const { isMessageComponentDMInteraction } = Utils;
A type-guard check for DM message component interactions
Parameters
interaction: APIMessageComponentInteraction
The message component interaction to check against
Returns
interaction is APIMessageComponentDMInteraction
A boolean that indicates if the message component interaction was received in a DM channel