Skip to content
Advertisement

JS- SyntaxError: Identifier ‘Client’ has already been declared [closed]

JavaScript

I am trying to create a discord bot, but each time I try to execute the code, I get the error in the title… I am new to JavaScript and Discord Js… I am sorry if this seems silly, but I would be happy if someone could help…

Advertisement

Answer

You are destructing the Client again in const { Client, MessageAttachment } = require('discord.js')

Advertisement