decord/source/modules/applications/ApplicationInteractionInfoUtils.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

32 lines
1.1 KiB
TypeScript

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