// Module ID: 8336 // Function ID: 8337 // Name: canViewInteractionInfo // Dependencies: [1935, 2] // Exports: canViewInteractionInfo, isPrimaryEntryPointCommandMessage // Module 8336 (canViewInteractionInfo) const result = require("set").fileFinishedImporting("modules/applications/ApplicationInteractionInfoUtils.tsx"); export const canViewInteractionInfo = function canViewInteractionInfo(message) { return null != message.interactionMetadata; }; export const isPrimaryEntryPointCommandMessage = function isPrimaryEntryPointCommandMessage(interactionMetadata) { interactionMetadata = interactionMetadata.interactionMetadata; let type; if (interactionMetadata != null) { type = interactionMetadata.type; } let tmp4 = type === require(1935) /* PermissionOverwriteType */.InteractionTypes.APPLICATION_COMMAND; if (tmp4) { const interactionMetadata2 = interactionMetadata.interactionMetadata; let command_type; if (interactionMetadata2 != null) { command_type = interactionMetadata2.command_type; } tmp4 = command_type === require(1935) /* PermissionOverwriteType */.ApplicationCommandType.PRIMARY_ENTRY_POINT; } return tmp4; };