MCPcopy
hub / github.com/codebymitch/TitanBot / isInteractionUnavailableError

Function isInteractionUnavailableError

src/utils/interactionHelper.js:12–14  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

10const INTERACTION_UNAVAILABLE_CODES = new Set([10062, 40060, 50027]);
11
12function isInteractionUnavailableError(error) {
13 return INTERACTION_UNAVAILABLE_CODES.has(error?.code);
14}
15
16function sanitizeEditReplyOptions(options = {}) {
17 if (!options || typeof options !== 'object') {

Callers 4

safeDeferMethod · 0.85
safeEditReplyMethod · 0.85
safeReplyMethod · 0.85
safeShowModalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected