Table of Contents

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

str string

The string to strip tokens and IDs from.

stripIds bool

Whether to strip ID's.

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}.