removeTokenPrefix
@discordeno/bot • Docs
Documentation / @discordeno/bot / removeTokenPrefix
Function: removeTokenPrefix()
removeTokenPrefix(
token
?,type
?):string
Removes the Bot/Bearer before the token.
Parameters
• token?: string
• type?: "REST"
| "GATEWAY"
Returns
string
Defined in
packages/utils/dist/types/token.d.ts:2