MCPcopy Create free account
hub / github.com/esmBot/esmBot / clean

Method clean

src/classes/command.ts:263–271  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

261 }
262
263 clean(text: string) {
264 if (this.message) {
265 return cleanMessage(this.message, text);
266 }
267 if (this.interaction) {
268 return cleanInteraction(this.interaction, text);
269 }
270 throw Error("Unknown command type");
271 }
272
273 static init() {
274 return this;

Callers 12

paramsFuncMethod · 0.80
paramsFuncMethod · 0.80
paramsFuncMethod · 0.80
paramsFuncMethod · 0.80
paramsFuncMethod · 0.80
paramsFuncMethod · 0.80
paramsFuncMethod · 0.80
paramsFuncMethod · 0.80
paramsFuncMethod · 0.80
paramsFuncMethod · 0.80
paramsFuncMethod · 0.80
paramsFuncMethod · 0.80

Calls 2

cleanMessageFunction · 0.85
cleanInteractionFunction · 0.85

Tested by

no test coverage detected