Skip to main content

getBotIdFromToken

@discordeno/botDocs


Documentation / @discordeno/bot / getBotIdFromToken

Function: getBotIdFromToken()

getBotIdFromToken(token): bigint

Get the bot id from the bot token. WARNING: Discord staff has mentioned this may not be stable forever. Use at your own risk. However, note for over 5 years this has never broken.

Parameters

token: string

Returns

bigint

Defined in

packages/utils/dist/types/token.d.ts:4