Method StripTokensAndOptIds
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
StripTokensAndOptIds(string?, bool)
Shorthand method to strip both tokens and IDs.
public static string? StripTokensAndOptIds(string? str, bool stripIds)
Parameters
Returns
- string
A new string with the tokens replaced with
{WEBHOOK_OR_INTERACTION_TOKEN}
and{BOT_OR_USER_TOKEN}
and optionally the ids replaced with{DISCORD_ID}
.