INNER CODE UNIT · JavaScript

named

nyxxbit/discord-quest-completer · index.js:325

            const named = keys.find(k => UNAUTOMATABLE_KEYS.has(k));
            if (named) {
                return keys.length === 1
                    ? `"${name}" offers only ${named}. ${UNAUTOMATABLE_KEYS.get(named)}`
                    : `"${name}" offers ${keys.join(', ')}, and none of them run here. The one we know about is ${named}. ${UNAUTOMATABLE_KEYS.get(named)}`;
            }

            return `"${name}" uses an unsupported task type (${keys.join(', ')}).`;
        }

        const { type, target, appId } = typeData;

        if (!isDesktop && (type === 'GAME' || type === 'STREAM')) return `"${name}" needs the desktop app for its ${type} task.`;
        if (target <= 0) return `"${name}" has an invalid target (${target}).`;
        // GAME/STREAM impersonate a specific application. Without a real id the fake process is
        // unidentifiable and Discord silently never counts it, so skip rather than run a task
        // that cannot finish (issue #43).
        if ((type === 'GAME' || type === 'STREAM') && !appId) return `"${name}" has no application id in its config, so the game cannot be spoofed.`;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…