🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@mostfeatured/namespace-types

Package Overview
Dependencies
Maintainers
0
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mostfeatured/namespace-types

Overwrites types with your dbis.

latest
Source
npmnpm
Version
0.0.27
Version published
Maintainers
0
Created
Source

NamespaceTypes

Patches dbi types for you to have auto complate while using locale, interactions and events.

Example

const { createDBI } = require("@mostfeatured/dbi");
const { setNamespaceDataTypes } =require("@mostfeatured/namespace-types");

const dbi = createDBI("dbi_namespace", {
  discord: {
    token: "Your Token Here",
    options: {
      intents: ["Guilds"]
    }
  }
});


dbi.register(({ Locale, ChatInput }) => {

  Locale({
    name: "tr",
    data: {
      erdem: {
        isim: "Erdem",
      },
      tĂĽrk: "TĂĽrk",
    }
  });

  ChatInput({
    name: "test",
    description: "locale test",
    onExecute({ locale }) {
      locale.user.data.erdem.isim();
    }
  })
  
});

(async () => {

  await dbi.load();

  setNamespaceDataTypes(dbi);
  console.log("done")
})();

FAQs

Package last updated on 21 Aug 2024

Did you know?

Socket

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.

Install

Related posts