Warning messages related to MongoDB on bot startup
Warning messages related to MongoDB on bot startup
Expected Behavior
No warnings should be displayed.
Current Behavior
When launching the bot with the command node index.js
from the discord-bot
directory, the following warning messages are shown:
(node:2486) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2486) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
(node:2486) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
(node:2486) DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version.
Connexion à la base de données réussie.
Steps to Reproduce
node index.js
from the discord-bot
directory