
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
Type definitions for Discord Bot Maker by the DBM German community.
| DBM version | Types | JSDoc |
|---|---|---|
| 2.1 | ✅ Done | ✅ Done |
| 1.6 | ❌ Missing | ❌ Missing |
| 1.5 | ❌ Missing | ❌ Missing |
| 1.4 | ❌ Missing | ❌ Missing |
In order to access the type definitions, one of the supported versions has to be appended to the import path. Here are some examples:
// CommonJS
const { DBMVarType } = require("dbm-types/dbm-2.1");
// ES Module
import { DBMVarType } from "dbm-types/dbm-2.1";
let storage: DBMVarType;
let varName: string;
In addition to the core DBM types it also bundles the correct version of the following pre-installed node modules:
Each can be accessed via its designated namespace.
// CommonJS
const { Discord, DiscordAPI } = require("dbm-types/dbm-2.1");
// ES Module
import { Discord, DiscordAPI } from "dbm-types/dbm-2.1";
let id: Discord.Snowflake;
let rawGuild: DiscordAPI.APIGuild;
Optionally you can also use these definitions in pure JavaScript instead of TypeScript via JSDoc. Here is an example of a custom action that is bound to the action definition:
/** @typedef {import("dbm-types/dbm-2.1").DBMAction} DBMAction */
/** @type {DBMAction} */
module.exports = {
name: "My action",
...
}
The internal structure of the bot.js and DBM itself is really huge and complex.
If you are an advanced user / web developer you could try reverse engineering DBM and updating the types yourself.
Otherwise please feel free to open an issue or pull request if anything is missing or not the way it should be.
Every contribution is appreciated.
This module does not provide the actual source code of classes, functions, etc. Only types and interfaces for creating modifications with optional documentation are available. Copyright of the originating source code belongs to Robert Borghese. A copy of Discord Bot Maker is required to be able to use them sensibly.
FAQs
Type definitions for Discord Bot Maker by the DBM German community.
The npm package dbm-types receives a total of 13 weekly downloads. As such, dbm-types popularity was classified as not popular.
We found that dbm-types demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.