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

Function sanitizeEditReplyOptions

src/utils/interactionHelper.js:16–27  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

14}
15
16function sanitizeEditReplyOptions(options = {}) {
17 if (!options || typeof options !== 'object') {
18 return options;
19 }
20
21 const { flags, ephemeral, ...rest } = options;
22
23 if (flags && (flags & MessageFlags.IsComponentsV2)) {
24 rest.flags = MessageFlags.IsComponentsV2;
25 }
26 return rest;
27}
28
29export class InteractionHelper {
30 static getCoordinator(interaction) {

Callers 4

safeEditReplyMethod · 0.85
safeReplyMethod · 0.85
universalReplyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected