decord/beta/source/modules/applications/ApplicationInteractionInfoUtils.tsx
2026-10-07 22:43:51 +00:00

32 lines
1.1 KiB
TypeScript

// Module ID: 11242
// Function ID: 11243
// Name: ApplicationInteractionInfoUtils
// Dependencies: [1985, 2]
// Exports: canViewInteractionInfo, isPrimaryEntryPointCommandMessage
// Module 11242 (ApplicationInteractionInfoUtils)
import Server from "Server" /* 1985 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/applications/ApplicationInteractionInfoUtils.tsx");
export const canViewInteractionInfo = function canViewInteractionInfo(message) {
return null != message.interactionMetadata;
};
export const isPrimaryEntryPointCommandMessage = function isPrimaryEntryPointCommandMessage(message) {
const interactionMetadata = message.interactionMetadata;
let type;
if (interactionMetadata != null) {
type = interactionMetadata.type;
}
let tmp4 = type === Server.InteractionTypes.APPLICATION_COMMAND;
if (tmp4) {
const interactionMetadata2 = message.interactionMetadata;
let command_type;
if (interactionMetadata2 != null) {
command_type = interactionMetadata2.command_type;
}
tmp4 = command_type === Server.ApplicationCommandType.PRIMARY_ENTRY_POINT;
}
return tmp4;
};