mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 08:03:30 +01:00
chore(README): more explanation in README.md (#6354)
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
@@ -41,7 +41,14 @@ npm install discord.js
|
||||
|
||||
## Example usage
|
||||
|
||||
First, we need to register a slash command against the Discord API:
|
||||
Install all required dependencies:
|
||||
```sh-session
|
||||
npm install discord.js @discordjs/rest discord-api-types
|
||||
yarn add discord.js @discordjs/rest discord-api-types
|
||||
pnpm add discord.js @discordjs/rest discord-api-types
|
||||
```
|
||||
|
||||
Register a slash command against the Discord API:
|
||||
```js
|
||||
const { REST } = require('@discordjs/rest');
|
||||
const { Routes } = require('discord-api-types/v9');
|
||||
|
||||
Reference in New Issue
Block a user