Skip to content

redactSecrets

redactSecrets(text): string

Defined in: packages/core/src/normalise.ts:41

Removes anything that looks like a Discord bot token, an interaction or webhook token, an Authorization value or a Shardlens API key. Every piece of error text passes through this before it is sent or logged.

string

string