zaida04 / guilded.js

A library for creating bots with the guilded.gg bot API.
https://guilded.js.org
MIT License
69 stars 15 forks source link

Experimental Fetch API Error #237

Closed achille-bosc closed 1 year ago

achille-bosc commented 1 year ago

Describe the bug When i fetch a message with the "messageCreated" event in TypeScript, I have the following error:

(Use `node --trace-warnings ...` to show where the warning was created)

To Reproduce Steps to reproduce the behavior:

  1. create a "messageCreated" event handler
  2. start the code
  3. send a message in the same guild where is the bot
  4. check the terminal

Expected behavior A clear and concise description of what you expected to happen. No Error

Screenshots If applicable, add screenshots to help explain your problem. Capture d’écran 2023-06-28 à 17 12 51 Capture d’écran 2023-06-28 à 17 13 09

Please complete the following information

Additional context Add any other context about the problem here. /////

zaida04 commented 1 year ago

That's odd, you shouldn't be getting that error on node 18. Can you confirm the version you're using by doing console.log(process.version)?

achille-bosc commented 1 year ago

Yes, i confirm Capture d’écran 2023-06-28 à 17 59 24

achille-bosc commented 1 year ago

I've downloaded the v20.3.1 to overcome this problem