Go to Latest
function getBotIdFromToken
import { getBotIdFromToken } from "https://dotland.deno.dev/x/discordeno@17.2.0/plugins/validations/deps.ts";

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
import getBotIdFromToken
import { getBotIdFromToken } from "https://dotland.deno.dev/x/discordeno@17.2.0/plugins/validations/deps.ts";