(options = {})
| 14 | } |
| 15 | |
| 16 | function 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 | |
| 29 | export class InteractionHelper { |
| 30 | static getCoordinator(interaction) { |
no outgoing calls
no test coverage detected