Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discordeno/util/token.ts>removeTokenPrefix

Discord API library for Deno
Extremely Popular
Go to Latest
function removeTokenPrefix
import { removeTokenPrefix } from "https://deno.land/x/discordeno@17.2.0/util/token.ts";

Removes the Bot before the token.

Parameters

optional
token: string
optional
type: "GATEWAY" | "REST" = [UNSUPPORTED]

Returns

string