This is an example of lavaclient using discord.js v14
-
- Create an application in the Discord Developer Portal.
-
- Grab the bot token from the "Bot" tab.
-
- Click the
Use this template
button
- Click the
-
- Install all dependencies:
yarn
ornpm install
- Install all dependencies:
-
- Setup lavalink
-
- Make sure you have java 11 or above installed.
-
- Grab a jar from the Lavalink Releases Page
-
- Create an application.yml in the same folder as the Lavalink.jar
-
- Start lavalink using:
java -jar Lavalink.jar
- Start lavalink using:
-
- Rename
.env.example
to.env
and replace the value ofBOT_TOKEN
to the token from step 2
- Rename
-
- Run the Bot
- production:
yarn start
- development:
yarn dev
oryarn dev --force-sync
if you're modifying application commands (updating, creating, deleting, etc...)