DEV Community

Discussion on: Writing a music command for your discord.js bot (Updated March 2020)

 
galnir profile image
Nir

Did you import Structures like I did above?

const { Structures } = require('discord.js');

Thread Thread
 
zelphy profile image
Zelphy

Ya, It's in line 2, But when I 'node .' it still doesn't run due to the error

Thread Thread
 
galnir profile image
Nir

Did you install the master branch of discord.js?

npm install discord.js#master

Thread Thread
 
zelphy profile image
Zelphy

I tried to but it says that the '#' is an invalid character or smth

Thread Thread
 
galnir profile image
Nir • Edited

Sorry, it's

npm install discordjs/discord.js

And you need git in order for this to work

Thread Thread
 
syariefhdyttt profile image
Press F

hello nir,
I want to ask what is the purpose of git? and how to install it. sorry i am a beginner