# npm
npm i botway.js
# yarn
yarn add botway.js
# pnpm
pnpm add botway.js
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"))
...