2026-08-05 07:35:12 +00:00
|
|
|
// Module ID: 8119
|
|
|
|
|
// Function ID: 8120
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: canViewInteractionInfo
|
2026-07-29 08:29:29 +00:00
|
|
|
// Dependencies: [1906, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: canViewInteractionInfo, isPrimaryEntryPointCommandMessage
|
|
|
|
|
|
2026-08-05 07:35:12 +00:00
|
|
|
// Module 8119 (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;
|
|
|
|
|
};
|
2026-07-29 08:29:29 +00:00
|
|
|
export const isPrimaryEntryPointCommandMessage = function isPrimaryEntryPointCommandMessage(interactionMetadata) {
|
|
|
|
|
interactionMetadata = interactionMetadata.interactionMetadata;
|
2026-07-20 16:05:17 +00:00
|
|
|
let type;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (interactionMetadata != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
type = interactionMetadata.type;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp4 = type === require(1906) /* PermissionOverwriteType */.InteractionTypes.APPLICATION_COMMAND;
|
|
|
|
|
if (tmp4) {
|
|
|
|
|
const interactionMetadata2 = interactionMetadata.interactionMetadata;
|
2026-07-20 16:05:17 +00:00
|
|
|
let command_type;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (interactionMetadata2 != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
command_type = interactionMetadata2.command_type;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp4 = command_type === require(1906) /* PermissionOverwriteType */.ApplicationCommandType.PRIMARY_ENTRY_POINT;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp4;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|