removeTokenPrefix
@discordeno/utils • Docs
Documentation / @discordeno/utils / removeTokenPrefix
Function: removeTokenPrefix()
removeTokenPrefix(
token
?,type
?):string
Removes the Bot/Bearer before the token.
Parameters
• token?: string
• type?: "GATEWAY"
| "REST"
= 'REST'
Returns
string