SyntaxError: Identifier 'client' has already been declared on discord bot

Can you provide line numbers, most likely you’ve written const client twice somewhere
The second time you see it, remove the const


or you could simply use Ctrl + F or Ctrl + G and search const client and delete one. (if the code is large)

1 Like

what was on line 33 as mentioned in the error message?

Whatever you have on line 33, remove it because I believe you are defining it there again and you don’t need to.

Hi! Can you please give us your full code?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.