MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / createInteraction

Function createInteraction

tests/failure-paths/abuseProtection.test.js:12–18  ·  view source on GitHub ↗
(overrides = {})

Source from the content-addressed store, hash-verified

10import { logger } from '../../src/utils/logger.js';
11
12function createInteraction(overrides = {}) {
13 return {
14 guildId: 'guild-1',
15 user: { id: 'user-1' },
16 ...overrides
17 };
18}
19
20test('detects risky commands by category and explicit name', () => {
21 assert.equal(isRiskyCommand({ category: 'moderation' }, 'ban'), true);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected