MCPcopy Create free account
hub / github.com/Siris2314/NecroAtomicBot / stripInvites

Function stripInvites

classes/functions.js:138–142  ·  view source on GitHub ↗
(str, { guild = true, bot = true, text = '[redacted invite]' } = {})

Source from the content-addressed store, hash-verified

136 },
137
138 stripInvites(str, { guild = true, bot = true, text = '[redacted invite]' } = {}) {
139 if (guild) str = str.replace(inviteRegex, text);
140 if (bot) str = str.replace(botInvRegex, text);
141 return str;
142 },
143
144 wrapText (ctx, text, maxWidth) {
145 return new Promise(resolve => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected