Table of Contents

Method StripTokens

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

StripTokens(string?)

Removes discord-based tokens from a given string.

public static string? StripTokens(string? str)

Parameters

str string

The string to remove the tokens from.

Returns

string

A new string with the tokens replaced with {WEBHOOK_OR_INTERACTION_TOKEN} and {BOT_OR_USER_TOKEN}.