removeTokenPrefix
Documentation / @discordeno/utils / removeTokenPrefix
Function: removeTokenPrefix()
removeTokenPrefix(
token
?,type
?):string
Defined in: packages/utils/src/token.ts:4
Removes the Bot/Bearer before the token.
Parameters
token?
string
type?
"GATEWAY"
| "REST"
Returns
string