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

x/discordeno/util/token.ts>removeTokenPrefix

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

Removes the Bot before the token.

Parameters

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

Returns

string