botway.js
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

botway.js

botway nodejs client library


npm

# npm
npm i botway.js

# yarn
yarn add botway.js

# pnpm
pnpm add botway.js

Usage

after creating a new nodejs botway project, you need to use your tokens to connect with your bot.

...
const { GetToken, GetAppId, GetGuildId } = require("botway.js");
const { Client, Intents } = require("discord.js");

const rest = new REST({ version: "10" }).setToken(GetToken());

rest
  // how to get the id of my server? the answer in this discussion https://github.com/abdfnx/botway/discussions/4#discussioncomment-2653737
  .put(Routes.applicationGuildCommands(GetAppId(), GetGuildId("YOUR_SERVER_NAME"))
...

Package Sidebar

Install

npm i botway.js

Weekly Downloads

30

Version

0.0.8

License

MIT

Unpacked Size

5.96 kB

Total Files

7

Last publish

Collaborators

  • abdfnx