'embeds[0].author.icon_url: Scheme "null" is not supported. discord.js V13
I set a welcomer in my bot (I work with discord.js v13) event when a member join the guild send a embed but when the joined member don't have a avatar i get this error can anyone help
TypeError: Cannot read properties of undefined (reading 'iconURL')
at Captcha.present (/root/gentlemen/node_modules/discord.js-captcha/src/index.js:202:40)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
DiscordAPIError: Invalid Form Body
embeds[0].author.icon_url: Scheme "null" is not supported. Scheme must be one of ('http', 'https').
Solution 1:[1]
Just use <User>.displayAvatarURL() this allows you to get user avatart even if its default
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | kameHame HA |
