(str, { guild = true, bot = true, text = '[redacted invite]' } = {})
| 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 => { |
nothing calls this directly
no outgoing calls
no test coverage detected