Discord Bot connected to Websocket but not finished loading

Solution 1:

The new JDABuilder() constructor has deprecated by JDA.

So you need to use createDefault(), createLight(), or create() methods instead of new JDABuilder().