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