Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oasis/packages/deps.ts>getBotIdFromToken

An object oriented Discordeno framework
Latest
function getBotIdFromToken
Re-export
import { getBotIdFromToken } from "https://deno.land/x/oasis@2.1.0/packages/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