Bonjour/soir à tous, j'ai un gros soucis, j'aimerai me lancer dans la création de bot discord, mais la première étape ne fonctionnes pas chez moi, j'ai suivi plusieurs tutoriel, le problème viens de VST ou NODE je pense car le code a l'air bon.
Voici mon code :

const Discord = require('discord.js');
const client = new Discord.Client();

client.login("tokendiscorddubot");

Le code n'est pas important, c'est surtout les erreurs que j'ai :

(node:2248) UnhandledPromiseRejectionWarning: Error: format error in certificate's notAfter field
    at TLSSocket.onConnectSecure (_tls_wrap.js:1473:34)
    at TLSSocket.emit (events.js:311:20)
    at TLSSocket._finishInit (_tls_wrap.js:916:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:686:12)
(node:2248) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:2248) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:2248) UnhandledPromiseRejectionWarning: Error: format error in certificate's notAfter field
    at TLSSocket.onConnectSecure (_tls_wrap.js:1473:34)
    at TLSSocket.emit (events.js:311:20)
    at TLSSocket._finishInit (_tls_wrap.js:916:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:686:12)
warning.js:32
(node:2248) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
warning.js:32
(node:2248) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Merci d'avance pour l'aide !

Aucune réponse