decord/source/modules/applications/ApplicationInteractionInfoUtils.tsx

30 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 8004
// Function ID: 63288
2026-07-20 16:05:17 +00:00
// Name: canViewInteractionInfo
2026-07-23 10:11:24 +00:00
// Dependencies: [1881, 2]
2026-07-20 16:05:17 +00:00
// Exports: canViewInteractionInfo, isPrimaryEntryPointCommandMessage
2026-07-24 07:16:23 +00:00
// Module 8004 (canViewInteractionInfo)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/applications/ApplicationInteractionInfoUtils.tsx");
2026-07-20 16:05:17 +00:00
export const canViewInteractionInfo = function canViewInteractionInfo(message) {
return null != message.interactionMetadata;
};
export const isPrimaryEntryPointCommandMessage = function isPrimaryEntryPointCommandMessage(message) {
const interactionMetadata = message.interactionMetadata;
let type;
if (null != interactionMetadata) {
type = interactionMetadata.type;
}
2026-07-23 10:11:24 +00:00
let tmp2 = type === require(1881) /* PermissionOverwriteType */.InteractionTypes.APPLICATION_COMMAND;
2026-07-20 16:05:17 +00:00
if (tmp2) {
const interactionMetadata2 = message.interactionMetadata;
let command_type;
if (null != interactionMetadata2) {
command_type = interactionMetadata2.command_type;
}
2026-07-23 10:11:24 +00:00
tmp2 = command_type === require(1881) /* PermissionOverwriteType */.ApplicationCommandType.PRIMARY_ENTRY_POINT;
2026-07-20 16:05:17 +00:00
}
return tmp2;
};