A powerful, all-in-one Discord assistant built for every server.
This report summarizes scanner evidence for codebymitch/TitanBot, a JavaScript project with 9,311 GitHub stars. SynthScan examined 56,482 lines of code across 285 source files, recording 87 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 1.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 85 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 83 finding(s).
Which changes need focused human review? 87 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 87 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/config/bot.js | 612 | export function getApplicationStatusColor(status) { | CODE |
| LOW | src/config/bot.js | 618 | export function getDefaultApplicationQuestions() { | CODE |
| LOW | src/config/database/postgres.js | 76 | export function resolvePostgresPoolConfig() { | CODE |
| LOW | src/config/commands/prefixRestrictions.js | 129 | export function isPrefixRestrictedCommand(command, args, resolveSubcommandAlias) { | CODE |
| LOW | src/utils/database.js | 634 | function buildApplicationSettingsDefaults() { | CODE |
| LOW | src/utils/database.js | 679 | function getApplicationRetentionDays(settings = {}) { | CODE |
| LOW | src/utils/database.js | 740 | export async function cleanupExpiredApplications(client, guildId) { | CODE |
| LOW | src/utils/database.js | 800 | function getApplicationRoleSettingsKey(guildId, roleId) { | CODE |
| LOW | src/utils/database.js | 804 | export async function getApplicationRoleSettings(client, guildId, roleId) { | CODE |
| LOW | src/utils/database.js | 819 | export async function saveApplicationRoleSettings(client, guildId, roleId, settings) { | CODE |
| LOW | src/utils/database.js | 835 | export async function deleteApplicationRoleSettings(client, guildId, roleId) { | CODE |
| LOW | src/utils/database.js | 1107 | export async function removeJoinToCreateTrigger(client, guildId, channelId) { | CODE |
| LOW | src/utils/database.js | 1147 | export async function unregisterTemporaryChannel(client, guildId, channelId) { | CODE |
| LOW | src/utils/panelStatus.js | 22 | export function messageHasSelectMenuCustomId(message, selectCustomId) { | CODE |
| LOW | src/utils/panelStatus.js | 121 | export async function getVerificationPanelStatus(client, guild, config) { | CODE |
| LOW | src/utils/panelStatus.js | 129 | export async function getReactionRolePanelStatus(client, guild, panelData) { | CODE |
| LOW | src/utils/logger.js | 28 | export function createInteractionTraceContext(interaction, overrides = {}) { | CODE |
| LOW | src/utils/interactionHelper.js | 12 | function isInteractionUnavailableError(error) { | CODE |
| LOW | src/utils/abuseProtection.js | 196 | export function resetAbuseProtectionState() { | CODE |
| LOW | src/utils/errorHandler.js | 134 | function inferErrorTypeFromUserMessage(message = '') { | CODE |
| LOW | src/utils/errorHandler.js | 165 | function normalizeInteractionError(error, context = {}) { | CODE |
| LOW | src/utils/collectorComponents.js | 8 | export function isCollectorManagedComponent(customId = '') { | CODE |
| LOW | src/utils/permissionGuard.js | 13 | export function getCommandDefaultPermissions(commandData) { | CODE |
| LOW | src/utils/permissionGuard.js | 50 | export function memberHasConfiguredModeratorRole(member, guildConfig) { | CODE |
| LOW | src/utils/permissionGuard.js | 67 | export function memberHasModerationCommandAccess(member, guildConfig, requiredPermissions = null) { | CODE |
| LOW | src/utils/permissionGuard.js | 95 | export function memberMeetsCommandPermissions(member, permissionBitfield, options = {}) { | CODE |
| LOW | src/utils/permissionGuard.js | 121 | export async function checkModerationPermissions( | CODE |
| LOW | src/utils/permissionGuard.js | 151 | export async function enforceDefaultCommandPermissions(interaction, command, context = {}) { | CODE |
| LOW | src/utils/embeds.js | 272 | function containsDiscordRenderable(content = '') { | CODE |
| LOW | src/utils/commandInputValidation.js | 27 | export function validateChatInputPayloadOrThrow(interaction, context = {}) { | CODE |
| LOW | src/utils/schemas.js | 212 | export function validateGuildConfigOrThrow(rawConfig, context = {}) { | CODE |
| LOW | src/utils/interactionValidator.js | 91 | export function withExpiredInteractionHandler(handler) { | CODE |
| LOW | src/utils/sqlIdentifiers.js | 5 | export function assertAllowlistedIdentifier(identifier, allowlist, label = 'SQL identifier') { | CODE |
| LOW | src/utils/errorRegistry.js | 128 | export function getDefaultErrorCodeByType(errorType = 'unknown') { | CODE |
| LOW | src/utils/database/keys.js | 67 | export function getApplicationSettingsKey(guildId) { | CODE |
| LOW | src/utils/database/keys.js | 87 | export function getJoinToCreateChannelsKey(guildId) { | CODE |
| LOW | src/utils/database/keys.js | 192 | export function getLegacyVariantsForCanonical(canonicalKey) { | CODE |
| LOW | src/utils/database/tickets.js | 16 | export async function getOpenTicketCountForUser(guildId, userId) { | CODE |
| LOW | src/utils/ticket/ticketLogging.js | 79 | function getLogChannelForEventType(config, eventType) { | CODE |
| LOW | src/utils/ticket/ticketPermissions.js | 7 | export async function getTicketPermissionContext({ client, interaction }) { | CODE |
| LOW | src/utils/logging/loggingUi.js | 67 | function createCategoryToggleButtons(enabledEvents = {}, loggingEnabled = false) { | CODE |
| LOW | src/utils/logging/loggingUi.js | 91 | export function createLoggingMainMenuSelect() { | CODE |
| LOW | src/utils/logging/loggingUi.js | 138 | export function createLoggingMainActionRow(loggingEnabled = false) { | CODE |
| LOW | src/utils/logging/loggingUi.js | 151 | export function createLoggingDashboardComponents(_enabledEvents, loggingEnabled = false) { | CODE |
| LOW | src/utils/logging/loggingUi.js | 158 | export function createLoggingCategoryViewComponents(enabledEvents, loggingEnabled = false) { | CODE |
| LOW | src/utils/logging/loggingUi.js | 176 | export function createLoggingFilterComponents() { | CODE |
| LOW | src/commands/Core/configWizard.js | 555 | function buildSettingSuccessMessage(setting, value, guild) { | CODE |
| LOW | src/commands/Core/modules/commands_dashboard.js | 383 | export function createDashboardCollectorFilter(userId, guildId) { | CODE |
| LOW | src/commands/ServerStats/modules/serverstats_delete.js | 66 | export const performDeletionByCounterId = wrapServiceBoundary(async function performDeletionByCounterId(client, guild, c | CODE |
| LOW | src/commands/Community/app-admin.js | 22 | function getApplicationStatusPresentation(statusValue) { | CODE |
| LOW | src/commands/Community/apply.js | 21 | function getApplicationStatusPresentation(statusValue) { | CODE |
| LOW | src/commands/Community/modules/app_dashboard.js | 648 | function buildApplicationSelectMenu(guildId, roleId) { | CODE |
| LOW | src/commands/Logging/modules/logging_dashboard.js | 39 | export async function buildLoggingDashboardView(interaction, client) { | CODE |
| LOW | src/commands/Logging/modules/logging_dashboard.js | 100 | export async function buildLoggingCategoriesView(interaction, client) { | CODE |
| LOW | src/commands/Reaction_roles/reactroles.js | 425 | function buildReactionRoleDashboardPayload(panelData, discordMsg, guildId, guild, panelStatus = null) { | CODE |
| LOW | src/commands/Reaction_roles/reactroles.js | 505 | async function migrateReactionRoleMessageId(client, guildId, panelData, newMessageId) { | CODE |
| LOW | src/commands/Utility/todo.js | 142 | async function getOrCreateSharedList(listId, creatorId = null, listName = null) { | CODE |
| LOW | src/handlers/warningHandlers.js | 78 | async function warningDeleteModalHandler(interaction, client) { | CODE |
| LOW | src/handlers/warningHandlers.js | 124 | async function warningClearConfirmModalHandler(interaction, client) { | CODE |
| LOW | src/handlers/todoButtons.js | 8 | function buildSharedTodoViewPayload(listData, listId, guild) { | CODE |
| 23 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/commands/Reaction_roles/reactroles.js | 167 | if (!interaction.guild.members.me.permissions.has(PermissionFlagsBits.ManageRoles)) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/config/bot.js | 1 | import { logger } from '../utils/logger.js'; | COMMENT |
| LOW | src/utils/errorHandler.js | 1 | // errorHandler.js — the single entry point for all error handling. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/commands/Giveaway/gcreate.js | 101 | messageId: "placeholder", | CODE |