decord/alpha/source/modules/applications/ApplicationInteractionInfoUtils.tsx
github-actions 52331fb8ae chore: update source for alpha 349.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5051.js (118.4 MB)
2026-09-30 07:29:52 +00:00

32 lines
1.1 KiB
TypeScript

// Module ID: 11319
// Function ID: 11320
// Name: ApplicationInteractionInfoUtils
// Dependencies: [1979, 2]
// Exports: canViewInteractionInfo, isPrimaryEntryPointCommandMessage
// Module 11319 (ApplicationInteractionInfoUtils)
import Server from "Server" /* 1979 */;
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;
};